mirror of
https://github.com/airbnb/javascript.git
synced 2026-01-13 22:38:08 -05:00
[eslint config] [base] import/no-extraneous-dependencies: added ignore patterns for config files
Fixes #1168
This commit is contained in:
committed by
Jordan Harband
parent
ae1c0f89cb
commit
ec08ca84ba
@@ -68,7 +68,17 @@ module.exports = {
|
||||
// https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-extraneous-dependencies.md
|
||||
// paths are treated both as absolute paths, and relative to process.cwd()
|
||||
'import/no-extraneous-dependencies': ['error', {
|
||||
devDependencies: ['spec/**', 'test/**', 'tests/**', '**/__tests__/**'],
|
||||
devDependencies: [
|
||||
'spec/**',
|
||||
'test/**',
|
||||
'tests/**',
|
||||
'**/__tests__/**',
|
||||
'**/webpack.config.js',
|
||||
'**/webpack.config.*.js',
|
||||
'**/rollup.config.js',
|
||||
'**/gulpfile.js',
|
||||
'**/Gruntfile',
|
||||
],
|
||||
optionalDependencies: false,
|
||||
}],
|
||||
|
||||
|
||||
Reference in New Issue
Block a user