Skip to content
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

New lint: prevent usage of Input and Textarea (the ember default components) #1932

Open
NullVoxPopuli opened this issue Aug 14, 2023 · 3 comments
Labels
enhancement New Rule Idea for a new lint rule

Comments

@NullVoxPopuli
Copy link
Contributor

these are the last components using two-way binding, and they are awkward, and not well defined in the documentation.

Native <input> and <textarea> work way better (since octane), so the docs can eventually be updated to show how to use those (or use a bindless approach, like here).

@NullVoxPopuli
Copy link
Contributor Author

Last opinion on this, that I know of, was in 2014: emberjs/ember.js#4352 (comment)

And that was way before Octane, before we could "have nice things" (such as here)

@NullVoxPopuli
Copy link
Contributor Author

It looks like issue for ember-template-lint,

A little bit both, because with gjs/gts we can import these things now.
Like, the @ember/render-modifiers lint only checks the imports: https://github.com/ember-cli/eslint-plugin-ember/blob/master/lib/rules/no-at-ember-render-modifiers.js#L32

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New Rule Idea for a new lint rule
Projects
None yet
Development

No branches or pull requests

3 participants