pugjs / pug-lint

An unopinionated and configurable linter and style checker for Pug
ISC License
228 stars 51 forks source link

validateAttributeSeparator does not allow dangling commas #143

Open spukst3r opened 6 years ago

spukst3r commented 6 years ago

I have the following rule in mine pug-lint config:

"validateAttributeSeparator": {
  "separator": ", ",
  "multiLineSeparator": ",\n  "
}

and the following code snippet:

v-chip(
  close,
  @input="remove(data.item)",
)

With this configuration pug-lint complains about "Invalid attribute separator found", pointing to the line with the last attribute (containing "input"). An option to force the use of dangling commas would be great.

hayorov commented 6 years ago

Sounds reasonable to me. +1