From 741776e54ca8d9736944fdc069cca44d506d8f5f Mon Sep 17 00:00:00 2001 From: Gareth Jones Date: Wed, 22 May 2024 10:07:09 +1200 Subject: [PATCH] test: only run linting when using ESLint v8 --- 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', );