diff --git a/react.js b/react.js index 7915afd..c4fb552 100644 --- a/react.js +++ b/react.js @@ -12,6 +12,13 @@ module.exports = { }, parser: 'babel-eslint', overrides: [ + { + files: ['**/*.test.jsx', '**/*.test.tsx'], + env: { + jest: true, + node: true, + }, + }, { files: ['**/*.jsx', '**/*.tsx'], parserOptions: { diff --git a/recommended.js b/recommended.js index 10f089c..0f2cfb5 100644 --- a/recommended.js +++ b/recommended.js @@ -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,