Skip to content

Commit

Permalink
[eslint config] [base] [patch] loosen no-extraneous-dependencies fo…
Browse files Browse the repository at this point in the history
…r test files.

Relates to #959, #1089.
  • Loading branch information
ljharb committed Nov 6, 2016
1 parent 1399b3c commit 2f9dddb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/eslint-config-airbnb-base/rules/imports.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,9 @@ module.exports = {

// Forbid the use of extraneous packages
// 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: false,
devDependencies: ['spec/**', 'test/**', 'tests/**', '**/__tests__/**'],
optionalDependencies: false,
}],

Expand Down

0 comments on commit 2f9dddb

Please sign in to comment.