Skip to content

Commit c592569

Browse files
committed
fix(lint): 优先使用项目配置的linter
1 parent 3a8086e commit c592569

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/models/Project.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,8 @@ class Project {
150150
return sysPath.join(this.config._config.context, '/**/*' + jsExt)
151151
});
152152

153-
const cli = new CLIEngine(this.eslintConfig),
153+
const cliengine = this.eslintConfig.linter || CLIEngine, // 优先使用项目配置的linter
154+
cli = new cliengine(this.eslintConfig),
154155
report = cli.executeOnFiles(
155156
globby.sync(jsLintPath, {
156157
cwd: this.cwd

0 commit comments

Comments
 (0)