Skip to content

Commit

Permalink
(PC-33809)[PRO] chore: disable import/* eslint plugin rules not to du…
Browse files Browse the repository at this point in the history
…plicate ts checks
  • Loading branch information
asaez-pass committed Jan 6, 2025
1 parent 42d2847 commit 1f3b519
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions pro/eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ export default tseslint.config(
// extends ...
eslint.configs.recommended,
tseslint.configs.recommended,
// importPlugin.flatConfigs.recommended,
cypressPlugin.configs.recommended,
reactPlugin.configs.flat.recommended,
reactPlugin.configs.flat['jsx-runtime'],
Expand Down Expand Up @@ -85,12 +84,17 @@ export default tseslint.config(
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-unused-expressions': 'off',
'@typescript-eslint/no-unused-vars': 'off',
'import/no-unresolved': 'off',
'import/named': 'off',
'no-unused-vars': 'off',
'prefer-const': 'off',
'prefer-rest-params': 'off',
'react/react-in-jsx-scope': 'off',
// import/* rules turned OFF because of Typescript compiler, following
// https://typescript-eslint.io/troubleshooting/typed-linting/performance/#eslint-plugin-import recommendations.
'import/named': 'off',
'import/namespace': 'off',
'import/default': 'off',
'import/no-named-as-default': 'off',
'import/no-unresolved': 'off',

// extra ERROR rules, evntually duplicate with recommended
'@typescript-eslint/await-thenable': 'error',
Expand All @@ -114,7 +118,7 @@ export default tseslint.config(
'@typescript-eslint/switch-exhaustiveness-check': 'error',
'eqeqeq': 'error',
'curly': ['error', 'all'],
'import/no-named-as-default': 'error',
'import/export': 'error',
'import/no-default-export': 'error',
'no-console': 'error',
'require-await': 'error',
Expand All @@ -133,8 +137,6 @@ export default tseslint.config(
'react-hooks/rules-of-hooks': 'error',

// extra WARNING rules, evntually duplicate with recommended
'import/no-dynamic-require': 'warn',
'import/no-nodejs-modules': 'warn',
'import/order': [
'warn',
{
Expand All @@ -153,6 +155,10 @@ export default tseslint.config(
},
},
],
'import/no-duplicates': 'warn',
'import/no-dynamic-require': 'warn',
'import/no-named-as-default-member': 'warn',
'import/no-nodejs-modules': 'warn',
'react-hooks/exhaustive-deps': 'warn',
},
settings: {
Expand Down

0 comments on commit 1f3b519

Please sign in to comment.