mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
refactor(migrations): Switch control flow migration reformat default to true (#52971)
This switches the default behavior of the control flow migration template reformatting from opt-in to opt-out. PR Close #52971
This commit is contained in:
committed by
Andrew Kushnir
parent
6e29e853ed
commit
81e080ed98
@@ -19,7 +19,7 @@ import {canRemoveCommonModule, formatTemplate, processNgTemplates, removeImports
|
||||
*/
|
||||
export function migrateTemplate(
|
||||
template: string, templateType: string, node: ts.Node, file: AnalyzedFile,
|
||||
format: boolean = false): {migrated: string, errors: MigrateError[]} {
|
||||
format: boolean = true): {migrated: string, errors: MigrateError[]} {
|
||||
let errors: MigrateError[] = [];
|
||||
let migrated = template;
|
||||
if (templateType === 'template') {
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
"type": "boolean",
|
||||
"description": "Enables reformatting of your templates",
|
||||
"x-prompt": "Should the migration reformat your templates?",
|
||||
"default": "false"
|
||||
"default": "true"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user