Skip to content

Commit f8bf7cd

Browse files
committed
Fix fixer to preserve attribute quotes when appending rel values
1 parent 139bfaf commit f8bf7cd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/rules/template-link-rel-noopener.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ module.exports = {
5454
const newValue = parts.join(' ');
5555
return fixer.replaceTextRange(
5656
[relAttr.value.range[0], relAttr.value.range[1]],
57-
newValue
57+
`"${newValue}"`
5858
);
5959
}
6060
// No rel attribute — insert one before the closing >

0 commit comments

Comments
 (0)