-
-
Notifications
You must be signed in to change notification settings - Fork 243
feat(eslint-plugin-template): Add prefer-template-literal
rule
#2308
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
base: main
Are you sure you want to change the base?
feat(eslint-plugin-template): Add prefer-template-literal
rule
#2308
Conversation
View your CI Pipeline Execution ↗ for commit 8b179e4.
☁️ Nx Cloud last updated this comment at |
prefer-template-literal
rule
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2308 +/- ##
==========================================
+ Coverage 92.66% 92.74% +0.07%
==========================================
Files 186 189 +3
Lines 3761 3816 +55
Branches 844 857 +13
==========================================
+ Hits 3485 3539 +54
- Misses 213 214 +1
Partials 63 63
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
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.
Very cool! I'm looking forward to using this.
packages/eslint-plugin-template/src/rules/prefer-template-literal.ts
Outdated
Show resolved
Hide resolved
packages/eslint-plugin-template/src/rules/prefer-template-literal.ts
Outdated
Show resolved
Hide resolved
packages/eslint-plugin-template/src/rules/prefer-template-literal.ts
Outdated
Show resolved
Hide resolved
packages/eslint-plugin-template/src/rules/prefer-template-literal.ts
Outdated
Show resolved
Hide resolved
packages/eslint-plugin-template/src/rules/prefer-template-literal.ts
Outdated
Show resolved
Hide resolved
c5c2f2e
to
ea21d6f
Compare
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.
Thanks @g-drouard! You should be able to rebase and fix up CI now
It might be fixed if I merge |
So as you said I think the only thing remaining is |
f5b4fd8
to
05b2ceb
Compare
There is an Angular bug when using literal template in Issue : angular/angular#60528 |
Cool thanks @g-drouard |
Looks like the fix has been merged and backported to 19.2.x but not yet released? |
packages/eslint-plugin-template/src/rules/prefer-template-literal.ts
Outdated
Show resolved
Hide resolved
Looks like the fix landed in 19.2.6. |
I confirm that the bug has been fixed in Should we wait for |
If I'm not mistaken, the bundled angular compiler is already at 19.2.7, so it will include the fix. |
@reduckted Exactly, we don't need to worry about user setups down to the minor/patch because of that. P.S. Sorry for my generally low activity levels on here recently, I've just completed an inter-state home move and it's been very chaotic. I'll be catching up on everything by the end of the week |
Closes #2297
Some questions/suggestions :
prefer-template-literal
to avoid ambiguity instead ofprefer-template
. I think the suggested nameprefer-template-in-template
is cumbersome. Do you have any other suggestion?@let
I noticed that was not handled. Is there an issue in progress?