-
Notifications
You must be signed in to change notification settings - Fork 4
Updated content-tag to 4.1.0 (soft-breaking) #241
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
897c8bb to
381d5c1
Compare
381d5c1 to
cfcc57d
Compare
| `</div>`, | ||
| `\`, {`, | ||
| ` template_fd9b2463e5f141cfb5666b64daa1f11a(\`<div class={{styles.container}}>`, | ||
| `Hello world!`, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wrong indentation (should be 2 instead of 0).
| ` static{`, | ||
| ` template_fd9b2463e5f141cfb5666b64daa1f11a(\``, | ||
| `<UserName @user={{@user}} />`, | ||
| ` template_fd9b2463e5f141cfb5666b64daa1f11a(\` <UserName @user={{@user}} />`, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Incorrect trimming.
| ``, | ||
| `<div class={{styles.container}} data-test-field="timestamp">`, | ||
| ` {{this.timestamp}}`, | ||
| `{{this.timestamp}}`, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wrong indentation (ideally 2 instead of 0).
| ` {{@label}}`, | ||
| ` template_fd9b2463e5f141cfb5666b64daa1f11a(\`<UiFormField @errorMessage={{this.errorMessage}} @isWide={{@isWide}}>`, | ||
| `<:label as |l|>`, | ||
| `<label data-test-label for={{l.inputId}}>`, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wrong indentation (should be 2 instead of 0).
| ` {{@label}}`, | ||
| ``, | ||
| ` {{#if @isRequired}}`, | ||
| ` <span aria-hidden="true">`, | ||
| ` *`, | ||
| ` </span>`, | ||
| ` {{/if}}`, | ||
| ` </label>`, | ||
| ` {{#if @isRequired}}`, | ||
| ` <span aria-hidden="true">`, | ||
| ` *`, | ||
| ` </span>`, | ||
| ` {{/if}}`, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Idempotency hard to guarantee with content-tag@4.1.0 (it seems to continue to indent code to the left).
Warning
content-tag@4.1.0introduced soft-breaking changes to@codemod-utils/ast-template-tag'stoEcma()andupdateJavaScript(). The changes since4.0.0affect<template>tags in a class body more.It's expected that end-users of a codemod have
prettierto restore format.