File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -8,22 +8,24 @@ assertES5();
8
8
9
9
// Ensure no ES6 has snuck through into the build:
10
10
function assertES5 ( ) {
11
- var CLIEngine = eslint . CLIEngine ;
11
+ var ESLint = eslint . ESLint ;
12
12
13
- var cli = new CLIEngine ( {
13
+ var cli = new ESLint ( {
14
14
allowInlineConfig : false ,
15
15
useEslintrc : false ,
16
16
ignore : false ,
17
- parserOptions : {
18
- ecmaVersion : 5
17
+ overrideConfig : {
18
+ parserOptions : {
19
+ ecmaVersion : 5
20
+ }
19
21
}
20
22
} ) ;
21
23
22
24
var files = partialBundlePaths . map ( function ( f ) { return f . dist ; } ) ;
23
25
files . unshift ( constants . pathToPlotlyDist ) ;
24
26
25
- var report = cli . executeOnFiles ( files ) ;
26
- var formatter = cli . getFormatter ( ) ;
27
+ var report = cli . lintFiles ( files ) ;
28
+ var formatter = cli . loadFormatter ( ) ;
27
29
28
30
var errors = [ ] ;
29
31
if ( report . errorCount > 0 ) {
You can’t perform that action at this time.
0 commit comments