Skip to content

Commit

Permalink
chore(eslint): remove the ‘off’ settings in ‘eslint-plugin-import’ to…
Browse files Browse the repository at this point in the history
… ensure clearer usage.
  • Loading branch information
sukvvon committed Dec 25, 2024
1 parent bb02a1b commit 82662b8
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ export default tseslint.config(
tseslint.configs.recommended,
react.configs.flat.recommended,
react.configs.flat['jsx-runtime'],
importPlugin.flatConfigs.errors,
importPlugin.flatConfigs.warnings,
{
languageOptions: {
globals: {
Expand All @@ -36,6 +34,7 @@ export default tseslint.config(
},
},
plugins: {
import: importPlugin,
'react-compiler': reactCompiler,
'react-hooks': reactHooks,
},
Expand Down Expand Up @@ -64,13 +63,12 @@ export default tseslint.config(
ignoreDeclarationSort: true,
},
],
'import/extensions': ['error', 'always'],
'import/no-unresolved': ['error', { commonjs: true, amd: true }],
'import/default': 'error',
'import/export': 'error',
'import/no-duplicates': ['error'],
'import/no-named-as-default-member': 'off',
'import/namespace': 'off',
'import/named': 'off',
'import/no-duplicates': 'error',
'import/no-named-as-default': 'warn',
'import/extensions': ['error', 'always'],
'import/order': [
'error',
{
Expand Down

0 comments on commit 82662b8

Please sign in to comment.