Skip to content

Extract rule: template-no-arguments-for-html-elements#2403

Merged
NullVoxPopuli merged 1 commit intoember-cli:masterfrom
NullVoxPopuli:nvp/template-lint-extract-rule-template-no-arguments-for-html-elements
Feb 19, 2026
Merged

Extract rule: template-no-arguments-for-html-elements#2403
NullVoxPopuli merged 1 commit intoember-cli:masterfrom
NullVoxPopuli:nvp/template-lint-extract-rule-template-no-arguments-for-html-elements

Conversation

@NullVoxPopuli
Copy link
Copy Markdown
Contributor

Split from #2371.

@NullVoxPopuli NullVoxPopuli marked this pull request as draft February 18, 2026 00:09
@NullVoxPopuli NullVoxPopuli force-pushed the nvp/template-lint-extract-rule-template-no-arguments-for-html-elements branch from 6512430 to b01777a Compare February 19, 2026 02:41
@NullVoxPopuli NullVoxPopuli marked this pull request as ready for review February 19, 2026 13:29
Comment thread tests/lib/rules/template-no-arguments-for-html-elements.js
Comment thread tests/lib/rules/template-no-arguments-for-html-elements.js
'ul',
'var',
'video',
'wbr',
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The existing implementation didn't rely upon a list of html elements https://github.com/ember-template-lint/ember-template-lint/blob/main/lib/rules/no-arguments-for-html-elements.js

do we want to?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think so, because we can do:

<Foo as |foo|>
 <foo @hello="greetings" />
</Foo>

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The previous implementation supported that as well. A dep seems reasonable

@NullVoxPopuli NullVoxPopuli force-pushed the nvp/template-lint-extract-rule-template-no-arguments-for-html-elements branch from 852388c to 54e72ab Compare February 19, 2026 21:34
@NullVoxPopuli NullVoxPopuli force-pushed the nvp/template-lint-extract-rule-template-no-arguments-for-html-elements branch from 54e72ab to f0209b2 Compare February 19, 2026 22:48
@NullVoxPopuli NullVoxPopuli reopened this Feb 19, 2026
`let div = <template>{{@greeting}}</template>

<template>
<div @greeting="hello" />
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

while super goofy, is very important that this is allowed

@NullVoxPopuli NullVoxPopuli merged commit 4fc9ccc into ember-cli:master Feb 19, 2026
17 checks passed
@NullVoxPopuli NullVoxPopuli deleted the nvp/template-lint-extract-rule-template-no-arguments-for-html-elements branch February 19, 2026 23:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants