Skip to content

Commit 2e6d881

Browse files
sukvvondai-shi
andauthored
chore(eslint): change 'dist' area in 'ignores', sort rules (#2924)
* chore(eslint): change 'dist' area in 'ignores' * chore(eslint): sort by the order 'plugins' were added and by name * Update eslint.config.mjs Co-authored-by: Daishi Kato <[email protected]> --------- Co-authored-by: Daishi Kato <[email protected]>
1 parent 55a7d0a commit 2e6d881

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

eslint.config.mjs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import tseslint from 'typescript-eslint'
1010

1111
export default tseslint.config(
1212
{
13-
ignores: ['**/dist/', 'examples/**'],
13+
ignores: ['dist/', 'examples/'],
1414
},
1515
eslint.configs.recommended,
1616
importPlugin.flatConfigs.recommended,
@@ -69,13 +69,13 @@ export default tseslint.config(
6969
pathGroupsExcludedImportTypes: ['builtin'],
7070
},
7171
],
72+
'@typescript-eslint/no-explicit-any': 'off',
7273
'@typescript-eslint/no-unused-vars': [
7374
'warn',
7475
{ argsIgnorePattern: '^_', varsIgnorePattern: '^_' },
7576
],
76-
'@typescript-eslint/no-explicit-any': 'off',
77-
...reactHooks.configs.recommended.rules,
7877
'react-compiler/react-compiler': 'warn',
78+
...reactHooks.configs.recommended.rules,
7979
},
8080
},
8181
{
@@ -85,13 +85,13 @@ export default tseslint.config(
8585
...vitest.configs.recommended,
8686
rules: {
8787
'import/extensions': ['error', 'never'],
88+
'@typescript-eslint/no-unused-vars': 'off',
8889
'testing-library/no-node-access': 'off',
8990
'vitest/expect-expect': 'off',
9091
'vitest/consistent-test-it': [
9192
'error',
9293
{ fn: 'it', withinDescribe: 'it' },
9394
],
94-
'@typescript-eslint/no-unused-vars': 'off',
9595
},
9696
},
9797
{

0 commit comments

Comments
 (0)