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();
88
99// Ensure no ES6 has snuck through into the build:
1010function assertES5 ( ) {
11- var CLIEngine = eslint . CLIEngine ;
11+ var ESLint = eslint . ESLint ;
1212
13- var cli = new CLIEngine ( {
13+ var cli = new ESLint ( {
1414 allowInlineConfig : false ,
1515 useEslintrc : false ,
1616 ignore : false ,
17- parserOptions : {
18- ecmaVersion : 5
17+ overrideConfig : {
18+ parserOptions : {
19+ ecmaVersion : 5
20+ }
1921 }
2022 } ) ;
2123
2224 var files = partialBundlePaths . map ( function ( f ) { return f . dist ; } ) ;
2325 files . unshift ( constants . pathToPlotlyDist ) ;
2426
25- var report = cli . executeOnFiles ( files ) ;
26- var formatter = cli . getFormatter ( ) ;
27+ var report = cli . lintFiles ( files ) ;
28+ var formatter = cli . loadFormatter ( ) ;
2729
2830 var errors = [ ] ;
2931 if ( report . errorCount > 0 ) {
You can’t perform that action at this time.
0 commit comments