Skip to content

Commit c8397ad

Browse files
committed
[Tests] skip failing TS tests on eslint 5
1 parent 365849c commit c8397ad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/helpers/parsers.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ const parsers = {
121121
|| features.has('flow')
122122
|| features.has('types')
123123
|| features.has('ts');
124-
const skipTS = semver.satisfies(version, '< 5')
124+
const skipTS = semver.satisfies(version, '<= 5') // TODO: make these pass on eslint 5
125125
|| features.has('no-ts')
126126
|| features.has('flow')
127127
|| features.has('jsx namespace')
@@ -148,7 +148,7 @@ const parsers = {
148148
parserOptions: parsers.babelParserOptions(test, features),
149149
}), '@babel/eslint-parser'),
150150
tsOld ? addComment(Object.assign({}, test, { parser: parsers.TYPESCRIPT_ESLINT }), 'typescript-eslint') : [],
151-
tsNew ? addComment(Object.assign({}, test, { parser: parsers['@TYPESCRIPT_ESLINT'] }), '@typescript/eslint') : []
151+
tsNew ? addComment(Object.assign({}, test, { parser: parsers['@TYPESCRIPT_ESLINT'] }), '@typescript-eslint/parser') : []
152152
);
153153
});
154154
return t;

0 commit comments

Comments
 (0)