diff --git a/packages/schematics/angular/application/schema.json b/packages/schematics/angular/application/schema.json index c507aec13f03..84f87cf24361 100644 --- a/packages/schematics/angular/application/schema.json +++ b/packages/schematics/angular/application/schema.json @@ -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": { diff --git a/packages/schematics/angular/ng-new/schema.json b/packages/schematics/angular/ng-new/schema.json index 19d6b6d5ccce..88186921700a 100644 --- a/packages/schematics/angular/ng-new/schema.json +++ b/packages/schematics/angular/ng-new/schema.json @@ -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": { diff --git a/packages/schematics/angular/workspace/schema.json b/packages/schematics/angular/workspace/schema.json index 543cec4a676d..14e6343172f3 100644 --- a/packages/schematics/angular/workspace/schema.json +++ b/packages/schematics/angular/workspace/schema.json @@ -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": { diff --git a/tests/legacy-cli/e2e/tests/build/strict-mode.ts b/tests/legacy-cli/e2e/tests/build/strict-mode.ts deleted file mode 100644 index 7d223001a494..000000000000 --- a/tests/legacy-cli/e2e/tests/build/strict-mode.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { ng } from '../../utils/process'; -import { createProject } from '../../utils/project'; - -export default async function() { - await createProject('strict-test-project', '--strict'); - await ng('e2e', '--prod'); -}