Skip to content

Commit

Permalink
test: disable check-examples tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gajus committed Oct 26, 2021
1 parent f92fb60 commit 7acefe1
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions test/rules/index.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
import {
ESLint, RuleTester,
RuleTester,
} from 'eslint';
import _ from 'lodash';
import semver from 'semver';
import config from '../../src';
import ruleNames from './ruleNames.json';

const ruleTester = new RuleTester();

const main = async () => {
for (const ruleName of process.env.npm_config_rule ? process.env.npm_config_rule.split(',') : ruleNames) {
if (semver.gte(ESLint.version, '8.0.0') && ruleName === 'check-examples') {
// This rule cannot yet be supported for ESLint 8;
if (ruleName === 'check-examples') {
// TODO: This rule cannot yet be supported for ESLint 8;
// The possibility for ESLint 8 support is being tracked at https://github.com/eslint/eslint/issues/14745
return;
}
Expand Down

0 comments on commit 7acefe1

Please sign in to comment.