Skip to content

Commit

Permalink
build: exclude build-worker file from formatting (angular#40012)
Browse files Browse the repository at this point in the history
Exclude the generated build-worker.js file from formatting as it is
generated and not subject to formatting restrictions.

PR Close angular#40012
  • Loading branch information
josephperrott authored and mhevery committed Dec 8, 2020
1 parent c043ecf commit c051693
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions .ng-dev/format.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export const format: FormatConfig = {
'!**/*.d.ts',
// Do not format generated ng-dev script
'!dev-infra/ng-dev.js',
'!dev-infra/build-worker.js',
// Do not format compliance test-cases since they must match generated code
'!packages/compiler-cli/test/compliance/test_cases/**/*.js',
]
Expand Down
3 changes: 2 additions & 1 deletion tslint.json
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,8 @@
// Ignore zone.js directory
// TODO(JiaLiPassion): add zone.js back later
"./packages/zone.js/**/*",
"./dev-infra/ng-dev.js"
"./dev-infra/ng-dev.js",
"./dev-infra/build-worker.js"
]
}
}

0 comments on commit c051693

Please sign in to comment.