GithubHelp home page GithubHelp logo

Comments (8)

kategengler avatar kategengler commented on July 1, 2024 1

@rajasegar no-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.

from ember-angle-brackets-codemod.

tylerturdenpants avatar tylerturdenpants commented on July 1, 2024

@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.

from ember-angle-brackets-codemod.

rajasegar avatar rajasegar commented on July 1, 2024

with input fixture like this the test fails

  let input = `
    {{foo-bar placeholder="Choose a \"thing\" here"}}
    `;

But if the input fixture has double slashes like this, the test passes.

  let input = `
    {{foo-bar placeholder="Choose a \\"thing\\" here"}}
    `;

from ember-angle-brackets-codemod.

rajasegar avatar rajasegar commented on July 1, 2024

@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.

from ember-angle-brackets-codemod.

rajasegar avatar rajasegar commented on July 1, 2024

@kategengler Makes sense, understood.

from ember-angle-brackets-codemod.

tylerturdenpants avatar tylerturdenpants commented on July 1, 2024

@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.

from ember-angle-brackets-codemod.

rajasegar avatar rajasegar commented on July 1, 2024

@tylerturdenpants So the fix would be to just bump ember-template-recast to a new version , I assume

from ember-angle-brackets-codemod.

tylerturdenpants avatar tylerturdenpants commented on July 1, 2024

@rajasegar yes. I reopen a dependabot closed PR that would have down that but it looks like maybe another issue made its way through.

from ember-angle-brackets-codemod.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.