FR: add rule template/object-shorthand
#830
rafaelss95
started this conversation in
New Rule Proposals
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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:
Beta Was this translation helpful? Give feedback.
All reactions