Skip to content

Commit 2a29503

Browse files
committed
activate "import/no-extraneous-dependencies" to throw an error when transitive or non-existent dependencies are imported
1 parent 2a03137 commit 2a29503

File tree

1 file changed

+1
-1
lines changed
  • packages/eslint-config-react-app

1 file changed

+1
-1
lines changed

packages/eslint-config-react-app/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,13 +200,13 @@ module.exports = {
200200
// 'import/namespace': 'warn',
201201
// 'import/no-amd': 'warn',
202202
// 'import/no-duplicates': 'warn',
203-
// 'import/no-extraneous-dependencies': 'warn',
204203
// 'import/no-named-as-default': 'warn',
205204
// 'import/no-named-as-default-member': 'warn',
206205
// 'import/no-unresolved': ['warn', { commonjs: true }],
207206
// We don't support configuring Webpack using import source strings, so this
208207
// is always an error.
209208
'import/no-webpack-loader-syntax': 'error',
209+
'import/no-extraneous-dependencies': 'error',
210210

211211
// https://github.com/yannickcr/eslint-plugin-react/tree/master/docs/rules
212212
'react/jsx-equals-spacing': ['warn', 'never'],

0 commit comments

Comments
 (0)