mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-04-05 05:04:26 +00:00
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:
6
types/stylelint/index.d.ts
vendored
6
types/stylelint/index.d.ts
vendored
@@ -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;
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user