Skip to content

Commit

Permalink
no-deprecated: don't run tests for typescript-eslint-parser against E…
Browse files Browse the repository at this point in the history
…SLint <4
  • Loading branch information
benmosher committed Jul 17, 2019
1 parent 6512110 commit 118afd4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/src/rules/no-deprecated.js
Expand Up @@ -209,7 +209,8 @@ describe('Typescript', function () {
parsers.push(require.resolve('@typescript-eslint/parser'))
}

if (semver.satisfies(eslintPkg.version, '<6.0.0')) {
// typescript-eslint-parser doesn't support this rule on ESLint <4 for some reason
if (semver.satisfies(eslintPkg.version, '>=4.0.0 <6.0.0')) {
parsers.push(require.resolve('typescript-eslint-parser'))
}

Expand Down

0 comments on commit 118afd4

Please sign in to comment.