diff --git a/types/stylelint/index.d.ts b/types/stylelint/index.d.ts index 2ec479d2e1..14b769d20e 100644 --- a/types/stylelint/index.d.ts +++ b/types/stylelint/index.d.ts @@ -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 // 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; diff --git a/types/stylelint/stylelint-tests.ts b/types/stylelint/stylelint-tests.ts index 0eeb0bdec8..4e017f7083 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,