Skip to content

Commit 8f19e18

Browse files
committed
test(parsers): skip legacy TS parser on ESLint 10
Stop generating legacy typescript-eslint-parser test cases when running under ESLint 10 or newer. The legacy parser does not work with the ESLint 10 test setup, so these cases fail due to parser incompatibility rather than rule behavior.
1 parent 5ebd360 commit 8f19e18

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tests/helpers/parsers.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,8 @@ const parsers = {
150150
|| features.has('jsx namespace')
151151
|| features.has('bind operator')
152152
|| features.has('do expressions');
153-
const tsOld = !skipTS && !features.has('no-ts-old');
153+
// Legacy typescript-eslint-parser does not work with the ESLint 10 test setup.
154+
const tsOld = !skipTS && !features.has('no-ts-old') && !semver.satisfies(version, '>= 10');
154155
const tsNew = !skipTS && !features.has('no-ts-new');
155156

156157
return [].concat(

0 commit comments

Comments
 (0)