Skip to content

Commit b105ed6

Browse files
alan-agius4clydin
authored andcommitted
feat(@schematics/angular): strict mode by default
With this change we workspaces are generated strict by default. To create non-strict workspace the `--no-strict` command line option.
1 parent 63fef53 commit b105ed6

File tree

4 files changed

+3
-11
lines changed

4 files changed

+3
-11
lines changed

packages/schematics/angular/application/schema.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@
107107
"strict": {
108108
"description": "Creates an application with stricter bundle budgets settings.",
109109
"type": "boolean",
110-
"default": false,
110+
"default": true,
111111
"x-user-analytics": 7
112112
},
113113
"legacyBrowsers": {

packages/schematics/angular/ng-new/schema.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,9 +128,8 @@
128128
},
129129
"strict": {
130130
"description": "Creates a workspace with stricter type checking and stricter bundle budgets settings. This setting helps improve maintainability and catch bugs ahead of time. For more information, see https://angular.io/guide/strict-mode",
131-
"x-prompt": "Do you want to enforce stricter type checking and stricter bundle budgets in the workspace?\n This setting helps improve maintainability and catch bugs ahead of time.\n For more information, see https://angular.io/strict",
132131
"type": "boolean",
133-
"default": false,
132+
"default": true,
134133
"x-user-analytics": 7
135134
},
136135
"legacyBrowsers": {

packages/schematics/angular/workspace/schema.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"strict": {
3636
"description": "Create a workspace with stricter type checking options. This setting helps improve maintainability and catch bugs ahead of time. For more information, see https://angular.io/strict",
3737
"type": "boolean",
38-
"default": false,
38+
"default": true,
3939
"x-user-analytics": 7
4040
},
4141
"packageManager": {

tests/legacy-cli/e2e/tests/build/strict-mode.ts

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)