Merge pull request #15749 from alan-agius4/feature/stylelint-7.10.X

feat(stylelint): update typyings to match new API
This commit is contained in:
Ryan Cavanaugh
2017-04-17 11:10:18 -07:00
committed by GitHub
2 changed files with 6 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
// 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 by: Alan Agius <https://github.com/alan-agius4>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
export type FormatterType = "json" | "string" | "verbose";
@@ -14,6 +14,8 @@ export interface LinterOptions {
configBasedir?: string;
configFile?: string;
configOverrides?: JSON;
cache?: boolean;
cacheLocation?: string;
files?: string | string[];
formatter?: FormatterType;
ignoreDisables?: boolean;

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,