From da993a58b174b8aa3fcb8d10059c31bede282682 Mon Sep 17 00:00:00 2001 From: Gareth Jones Date: Wed, 22 May 2024 10:20:15 +1200 Subject: [PATCH] test: only run linting when using ESLint v8 (#1593) --- jest.config.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/jest.config.ts b/jest.config.ts index e5a6b638e..8403937e6 100644 --- a/jest.config.ts +++ b/jest.config.ts @@ -37,7 +37,8 @@ const config = { ], } satisfies Config; -if (semver.major(eslintVersion) >= 9) { +if (semver.major(eslintVersion) !== 8) { + // our eslint config only works for v8 config.projects = config.projects.filter( ({ displayName }) => displayName !== 'lint', );