Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

validateAttributeSeparator does not allow dangling commas #143

Open
spukst3r opened this issue Dec 14, 2017 · 1 comment
Open

validateAttributeSeparator does not allow dangling commas #143

spukst3r opened this issue Dec 14, 2017 · 1 comment

Comments

@spukst3r
Copy link

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
Copy link

hayorov commented Dec 14, 2017

Sounds reasonable to me. +1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants