[eslint config] [base] [patch] import/no-extraneous-dependencies: add some comments to ignore patterns.

This commit is contained in:
Jordan Harband
2016-11-14 17:58:12 -08:00
parent 97da1f0f9d
commit f3f7124fcc

View File

@@ -69,18 +69,18 @@ module.exports = {
// paths are treated both as absolute paths, and relative to process.cwd()
'import/no-extraneous-dependencies': ['error', {
devDependencies: [
'spec/**',
'test/**',
'tests/**',
'**/__tests__/**',
'test.js',
'test-*.js',
'**/*.test.js',
'**/webpack.config.js',
'**/webpack.config.*.js',
'**/rollup.config.js',
'**/gulpfile.js',
'**/Gruntfile',
'test/**', // tape, common npm pattern
'tests/**', // also common npm pattern
'spec/**', // mocha, rspec-like pattern
'**/__tests__/**', // jest pattern
'test.js', // repos with a single test file
'test-*.js', // repos with multiple top-level test files
'**/*.test.js', // tests where the extension denotes that it is a test
'**/webpack.config.js', // webpack config
'**/webpack.config.*.js', // webpack config
'**/rollup.config.js', // rollup config
'**/gulpfile.js', // gulp config
'**/Gruntfile', // grunt config
],
optionalDependencies: false,
}],