mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00: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:
parent
6e29e853ed
commit
81e080ed98
2 changed files with 2 additions and 2 deletions
|
|
@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue