pugjs / pug-lint

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

Disallow js interpolation if it is the entire value #74

Open ForbesLindesay opened 8 years ago

ForbesLindesay commented 8 years ago

We should add a rule that disallows an attribute value of:

`${someExpression}`

since the user could instead just do:

someExpression

This seems to be a common mistake for people who were previously doing:

"#{someExpression}"

instead of:

someExpression