Skip to content

Commit

Permalink
ESLint remove stale import/no-extraneous-dependencies rules
Browse files Browse the repository at this point in the history
- 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
  • Loading branch information
leotm committed Jan 26, 2022
1 parent 57bf9e9 commit bf67f51
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,10 @@ module.exports = {
'import/no-extraneous-dependencies': [
'error',
{
// Supported: classic.yarnpkg.com/en/docs/dependency-types
devDependencies: [
'App.tsx',
'**/jest.{config,setup}.js',
'**/*{.,_}{test,spec}.{ts,tsx}',
'**/__tests__/**/*.{ts,tsx}',
'**/__tests__/**/*.{ts,tsx}', // react-test-renderer
'**/storybook/*.ts',
'**/stories/**/*.tsx'
]
Expand Down

0 comments on commit bf67f51

Please sign in to comment.