ember-template-lint
ember-template-lint copied to clipboard
Bug: autofix of `attribute-order` removes empty string attribute/argument values
Description
The auto fix of attribute-order removes empty string values for attributes and arguments.
Example
Before:
<SomeComponent @b="" @a="foo" />
After:
<SomeComponent @a="foo" @b />
Expected:
<SomeComponent @a="foo" @b="" />
Versions
Seeing this behaviour both on [email protected] and latest ([email protected])
Seems like this was reported before: https://github.com/ember-template-lint/ember-template-lint/issues/2692
And mentioned as fixed in https://github.com/ember-template-lint/ember-template-lint/pull/2701
Why am I still seeing this issue then? 🤔
EDIT: The issue that was fixed was for the combination of a single attribute and argument. That does work now. Having more than one argument/attribute with one having an empty value seems an actual remaining bug then.