Skip to content

Commit

Permalink
feat(@schematics/angular): strict mode by default
Browse files Browse the repository at this point in the history
With this change we workspaces are generated strict by default. To create non-strict workspace the `--no-strict` command line option.
  • Loading branch information
alan-agius4 authored and clydin committed Feb 11, 2021
1 parent 63fef53 commit b105ed6
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 11 deletions.
2 changes: 1 addition & 1 deletion packages/schematics/angular/application/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@
"strict": {
"description": "Creates an application with stricter bundle budgets settings.",
"type": "boolean",
"default": false,
"default": true,
"x-user-analytics": 7
},
"legacyBrowsers": {
Expand Down
3 changes: 1 addition & 2 deletions packages/schematics/angular/ng-new/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,8 @@
},
"strict": {
"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",
"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",
"type": "boolean",
"default": false,
"default": true,
"x-user-analytics": 7
},
"legacyBrowsers": {
Expand Down
2 changes: 1 addition & 1 deletion packages/schematics/angular/workspace/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"strict": {
"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",
"type": "boolean",
"default": false,
"default": true,
"x-user-analytics": 7
},
"packageManager": {
Expand Down
7 changes: 0 additions & 7 deletions tests/legacy-cli/e2e/tests/build/strict-mode.ts

This file was deleted.

0 comments on commit b105ed6

Please sign in to comment.