Skip to content

Commit

Permalink
eslint: Extend test-file import permissions to subdirectories.
Browse files Browse the repository at this point in the history
Allow all files in subdirectories of `__tests__` to import dev-
dependencies, rather than just files in the `__tests__` directories
themselves.
  • Loading branch information
rk-for-zulip authored and gnprice committed Feb 25, 2020
1 parent 01a5b6b commit dd53b0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .eslintrc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ rules:
import/prefer-default-export: off
import/no-extraneous-dependencies:
- error
- devDependencies: ['**/__tests__/*.js', tools/**]
- devDependencies: ['**/__tests__/**/*.js', tools/**]
import/no-cycle: off # This would be nice to fix; but isn't easy.

# Jest
Expand Down

0 comments on commit dd53b0d

Please sign in to comment.