Skip to content

Commit 13d2a3f

Browse files
committed
fix(lint): 修复没有使用到本地lint规则
1 parent eef710a commit 13d2a3f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/models/Project.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,8 @@ class Project {
172172
warn('Linting JS Files ...');
173173
this.eslintConfig.useEslintrc = false;
174174

175+
extend(true, this.eslintConfig, this.config._config.eslintConfig);
176+
175177
const cliengine = this.eslintConfig.linter || CLIEngine, // 优先使用项目配置的linter
176178
cli = new cliengine(this.eslintConfig),
177179
report = cli.executeOnFiles(this._getLintFiles(dir, 'js')),

0 commit comments

Comments
 (0)