Skip to content

Extract rule: template-no-attrs-in-components#2407

Merged
NullVoxPopuli merged 1 commit intoember-cli:masterfrom
NullVoxPopuli:nvp/template-lint-extract-rule-template-no-attrs-in-components
Feb 20, 2026
Merged

Extract rule: template-no-attrs-in-components#2407
NullVoxPopuli merged 1 commit intoember-cli:masterfrom
NullVoxPopuli:nvp/template-lint-extract-rule-template-no-attrs-in-components

Conversation

@NullVoxPopuli
Copy link
Copy Markdown
Contributor

Split from #2371.

@NullVoxPopuli NullVoxPopuli marked this pull request as draft February 18, 2026 00:12
@NullVoxPopuli NullVoxPopuli force-pushed the nvp/template-lint-extract-rule-template-no-attrs-in-components branch 2 times, most recently from 6bd4adf to 3d210bf Compare February 20, 2026 15:18
@NullVoxPopuli NullVoxPopuli force-pushed the nvp/template-lint-extract-rule-template-no-attrs-in-components branch from 3d210bf to 0575fa6 Compare February 20, 2026 16:06
@NullVoxPopuli NullVoxPopuli marked this pull request as ready for review February 20, 2026 16:08

<!-- end auto-generated rule header -->

This rule prevents the usage of `this.attrs` property to access values passed to the component. Use `@arg` syntax instead.
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Should we metion it's also from the octane era?

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.

perhaps -- was attrs ever recommended? even in @ember/components?

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.

I think it was in docs and it was, at some point, very common.

@NullVoxPopuli NullVoxPopuli merged commit 4810446 into ember-cli:master Feb 20, 2026
9 checks passed
@NullVoxPopuli NullVoxPopuli deleted the nvp/template-lint-extract-rule-template-no-attrs-in-components branch February 20, 2026 21:32
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.

3 participants