From f3f7124fcc7a97048f14148554219150cd0c76df Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Mon, 14 Nov 2016 17:58:12 -0800 Subject: [PATCH] [eslint config] [base] [patch] `import/no-extraneous-dependencies`: add some comments to ignore patterns. --- .../rules/imports.js | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/packages/eslint-config-airbnb-base/rules/imports.js b/packages/eslint-config-airbnb-base/rules/imports.js index 2eb76e8f..59970d87 100644 --- a/packages/eslint-config-airbnb-base/rules/imports.js +++ b/packages/eslint-config-airbnb-base/rules/imports.js @@ -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, }],