From 257cad71ce5420efa0e4c35e60b11a20fa43544f Mon Sep 17 00:00:00 2001 From: Alessio Gravili Date: Thu, 6 Feb 2025 20:54:26 -0700 Subject: [PATCH] chore: fix eslint wasn't running in test dir (#11036) This PR fixes 2 eslint config issues that prevented it from running in our test dir - spec files were ignored by the root eslint config. This should have only ignored spec files within our packages, as they are ignored by the respective package tsconfigs - defining the payload plugin crashed eslint in our test dir, as it was already defined in the root eslint config it was inheriting --- eslint.config.js | 2 +- test/eslint.config.js | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/eslint.config.js b/eslint.config.js index 0e2279e96..e7ee5e8a1 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -19,7 +19,7 @@ export const defaultESLintIgnores = [ '**/build/', '**/node_modules/', '**/temp/', - '**/*.spec.ts', + '**/packages/*.spec.ts', 'next-env.d.ts', '**/app', ] diff --git a/test/eslint.config.js b/test/eslint.config.js index 2852bcf19..08a0b91f7 100644 --- a/test/eslint.config.js +++ b/test/eslint.config.js @@ -17,9 +17,6 @@ export const testEslintConfig = [ tsconfigRootDir: import.meta.dirname, }, }, - plugins: { - payload: payloadPlugin, - }, rules: { 'payload/no-relative-monorepo-imports': 'error', },