Skip to content

Commit

Permalink
Update indent.test.js
Browse files Browse the repository at this point in the history
  • Loading branch information
yeonjuan committed Feb 7, 2025
1 parent 4c7cf61 commit ff31cd5
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions packages/eslint-plugin/tests/rules/indent.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -1149,6 +1149,14 @@ templateRuleTester.run("[template] indent", rule, {
</div>
\``,
},
{
code: `html\`
<div>
\${
content}
</div>
\``,
},
// Ignore indentation in template expressions
{
code: `html\`
Expand Down Expand Up @@ -1217,6 +1225,36 @@ const code = html\`
},
{
code: `html\`
<div>
\${content
}
</div>
\``,
output: `html\`
<div>
\${content
}
</div>
\``,
errors: wrongIndentErrors(1),
},
{
code: `html\`
<div>
\${
content}
</div>
\``,
output: `html\`
<div>
\${
content}
</div>
\``,
errors: wrongIndentErrors(1),
},
{
code: `html\`
<div
id="\${bar}">
</div>
Expand Down

0 comments on commit ff31cd5

Please sign in to comment.