Skip to content

Commit

Permalink
Configure jsx test files correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
wichert committed Dec 3, 2019
1 parent 51f9a7f commit 365c658
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions react.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@ module.exports = {
},
parser: 'babel-eslint',
overrides: [
{
files: ['**/*.test.jsx', '**/*.test.tsx'],
env: {
jest: true,
node: true,
},
},
{
files: ['**/*.jsx', '**/*.tsx'],
parserOptions: {
Expand Down
2 changes: 1 addition & 1 deletion recommended.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ module.exports = {
},
overrides: [
{
files: ['**/*.test.js', 'src/setupTests.js', 'src/setupFilesAfterEnv.js'],
files: ['**/*.test.js', '**/*.test.ts', 'src/setupTests.js', 'src/setupFilesAfterEnv.js'],
env: {
jest: true,
node: true,
Expand Down

0 comments on commit 365c658

Please sign in to comment.