This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
FR: add rule template/object-shorthand
#599
Labels
package: eslint-plugin-template
Angular Template rules
rule proposal
This issue is requesting/proposing the creation of a new rule within one of the core plugins
Angular v12.1.0 brought us the support for shorthand property declarations in templates and so we can write
<div [test]="{ a, b, c }"></div>
instead of<div [test]="{ a: a, b: b, c: c }"></div>
.In order to help to maintain a consistent codebase, I'd like to propose a rule with the same ideia of object-shorthand, with a single option that indicates that we should always (default) or never use shorthand form.
Examples:
The text was updated successfully, but these errors were encountered: