Skip to content

Commit

Permalink
[eslint] fix surprise linting error
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Feb 7, 2021
1 parent 32383e1 commit 18d7d49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/lib/rules/jsx-no-useless-fragment.js
Expand Up @@ -223,7 +223,7 @@ ruleTester.run('jsx-no-useless-fragment', rule, {
output: `
const Comp = () => (
<html>
${/* the trailing whitespace here is intentional */ ''}

This comment has been minimized.

Copy link
@duncanbeevers

duncanbeevers Feb 10, 2021

Contributor

Huh? You got rid of the trailing whitespace; the comment now seems to be nonsense.

This comment has been minimized.

Copy link
@ljharb

ljharb Feb 10, 2021

Author Member

ha, true, let me take another look at it.

This comment has been minimized.

Copy link
@ljharb

ljharb Feb 10, 2021

Author Member

fixed better, in e9a81f8.

${/* the trailing whitespace here is intentional */''}
</html>
);
`,
Expand Down

0 comments on commit 18d7d49

Please sign in to comment.