Skip to content

Commit

Permalink
refactor(migrations): Switch control flow migration reformat default …
Browse files Browse the repository at this point in the history
…to true (#52971)

This switches the default behavior of the control flow migration template reformatting from opt-in to opt-out.

PR Close #52971
  • Loading branch information
thePunderWoman authored and AndrewKushnir committed Nov 16, 2023
1 parent 6e29e85 commit 81e080e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -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') {
Expand Down
Expand Up @@ -14,7 +14,7 @@
"type": "boolean",
"description": "Enables reformatting of your templates",
"x-prompt": "Should the migration reformat your templates?",
"default": "false"
"default": "true"
}
}
}

0 comments on commit 81e080e

Please sign in to comment.