Skip to content

Commit df8c6cc

Browse files
committed
chore: fix formatting
1 parent a4656dc commit df8c6cc

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/rules/no-deprecated-props.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -634,7 +634,8 @@ module.exports = {
634634
const attrGroups = {}
635635
tag.attributes.forEach(attr => {
636636
if (['location'].includes(attr.key.name)) {
637-
(attrGroups[attr.key.name] ??= []).push(attr)
637+
attrGroups[attr.key.name] = attrGroups[attr.key.name] ?? []
638+
attrGroups[attr.key.name].push(attr)
638639
}
639640
})
640641
Object.values(attrGroups).forEach(attrGroup => {
@@ -648,8 +649,8 @@ module.exports = {
648649
node: head,
649650
fix (fixer) {
650651
return [
651-
fixer.replaceText(head.value, `"${attrGroup.map(a => a.value.value).join(" ")}"`),
652-
...tail.map(a => fixer.remove(a))
652+
fixer.replaceText(head.value, `"${attrGroup.map(a => a.value.value).join(' ')}"`),
653+
...tail.map(a => fixer.remove(a)),
653654
]
654655
},
655656
})

0 commit comments

Comments
 (0)