Skip to content

Commit ff7da6f

Browse files
committed
Add names to ESLint configs
1 parent 389d3f1 commit ff7da6f

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

packages/configs/eslint/src/eslint.config.mts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,12 +74,13 @@ export const vitestGlobals: VitestGlobals = {
7474
export const reduxESLintConfig: TSESLint.FlatConfig.Config[] = config(
7575
// `ignores` must be first.
7676
// config with just `ignores` is the replacement for `.eslintignore`
77-
{ ignores: ['**/dist/', '.*/'] },
78-
js.configs.recommended,
77+
{ name: 'ignores', ignores: ['**/dist/'] },
78+
{ name: 'javascript', ...js.configs.recommended },
7979
...configs.recommended,
8080
...configs.stylistic,
81-
prettierConfig,
81+
{ name: 'prettier-config', ...prettierConfig },
8282
{
83+
name: 'main',
8384
languageOptions: {
8485
globals: {
8586
...vitestGlobals,
@@ -131,7 +132,7 @@ export const reduxESLintConfig: TSESLint.FlatConfig.Config[] = config(
131132
linterOptions: { reportUnusedDisableDirectives: 2 },
132133
},
133134
{
134-
files: ['**/*.cjs'],
135+
name: 'commonjs',
135136
languageOptions: { sourceType: 'commonjs' },
136137
rules: {
137138
'@typescript-eslint/no-var-requires': [0],

0 commit comments

Comments
 (0)