[eslint config] [base] import/no-extraneous-dependencies: added ignore patterns for config files

Fixes #1168
This commit is contained in:
C. T. Lin
2016-11-09 12:46:11 +08:00
committed by Jordan Harband
parent ae1c0f89cb
commit ec08ca84ba

View File

@@ -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,
}],