Skip to content

Commit aab6f4f

Browse files
authored
Add probe support for CSS (#2058)
1 parent 8c254c9 commit aab6f4f

File tree

2 files changed

+17
-15
lines changed

2 files changed

+17
-15
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,8 @@
324324
"vue",
325325
"markdown",
326326
"json",
327-
"jsonc"
327+
"jsonc",
328+
"css"
328329
],
329330
"description": "An array of language ids for which the extension should probe if support is installed."
330331
},

server/src/eslint.ts

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -192,20 +192,20 @@ type ParserOptions = {
192192
};
193193

194194
type ESLintRcConfig = {
195-
env: Record<string, boolean>;
195+
env: Record<string, boolean>;
196196
extends: string | string[];
197-
// globals: Record<string, GlobalConf>;
198-
ignorePatterns: string | string[];
199-
noInlineConfig: boolean;
200-
// overrides: OverrideConfigData[];
201-
parser: string | null;
202-
parserOptions?: ParserOptions;
203-
plugins: string[];
204-
processor: string;
205-
reportUnusedDisableDirectives: boolean | undefined;
206-
root: boolean;
207-
rules: Record<string, RuleConf>;
208-
settings: object;
197+
// globals: Record<string, GlobalConf>;
198+
ignorePatterns: string | string[];
199+
noInlineConfig: boolean;
200+
// overrides: OverrideConfigData[];
201+
parser: string | null;
202+
parserOptions?: ParserOptions;
203+
plugins: string[];
204+
processor: string;
205+
reportUnusedDisableDirectives: boolean | undefined;
206+
root: boolean;
207+
rules: Record<string, RuleConf>;
208+
settings: object;
209209
};
210210
type ESLintConfig = ESLintRcConfig;
211211

@@ -789,7 +789,8 @@ export namespace ESLint {
789789
['jsonc', 'jsonc'],
790790
['mdx', 'mdx'],
791791
['vue', 'vue'],
792-
['markdown', 'markdown']
792+
['markdown', 'markdown'],
793+
['css', 'css']
793794
]);
794795

795796
const defaultLanguageIds: Set<string> = new Set([

0 commit comments

Comments
 (0)