Skip to content

Commit f3f7124

Browse files
committed
[eslint config] [base] [patch] import/no-extraneous-dependencies: add some comments to ignore patterns.
1 parent 97da1f0 commit f3f7124

File tree

1 file changed

+12
-12
lines changed
  • packages/eslint-config-airbnb-base/rules

1 file changed

+12
-12
lines changed

packages/eslint-config-airbnb-base/rules/imports.js

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -69,18 +69,18 @@ module.exports = {
6969
// paths are treated both as absolute paths, and relative to process.cwd()
7070
'import/no-extraneous-dependencies': ['error', {
7171
devDependencies: [
72-
'spec/**',
73-
'test/**',
74-
'tests/**',
75-
'**/__tests__/**',
76-
'test.js',
77-
'test-*.js',
78-
'**/*.test.js',
79-
'**/webpack.config.js',
80-
'**/webpack.config.*.js',
81-
'**/rollup.config.js',
82-
'**/gulpfile.js',
83-
'**/Gruntfile',
72+
'test/**', // tape, common npm pattern
73+
'tests/**', // also common npm pattern
74+
'spec/**', // mocha, rspec-like pattern
75+
'**/__tests__/**', // jest pattern
76+
'test.js', // repos with a single test file
77+
'test-*.js', // repos with multiple top-level test files
78+
'**/*.test.js', // tests where the extension denotes that it is a test
79+
'**/webpack.config.js', // webpack config
80+
'**/webpack.config.*.js', // webpack config
81+
'**/rollup.config.js', // rollup config
82+
'**/gulpfile.js', // gulp config
83+
'**/Gruntfile', // grunt config
8484
],
8585
optionalDependencies: false,
8686
}],

0 commit comments

Comments
 (0)