ember-template-lint icon indicating copy to clipboard operation
ember-template-lint copied to clipboard

Bug: autofix of `attribute-order` removes empty string attribute/argument values

Open IgnaceMaes opened this issue 1 year ago • 2 comments

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])

IgnaceMaes avatar Apr 10 '24 12:04 IgnaceMaes

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.

IgnaceMaes avatar Apr 10 '24 12:04 IgnaceMaes