File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 1
1
import camelCase from 'camelcase' ;
2
2
import {
3
+ ESLint ,
3
4
RuleTester ,
4
5
} from 'eslint' ;
5
6
import defaultsDeep from 'lodash.defaultsdeep' ;
7
+ import semver from 'semver' ;
6
8
import config from '../../src' ;
7
9
import ruleNames from './ruleNames.json' ;
8
10
9
11
const ruleTester = new RuleTester ( ) ;
10
12
11
13
const main = async ( ) => {
12
14
for ( const ruleName of process . env . npm_config_rule ? process . env . npm_config_rule . split ( ',' ) : ruleNames ) {
13
- if ( ruleName === 'check-examples' ) {
15
+ if ( semver . gte ( ESLint . version , '8.0.0' ) && ruleName === 'check-examples' ) {
14
16
// TODO: This rule cannot yet be supported for ESLint 8;
15
17
// The possibility for ESLint 8 support is being tracked at https://github.com/eslint/eslint/issues/14745
16
- return ;
18
+ continue ;
17
19
}
18
20
19
21
const rule = config . rules [ ruleName ] ;
You can’t perform that action at this time.
0 commit comments