Rule: angular-whitespace

Ensures the proper formatting of Angular expressions.

Rationale

Having whitespace in the right places in an Angular expression makes the template more readable.

Notes:
TS Only

Config

One argument may be optionally provided:

  • "check-interpolation" checks for whitespace before and after the interpolation characters
Examples
"angular-whitespace": [true, "check-interpolation"]
Schema
{
  "type": "array",
  "items": {
    "type": "string",
    "enum": [
      "check-interpolation"
    ]
  },
  "minLength": 0,
  "maxLength": 1
}