Skip to content

Commit 8c83d03

Browse files
lencioniljharb
authored andcommitted
[eslint config] [base] [patch] Allow devDependencies for foo_spec.js naming style
Some projects name test files like `foo_spec.js` instead of `foo.spec.js`.
1 parent 22f0155 commit 8c83d03

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ module.exports = {
7777
'**/__mocks__/**', // jest pattern
7878
'test.{js,jsx}', // repos with a single test file
7979
'test-*.{js,jsx}', // repos with multiple top-level test files
80-
'**/*.{test,spec}.{js,jsx}', // tests where the extension denotes that it is a test
80+
'**/*{.,_}{test,spec}.{js,jsx}', // tests where the extension or filename suffix denotes that it is a test
8181
'**/jest.config.js', // jest config
8282
'**/webpack.config.js', // webpack config
8383
'**/webpack.config.*.js', // webpack config

0 commit comments

Comments
 (0)