mirror of
https://github.com/airbnb/javascript.git
synced 2026-01-14 08:38:08 -05:00
[eslint config] [base] [patch] import/no-extraneous-dependencies: add some comments to ignore patterns.
This commit is contained in:
@@ -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,
|
||||
}],
|
||||
|
||||
Reference in New Issue
Block a user