Skip to content

Commit

Permalink
removed ESLint Version Tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ROSSROSALES committed Oct 18, 2022
1 parent 1a36724 commit 1125796
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions tests/lib/rules/sort-prop-types.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@

const babelEslintVersion = require('babel-eslint/package.json').version;
const semver = require('semver');
const eslintPkg = require('eslint/package.json');
const RuleTester = require('eslint').RuleTester;

const rule = require('../../../lib/rules/sort-prop-types');
Expand Down Expand Up @@ -1886,7 +1885,7 @@ ruleTester.run('sort-prop-types', rule, {
},
],
},
semver.satisfies(eslintPkg.version, '>= 3') ? {
{
code: `
var First = createReactClass({
propTypes: {
Expand Down Expand Up @@ -1925,8 +1924,8 @@ ruleTester.run('sort-prop-types', rule, {
type: 'Property',
},
],
} : [],
semver.satisfies(eslintPkg.version, '>= 3') ? {
},
{
code: `
var First = createReactClass({
propTypes: {
Expand Down Expand Up @@ -1965,8 +1964,8 @@ ruleTester.run('sort-prop-types', rule, {
type: 'Property',
},
],
} : [],
semver.satisfies(eslintPkg.version, '>= 3') ? {
},
{
code: `
var First = createReactClass({
propTypes: {
Expand Down Expand Up @@ -2005,8 +2004,8 @@ ruleTester.run('sort-prop-types', rule, {
type: 'Property',
},
],
} : [],
semver.satisfies(eslintPkg.version, '>= 3') ? {
},
{
code: `
var First = createReactClass({
propTypes: {
Expand Down Expand Up @@ -2041,8 +2040,8 @@ ruleTester.run('sort-prop-types', rule, {
type: 'Property',
},
],
} : [],
semver.satisfies(eslintPkg.version, '>= 3') ? {
},
{
code: `
class Component extends React.Component {
render() {
Expand Down Expand Up @@ -2098,6 +2097,6 @@ ruleTester.run('sort-prop-types', rule, {
type: 'Property',
},
],
} : []
}
)),
});

0 comments on commit 1125796

Please sign in to comment.