We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ff5997c commit f041a96Copy full SHA for f041a96
core/eslint/create-eslint-instance.ts
@@ -8,6 +8,7 @@ import type { LANGUAGES } from '../../constants'
8
9
import { loadLanguageParser } from './load-language-parser'
10
import { loadRuleFromFile } from './load-rule-from-file'
11
+import { SUPPORTED_EXTENSIONS } from '../../constants'
12
import { toSeverity } from './to-severity'
13
14
/** Options for creating an ESLint instance. */
@@ -130,6 +131,7 @@ export async function createESLintInstance(
130
131
}
132
133
let flatConfig: Linter.Config = {
134
+ files: SUPPORTED_EXTENSIONS.map(extension => `**/*.${extension}`),
135
rules: {
136
[uniqueRuleId]: ruleEntry,
137
},
0 commit comments