From 2f9dddbe205145512978a9f07b08fe987505d4d7 Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Sun, 6 Nov 2016 10:01:36 -0800 Subject: [PATCH] [eslint config] [base] [patch] loosen `no-extraneous-dependencies` for test files. Relates to #959, #1089. --- packages/eslint-config-airbnb-base/rules/imports.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/eslint-config-airbnb-base/rules/imports.js b/packages/eslint-config-airbnb-base/rules/imports.js index 2f9cac57ea..2fb05df41d 100644 --- a/packages/eslint-config-airbnb-base/rules/imports.js +++ b/packages/eslint-config-airbnb-base/rules/imports.js @@ -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, }],