From 916613fc2d795758aef57dedf7a2a846b9ac8d7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20De=20Boey?= Date: Tue, 7 Mar 2023 23:47:54 +0100 Subject: [PATCH] feat!(remix-eslint-config): remove `@remix-run/eslint-config/jest` ESLint config --- .changeset/heavy-crabs-kick.md | 5 +++++ packages/remix-eslint-config/jest.js | 30 ---------------------------- 2 files changed, 5 insertions(+), 30 deletions(-) create mode 100644 .changeset/heavy-crabs-kick.md delete mode 100644 packages/remix-eslint-config/jest.js diff --git a/.changeset/heavy-crabs-kick.md b/.changeset/heavy-crabs-kick.md new file mode 100644 index 00000000000..1411419e880 --- /dev/null +++ b/.changeset/heavy-crabs-kick.md @@ -0,0 +1,5 @@ +--- +"@remix-run/eslint-config": major +--- + +remove `@remix-run/eslint-config/jest` ESLint config diff --git a/packages/remix-eslint-config/jest.js b/packages/remix-eslint-config/jest.js deleted file mode 100644 index f69586b6fac..00000000000 --- a/packages/remix-eslint-config/jest.js +++ /dev/null @@ -1,30 +0,0 @@ -const jestRules = require("./rules/jest"); - -/** - * @see https://github.com/eslint/eslint/issues/3458 - * @see https://www.npmjs.com/package/@rushstack/eslint-patch - */ -require("@rushstack/eslint-patch/modern-module-resolution"); - -/** - * @deprecated Use `@remix-run/eslint-config/jest-testing-library` instead. - */ -const jestConfig = { - plugins: ["jest"], - env: { - node: true, - }, - overrides: [ - { - files: ["**/__tests__/**/*", "**/*.{spec,test}.*"], - env: { - "jest/globals": true, - }, - rules: { - ...jestRules, - }, - }, - ], -}; - -module.exports = jestConfig;