Skip to content

Commit bf67f51

Browse files
committed
ESLint remove stale import/no-extraneous-dependencies rules
- N/A on static import, since refactoring to dynamic import - Regardless of entryfile rename App.tsx -> src/index.tsx - N/A even on jest/setup.ts so no imports, only mocks - Comment react-test-renderer devDep allowed in Jest snapshot tests
1 parent 57bf9e9 commit bf67f51

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.eslintrc.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,11 +84,10 @@ module.exports = {
8484
'import/no-extraneous-dependencies': [
8585
'error',
8686
{
87+
// Supported: classic.yarnpkg.com/en/docs/dependency-types
8788
devDependencies: [
88-
'App.tsx',
89-
'**/jest.{config,setup}.js',
9089
'**/*{.,_}{test,spec}.{ts,tsx}',
91-
'**/__tests__/**/*.{ts,tsx}',
90+
'**/__tests__/**/*.{ts,tsx}', // react-test-renderer
9291
'**/storybook/*.ts',
9392
'**/stories/**/*.tsx'
9493
]

0 commit comments

Comments
 (0)