Skip to content

Commit

Permalink
fix: prevent linting for running schematics with dry-run option (#1221,
Browse files Browse the repository at this point in the history
  • Loading branch information
suschneider authored Aug 1, 2022
1 parent 1f4b828 commit 5183ed4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions schematics/src/utils/lint-fix.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ const registerLintAtEnd = once((root: string) => {

export function applyLintFix(): Rule {
return tree => {
// do nothing for option --dry-run
if (process.argv.some(arg => arg === '--dry-run')) {
return;
}
// Only include files that have been touched.
tree.actions
.map(action => action.path.substring(1))
Expand Down

0 comments on commit 5183ed4

Please sign in to comment.