We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6cc0165 commit 174d39dCopy full SHA for 174d39d
tasks/no_es6_dist.js
@@ -8,22 +8,24 @@ assertES5();
8
9
// Ensure no ES6 has snuck through into the build:
10
function assertES5() {
11
- var CLIEngine = eslint.CLIEngine;
+ var ESLint = eslint.ESLint;
12
13
- var cli = new CLIEngine({
+ var cli = new ESLint({
14
allowInlineConfig: false,
15
useEslintrc: false,
16
ignore: false,
17
- parserOptions: {
18
- ecmaVersion: 5
+ overrideConfig: {
+ parserOptions: {
19
+ ecmaVersion: 5
20
+ }
21
}
22
});
23
24
var files = partialBundlePaths.map(function(f) { return f.dist; });
25
files.unshift(constants.pathToPlotlyDist);
26
- var report = cli.executeOnFiles(files);
- var formatter = cli.getFormatter();
27
+ var report = cli.lintFiles(files);
28
+ var formatter = cli.loadFormatter();
29
30
var errors = [];
31
if(report.errorCount > 0) {
0 commit comments