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
--fixoption 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.
html
<% /* eslint "lodash-template/no-semi-in-template-interpolation": "error" */ %>
<!-- ✓ GOOD -->
<%= text %>
<!-- ✗ BAD -->
<%= text; %>