File tree Expand file tree Collapse file tree
common/changes/@rushstack/heft-lint-plugin
heft-plugins/heft-lint-plugin/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ {
2+ "changes" : [
3+ {
4+ "packageName" : " @rushstack/heft-lint-plugin" ,
5+ "comment" : " Fix the `--fix` argument when the file only contains fixable issues." ,
6+ "type" : " patch"
7+ }
8+ ],
9+ "packageName" : " @rushstack/heft-lint-plugin"
10+ }
Original file line number Diff line number Diff line change @@ -178,7 +178,12 @@ export class Eslint extends LinterBase<TEslint.ESLint.LintResult> {
178178
179179 const trimmedLintResults : TEslint . ESLint . LintResult [ ] = [ ] ;
180180 for ( const lintResult of lintResults ) {
181- if ( lintResult . messages . length > 0 || lintResult . warningCount > 0 || lintResult . errorCount > 0 ) {
181+ if (
182+ lintResult . messages . length > 0 ||
183+ lintResult . warningCount > 0 ||
184+ lintResult . errorCount > 0 ||
185+ fixMessages . length > 0
186+ ) {
182187 trimmedLintResults . push ( lintResult ) ;
183188 }
184189 }
You can’t perform that action at this time.
0 commit comments