We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d6bd90b + 592d887 commit a4c36bdCopy full SHA for a4c36bd
2 files changed
lib/rules/prettier.js
@@ -133,7 +133,7 @@ export default class Prettier extends Rule {
133
case REPLACE:
134
message = `Replace \`${showInvisibles(
135
difference.deleteText
136
- )}\` with \`${difference.insertText}\``;
+ )}\` with \`${showInvisibles(difference.insertText)}\``;
137
break;
138
}
139
test/unit/rules/lint-prettier-test.js
@@ -49,7 +49,7 @@ test
49
fixedTemplate: `<div data-foo data-bar="lol" some-other-thing={{haha-morethaneightychars}}>
50
</div>`,
51
result: {
52
- message: 'Replace `⏎·data-bar="lol"⏎·····` with ` data-bar="lol"`',
+ message: 'Replace `⏎·data-bar="lol"⏎·····` with `·data-bar="lol"`',
53
line: 1,
54
column: 13,
55
endLine: 3,
0 commit comments