feat(stylelint): update typyings to match new API

This commit is contained in:
Alan
2017-04-10 13:05:08 +02:00
parent bb7d6b2d08
commit 2e1d56dc9b
2 changed files with 5 additions and 1 deletions
+3 -1
View File
@@ -1,4 +1,4 @@
// Type definitions for stylelint 7.9
// Type definitions for stylelint 7.10
// Project: https://github.com/stylelint/stylelint
// Definitions by: Alan Agius <https://github.com/alan-agius4/>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
@@ -10,6 +10,8 @@ export interface LinterOptions {
configBasedir?: string;
configFile?: string;
configOverrides?: JSON;
cache?: boolean;
cacheLocation?: string;
files?: string | string[];
formatter?: "json" | "string" | "verbose";
ignoreDisables?: boolean;
+2
View File
@@ -4,6 +4,8 @@ const options: LinterOptions = {
code: "div { color: red }",
files: ["**/**.scss"],
formatter: "json",
cache: true,
cacheLocation: "./stylelint.cache.json",
ignoreDisables: true,
reportNeedlessDisables: true,
ignorePath: true,