From 365c658093659344d74ae3f5cc41a7118ca373b0 Mon Sep 17 00:00:00 2001 From: Wichert Akkerman Date: Tue, 3 Dec 2019 10:20:26 +0100 Subject: [PATCH] Configure jsx test files correctly --- react.js | 7 +++++++ recommended.js | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) 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,