diff --git a/.eslintrc.js b/.eslintrc.js index 1d43cb46c..467c9b01f 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -144,10 +144,6 @@ module.exports = { }], "@typescript-eslint/no-unsafe-function-type": 1 }, - // need this so jest doesn't show as undefined in jest.setup.js - env: { - jest: true - }, ignorePatterns: ["/coverage/*", "/vendor/*", "**/flow-typed"], settings: { "import/resolver": { @@ -172,6 +168,15 @@ module.exports = { rules: { "@typescript-eslint/no-require-imports": "off" } + }, + { + files: ["tests/**/*", "__mocks__/**/*", "e2e/**/*"], + env: { jest: true } + }, + { + files: ["tests/**/*"], + plugins: ["testing-library"], + extends: ["plugin:testing-library/react"] } ] }; diff --git a/tests/.eslintrc.js b/tests/.eslintrc.js deleted file mode 100644 index 5a6289ab6..000000000 --- a/tests/.eslintrc.js +++ /dev/null @@ -1,4 +0,0 @@ -module.exports = { - plugins: ["testing-library"], - extends: ["plugin:testing-library/react"] -};