Skip to content

Commit

Permalink
Revert "[Tests] a no-typos test fails in eslint v7.3"
Browse files Browse the repository at this point in the history
This reverts commit a4025bd.
  • Loading branch information
ljharb committed Jul 2, 2020
1 parent 6fc4bc0 commit cc088df
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions tests/lib/rules/no-typos.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
// Requirements
// -----------------------------------------------------------------------------

const semver = require('semver');
const eslintPkg = require('eslint/package.json');
const RuleTester = require('eslint').RuleTester;
const rule = require('../../../lib/rules/no-typos');

Expand Down Expand Up @@ -1288,15 +1286,15 @@ ruleTester.run('no-typos', rule, {
}, {
message: 'Typo in prop type chain qualifier: isrequired'
}]
}].concat(semver.satisfies(eslintPkg.version, '>= 7.3') ? [] : {
}, {
code: `
import 'react';
class Component extends React.Component {};
`,
parser: parsers.BABEL_ESLINT,
parserOptions,
errors: []
}, [{
}, {
code: `
import { PropTypes } from 'react';
class Component extends React.Component {};
Expand Down Expand Up @@ -1700,5 +1698,5 @@ ruleTester.run('no-typos', rule, {
parserOptions: parserOptions
},
*/
}])
}]
});

0 comments on commit cc088df

Please sign in to comment.