Skip to content

Commit

Permalink
chore: improve ESLint performance (#2166)
Browse files Browse the repository at this point in the history
  • Loading branch information
anuraghazra authored May 10, 2024
1 parent 61e3fb9 commit c481e15
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,11 @@ module.exports = {
],
'react/display-name': 'off',
'import/no-named-as-default': 'off',
'import/no-cycle': ['error', { maxDepth: '∞' }],
// Some bug with import/no-cycle where the ignoreExternal is not working as expected
// Setting ignoreExternal: true is slowing things down
// https://github.com/import-js/eslint-plugin-import/issues/2348
'import/no-cycle': ['error', { maxDepth: 4, ignoreExternal: false }],
'import/no-deprecated': 'off',
},
env: {
browser: true,
Expand Down Expand Up @@ -132,7 +136,8 @@ module.exports = {
plugins: ['@typescript-eslint', 'jsx-a11y', 'no-only-tests', 'blade'],
rules: {
'blade/no-cross-platform-imports': ['error', { ignoreImportsPattern: 'renderWithSSR' }],
'import/no-cycle': ['error', { maxDepth: '∞' }],
'import/no-cycle': ['error', { maxDepth: 4, ignoreExternal: false }],
'import/no-deprecated': 'off',
'react/jsx-uses-react': 'off',
'react/react-in-jsx-scope': 'off',
'no-use-before-define': 'off',
Expand Down Expand Up @@ -190,6 +195,8 @@ module.exports = {
files: ['**/*.stories.{ts,tsx}', '**/*.stories.internal.{ts,tsx}'],
rules: {
'react/display-name': ['off'],
'import/no-deprecated': 'off',
'import/no-cycle': 'off',
},
},
],
Expand Down

0 comments on commit c481e15

Please sign in to comment.