You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Rewrites escaped quotes to quotes (causing Template Compiler Error) #219
@kategengler Out of curiosity, it is recommended not to use bare strings in templates right? Aren't you folks using any template-lint rules with bare-strings rule enabled.
@rajasegarno-bare-strings is not enabled by default in ember-template-lint, neither in recommended nor octane rulesets. It's an optional rule that can be enabled in apps that enforce internationalization. This doesn't apply to all apps -- I often build internal apps that are used by just a few people and so bare strings in the default language are fine.
@kategengler@rajasegar there is a fix pending. It might be in the new ember-template-recast, as the root problem existed in the glimmer printer. This should be close to being finished.
Activity
tylerturdenpants commentedon Dec 30, 2019
@kategengler nice one! I’ll try to look at it in 2019 😆. Seriously I’ll try to at least get my head wrapped around this in the next day or so.
[TEST] Added a failing test for escaped quotes
rajasegar commentedon Jan 12, 2020
with input fixture like this the test fails
But if the input fixture has double slashes like this, the test passes.
rajasegar commentedon Jan 12, 2020
@kategengler Out of curiosity, it is recommended not to use bare strings in templates right? Aren't you folks using any template-lint rules with
bare-stringsrule enabled.kategengler commentedon Jan 12, 2020
@rajasegar
no-bare-stringsis not enabled by default in ember-template-lint, neither in recommended nor octane rulesets. It's an optional rule that can be enabled in apps that enforce internationalization. This doesn't apply to all apps -- I often build internal apps that are used by just a few people and so bare strings in the default language are fine.rajasegar commentedon Jan 12, 2020
@kategengler Makes sense, understood.
tylerturdenpants commentedon Jan 12, 2020
@kategengler @rajasegar there is a fix pending. It might be in the new
ember-template-recast, as the root problem existed in the glimmer printer. This should be close to being finished.rajasegar commentedon Jan 12, 2020
@tylerturdenpants So the fix would be to just bump
ember-template-recastto a new version , I assumetylerturdenpants commentedon Jan 12, 2020
@rajasegar yes. I reopen a dependabot closed PR that would have down that but it looks like maybe another issue made its way through.