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:
Jessica Janiuk 2023-11-16 13:09:53 -05:00 committed by Andrew Kushnir
parent 6e29e853ed
commit 81e080ed98
2 changed files with 2 additions and 2 deletions

View file

@ -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') {

View file

@ -14,7 +14,7 @@
"type": "boolean",
"description": "Enables reformatting of your templates",
"x-prompt": "Should the migration reformat your templates?",
"default": "false"
"default": "true"
}
}
}