We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3a8086e commit c592569Copy full SHA for c592569
src/models/Project.js
@@ -150,7 +150,8 @@ class Project {
150
return sysPath.join(this.config._config.context, '/**/*' + jsExt)
151
});
152
153
- const cli = new CLIEngine(this.eslintConfig),
+ const cliengine = this.eslintConfig.linter || CLIEngine, // 优先使用项目配置的linter
154
+ cli = new cliengine(this.eslintConfig),
155
report = cli.executeOnFiles(
156
globby.sync(jsLintPath, {
157
cwd: this.cwd
0 commit comments