[eslint config] [base] [patch] Allow jsx extensions for test files

This commit is contained in:
Ken Powers
2017-05-24 15:43:56 -04:00
committed by Jordan Harband
parent 0f8f30dcd0
commit f3c9639abe

View File

@@ -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