Skip to content

Commit

Permalink
chore(eslint): change 'dist' area in 'ignores', sort rules (#2924)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
sukvvon and dai-shi authored Dec 31, 2024
1 parent 55a7d0a commit 2e6d881
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
},
},
{
Expand All @@ -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',
},
},
{
Expand Down

0 comments on commit 2e6d881

Please sign in to comment.