Skip to content

Commit f041a96

Browse files
feat: lint all supported extensions by default
Ensures that all extensions in the supported extensions list are checked by default.
1 parent ff5997c commit f041a96

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

core/eslint/create-eslint-instance.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import type { LANGUAGES } from '../../constants'
88

99
import { loadLanguageParser } from './load-language-parser'
1010
import { loadRuleFromFile } from './load-rule-from-file'
11+
import { SUPPORTED_EXTENSIONS } from '../../constants'
1112
import { toSeverity } from './to-severity'
1213

1314
/** Options for creating an ESLint instance. */
@@ -130,6 +131,7 @@ export async function createESLintInstance(
130131
}
131132

132133
let flatConfig: Linter.Config = {
134+
files: SUPPORTED_EXTENSIONS.map(extension => `**/*.${extension}`),
133135
rules: {
134136
[uniqueRuleId]: ruleEntry,
135137
},

0 commit comments

Comments
 (0)