diff --git a/types/stylelint/index.d.ts b/types/stylelint/index.d.ts index 90778baef9..926223ad65 100644 --- a/types/stylelint/index.d.ts +++ b/types/stylelint/index.d.ts @@ -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 +// Definitions by: Alan Agius // 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; diff --git a/types/stylelint/stylelint-tests.ts b/types/stylelint/stylelint-tests.ts index a621c73a1d..785eb2e425 100644 --- a/types/stylelint/stylelint-tests.ts +++ b/types/stylelint/stylelint-tests.ts @@ -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,