From c05169318e9a974f411bce820a0de5b98a222522 Mon Sep 17 00:00:00 2001 From: Joey Perrott Date: Mon, 7 Dec 2020 10:57:43 -0800 Subject: [PATCH] build: exclude build-worker file from formatting (#40012) Exclude the generated build-worker.js file from formatting as it is generated and not subject to formatting restrictions. PR Close #40012 --- .ng-dev/format.ts | 1 + tslint.json | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.ng-dev/format.ts b/.ng-dev/format.ts index e6328eca9c..e33f60d4af 100644 --- a/.ng-dev/format.ts +++ b/.ng-dev/format.ts @@ -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', ] diff --git a/tslint.json b/tslint.json index d7a30f3370..c4a8ac52b5 100644 --- a/tslint.json +++ b/tslint.json @@ -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" ] } }