Skip to content

Commit ec08ca8

Browse files
chentsulinljharb
authored andcommitted
[eslint config] [base] import/no-extraneous-dependencies: added ignore patterns for config files
Fixes airbnb#1168
1 parent ae1c0f8 commit ec08ca8

File tree

1 file changed

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

1 file changed

+11
-1
lines changed

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

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,17 @@ module.exports = {
6868
// https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-extraneous-dependencies.md
6969
// paths are treated both as absolute paths, and relative to process.cwd()
7070
'import/no-extraneous-dependencies': ['error', {
71-
devDependencies: ['spec/**', 'test/**', 'tests/**', '**/__tests__/**'],
71+
devDependencies: [
72+
'spec/**',
73+
'test/**',
74+
'tests/**',
75+
'**/__tests__/**',
76+
'**/webpack.config.js',
77+
'**/webpack.config.*.js',
78+
'**/rollup.config.js',
79+
'**/gulpfile.js',
80+
'**/Gruntfile',
81+
],
7282
optionalDependencies: false,
7383
}],
7484

0 commit comments

Comments
 (0)