Skip to content

Commit dd53b0d

Browse files
rk-for-zulipgnprice
authored andcommitted
eslint: Extend test-file import permissions to subdirectories.
Allow all files in subdirectories of `__tests__` to import dev- dependencies, rather than just files in the `__tests__` directories themselves.
1 parent 01a5b6b commit dd53b0d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.eslintrc.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ rules:
8080
import/prefer-default-export: off
8181
import/no-extraneous-dependencies:
8282
- error
83-
- devDependencies: ['**/__tests__/*.js', tools/**]
83+
- devDependencies: ['**/__tests__/**/*.js', tools/**]
8484
import/no-cycle: off # This would be nice to fix; but isn't easy.
8585

8686
# Jest

0 commit comments

Comments
 (0)