Skip to content

Commit

Permalink
[Tests] skip failing TS tests on eslint 5
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Apr 7, 2022
1 parent 365849c commit c8397ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/helpers/parsers.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ const parsers = {
|| features.has('flow')
|| features.has('types')
|| features.has('ts');
const skipTS = semver.satisfies(version, '< 5')
const skipTS = semver.satisfies(version, '<= 5') // TODO: make these pass on eslint 5
|| features.has('no-ts')
|| features.has('flow')
|| features.has('jsx namespace')
Expand All @@ -148,7 +148,7 @@ const parsers = {
parserOptions: parsers.babelParserOptions(test, features),
}), '@babel/eslint-parser'),
tsOld ? addComment(Object.assign({}, test, { parser: parsers.TYPESCRIPT_ESLINT }), 'typescript-eslint') : [],
tsNew ? addComment(Object.assign({}, test, { parser: parsers['@TYPESCRIPT_ESLINT'] }), '@typescript/eslint') : []
tsNew ? addComment(Object.assign({}, test, { parser: parsers['@TYPESCRIPT_ESLINT'] }), '@typescript-eslint/parser') : []
);
});
return t;
Expand Down

0 comments on commit c8397ad

Please sign in to comment.