From 2e1d56dc9baf50a2b86ba53a3ad969e0d548e6d8 Mon Sep 17 00:00:00 2001 From: Alan Date: Mon, 10 Apr 2017 13:05:08 +0200 Subject: [PATCH 1/2] feat(stylelint): update typyings to match new API --- types/stylelint/index.d.ts | 4 +++- types/stylelint/stylelint-tests.ts | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) 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, From 52674e53504c5ac56fad38e384111ff62d2cc077 Mon Sep 17 00:00:00 2001 From: Alan Date: Mon, 10 Apr 2017 13:07:21 +0200 Subject: [PATCH 2/2] remove trailing slash --- types/stylelint/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/stylelint/index.d.ts b/types/stylelint/index.d.ts index 14b769d20e..a9cef5344c 100644 --- a/types/stylelint/index.d.ts +++ b/types/stylelint/index.d.ts @@ -1,6 +1,6 @@ // 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 interface LinterOptions {