Skip to content

Latest commit

 

History

History
29 lines (22 loc) · 1.41 KB

no-semi-in-template-interpolation.md

File metadata and controls

29 lines (22 loc) · 1.41 KB
pageClass sidebarDepth title description
rule-details
0
lodash-template/no-semi-in-template-interpolation
disallow the semicolon at the end of expression in micro template interpolation.(ex. 🆗 `<%= text %>` 🆖 `<%= text; %>`)

lodash-template/no-semi-in-template-interpolation

disallow the semicolon at the end of expression in micro template interpolation.(ex. 🆗 <%= text %> 🆖 <%= text; %>)

  • ⚙️ This rule is included in all of "plugin:lodash-template/best-practices", "plugin:lodash-template/recommended", "plugin:lodash-template/recommended-with-html", "plugin:lodash-template/recommended-with-script" and "plugin:lodash-template/all".
  • 🔧 The --fix option on the command line can automatically fix some of the problems reported by this rule.

Rule Details

This rule disallow the semicolon at the end of expression in micro template interpolation.

<% /* eslint "lodash-template/no-semi-in-template-interpolation": "error" */ %>
<!-- ✓ GOOD -->
<%= text %>

<!-- ✗ BAD -->
<%= text; %>

Implementation