From 1125796ef16447c737df1ae244c980b02785051c Mon Sep 17 00:00:00 2001 From: Ross <52366381+ROSSROSALES@users.noreply.github.com> Date: Tue, 18 Oct 2022 01:28:49 +0000 Subject: [PATCH] removed ESLint Version Tests --- tests/lib/rules/sort-prop-types.js | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/tests/lib/rules/sort-prop-types.js b/tests/lib/rules/sort-prop-types.js index 0e363eec65..71bfdeeb87 100644 --- a/tests/lib/rules/sort-prop-types.js +++ b/tests/lib/rules/sort-prop-types.js @@ -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'); @@ -1886,7 +1885,7 @@ ruleTester.run('sort-prop-types', rule, { }, ], }, - semver.satisfies(eslintPkg.version, '>= 3') ? { + { code: ` var First = createReactClass({ propTypes: { @@ -1925,8 +1924,8 @@ ruleTester.run('sort-prop-types', rule, { type: 'Property', }, ], - } : [], - semver.satisfies(eslintPkg.version, '>= 3') ? { + }, + { code: ` var First = createReactClass({ propTypes: { @@ -1965,8 +1964,8 @@ ruleTester.run('sort-prop-types', rule, { type: 'Property', }, ], - } : [], - semver.satisfies(eslintPkg.version, '>= 3') ? { + }, + { code: ` var First = createReactClass({ propTypes: { @@ -2005,8 +2004,8 @@ ruleTester.run('sort-prop-types', rule, { type: 'Property', }, ], - } : [], - semver.satisfies(eslintPkg.version, '>= 3') ? { + }, + { code: ` var First = createReactClass({ propTypes: { @@ -2041,8 +2040,8 @@ ruleTester.run('sort-prop-types', rule, { type: 'Property', }, ], - } : [], - semver.satisfies(eslintPkg.version, '>= 3') ? { + }, + { code: ` class Component extends React.Component { render() { @@ -2098,6 +2097,6 @@ ruleTester.run('sort-prop-types', rule, { type: 'Property', }, ], - } : [] + } )), });