Skip to content

Commit 5923905

Browse files
authored
Allow devDependencies for foo_spec.js naming style
Some projects name test files like `foo_spec.js` instead of `foo.spec.js`.
1 parent cfe10c1 commit 5923905

File tree

1 file changed

+1
-1
lines changed
  • packages/eslint-config-airbnb-base/rules

1 file changed

+1
-1
lines changed

packages/eslint-config-airbnb-base/rules/imports.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ module.exports = {
7676
'**/__tests__/**', // jest pattern
7777
'test.{js,jsx}', // repos with a single test file
7878
'test-*.{js,jsx}', // repos with multiple top-level test files
79-
'**/*.{test,spec}.{js,jsx}', // tests where the extension denotes that it is a test
79+
'**/*{.,_}{test,spec}.{js,jsx}', // tests where the extension or filename suffix denotes that it is a test
8080
'**/jest.config.js', // jest config
8181
'**/webpack.config.js', // webpack config
8282
'**/webpack.config.*.js', // webpack config

0 commit comments

Comments
 (0)