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 <dai-shi@users.noreply.github.com>

---------

Co-authored-by: Daishi Kato <dai-shi@users.noreply.github.com>
This commit is contained in:
Wonsuk Choi 2024-12-31 09:17:25 +09:00 committed by GitHub
parent 55a7d0a15b
commit 2e6d881309
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -10,7 +10,7 @@ import tseslint from 'typescript-eslint'
export default tseslint.config(
{
ignores: ['**/dist/', 'examples/**'],
ignores: ['dist/', 'examples/'],
},
eslint.configs.recommended,
importPlugin.flatConfigs.recommended,
@ -69,13 +69,13 @@ export default tseslint.config(
pathGroupsExcludedImportTypes: ['builtin'],
},
],
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-unused-vars': [
'warn',
{ argsIgnorePattern: '^_', varsIgnorePattern: '^_' },
],
'@typescript-eslint/no-explicit-any': 'off',
...reactHooks.configs.recommended.rules,
'react-compiler/react-compiler': 'warn',
...reactHooks.configs.recommended.rules,
},
},
{
@ -85,13 +85,13 @@ export default tseslint.config(
...vitest.configs.recommended,
rules: {
'import/extensions': ['error', 'never'],
'@typescript-eslint/no-unused-vars': 'off',
'testing-library/no-node-access': 'off',
'vitest/expect-expect': 'off',
'vitest/consistent-test-it': [
'error',
{ fn: 'it', withinDescribe: 'it' },
],
'@typescript-eslint/no-unused-vars': 'off',
},
},
{