Skip to content

Commit 671c7df

Browse files
committed
Allow requiring devDependencies in test dirs
By convention, test, test-bin, and test-lib hold code which is only used for testing in a development environment, not production, so use of devDependencies is allowed. Add an ESLint exception for these. Signed-off-by: Kevin Locke <[email protected]>
1 parent 9163443 commit 671c7df

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.eslintrc.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,4 +108,8 @@ rules:
108108
# Disabled since unsupported on Node < 6
109109
prefer-rest-params: 0
110110

111+
# eslint-plugin-import
112+
## Allow requiring devDependencies in test, test-bin, and test-lib
113+
import/no-extraneous-dependencies: [2, {"devDependencies": ["test/**", "test-bin/**", "test-lib/**"]}]
114+
111115
# vi: set sts=2 sw=2 et ft=yaml:

0 commit comments

Comments
 (0)