Skip to content

Commit

Permalink
chore(eslint): remove duplicate rules, rearrange sequentially within …
Browse files Browse the repository at this point in the history
…a rule
  • Loading branch information
sukvvon committed Dec 25, 2024
1 parent 5e6610e commit bb02a1b
Showing 1 changed file with 13 additions and 18 deletions.
31 changes: 13 additions & 18 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -55,26 +55,20 @@ export default tseslint.config(
},
},
rules: {
...reactHooks.configs.recommended.rules,
'react-compiler/react-compiler': 'warn',
eqeqeq: 'error',
'no-var': 'error',
'prefer-const': 'error',
curly: ['warn', 'multi-line', 'consistent'],
'no-console': 'off',
'sort-imports': [
'error',
{
ignoreDeclarationSort: true,
},
],
'import/extensions': ['error', 'always'],
'import/no-unresolved': ['error', { commonjs: true, amd: true }],
'import/export': 'error',
'import/no-duplicates': ['error'],
'import/no-named-as-default-member': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-unused-vars': [
'warn',
{ argsIgnorePattern: '^_', varsIgnorePattern: '^_' },
],
'@typescript-eslint/no-use-before-define': 'off',
'@typescript-eslint/no-empty-function': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'import/namespace': 'off',
'import/named': 'off',
'import/order': [
Expand All @@ -101,12 +95,13 @@ export default tseslint.config(
pathGroupsExcludedImportTypes: ['builtin'],
},
],
'sort-imports': [
'error',
{
ignoreDeclarationSort: true,
},
'@typescript-eslint/no-unused-vars': [
'warn',
{ argsIgnorePattern: '^_', varsIgnorePattern: '^_' },
],
'@typescript-eslint/no-explicit-any': 'off',
...reactHooks.configs.recommended.rules,
'react-compiler/react-compiler': 'warn',
},
},
{
Expand All @@ -115,8 +110,8 @@ export default tseslint.config(
...jestDom.configs['flat/recommended'],
...vitest.configs.recommended,
rules: {
'testing-library/no-node-access': 'off',
'import/extensions': ['error', 'never'],
'testing-library/no-node-access': 'off',
'vitest/expect-expect': 'off',
'vitest/consistent-test-it': [
'error',
Expand Down

0 comments on commit bb02a1b

Please sign in to comment.