# lodash-template/template-tag-spacing

enforce unified spacing in micro-template tag. (ex. 🆗 <%= prop %>, 🆖 <%=prop%>)

  • ⚙️ This rule is included in all of "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 (opens new window) can automatically fix some of the problems reported by this rule.

# Rule Details

This rule aims to enforce unified spacing in micro-template interpolate/evaluate.

Now loading...

# Options

Default spacing is set to always

{
  "lodash-template/micro-template-interpolation-spacing": ["error", "always" | "never"]
}

# "always" - Expect one space between expression and curly brackets.

Now loading...

# "never" - Expect no spaces between expression and curly brackets.

Now loading...

# Implementation