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 airbnb#959, airbnb#1089.
  • Loading branch information
ljharb authored and jaylaw81 committed Sep 19, 2017
1 parent f70e4a0 commit f4fc5b2
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 f4fc5b2

Please sign in to comment.