mirror of
https://github.com/airbnb/javascript.git
synced 2026-01-13 21:38:03 -05:00
[eslint config] [base] [patch] Allow jsx extensions for test files
This commit is contained in:
committed by
Jordan Harband
parent
0f8f30dcd0
commit
f3c9639abe
@@ -73,10 +73,9 @@ module.exports = {
|
||||
'tests/**', // also common npm pattern
|
||||
'spec/**', // mocha, rspec-like pattern
|
||||
'**/__tests__/**', // jest pattern
|
||||
'test.js', // repos with a single test file
|
||||
'test-*.js', // repos with multiple top-level test files
|
||||
'**/*.test.js', // tests where the extension denotes that it is a test
|
||||
'**/*.spec.js', // tests where the extension denotes that it is a test
|
||||
'test.{js,jsx}', // repos with a single test file
|
||||
'test-*.{js,jsx}', // repos with multiple top-level test files
|
||||
'**/*.{test,spec}.{js,jsx}', // tests where the extension denotes that it is a test
|
||||
'**/webpack.config.js', // webpack config
|
||||
'**/webpack.config.*.js', // webpack config
|
||||
'**/rollup.config.js', // rollup config
|
||||
|
||||
Reference in New Issue
Block a user