pugjs / pug-lint

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

Improves disallow block expansion #65

Closed benedfit closed 5 years ago

benedfit commented 8 years ago

Adds support to white list particular tokens, so rather than banning the use of the block expansion operator entirely, it can be permitted in simple cases

e.g. [ 'tag' ] would allow table: tr: td Text but disallow table(attr='attr): tr: td Text because tag tokens are white listed, but attribute related tokens are not.

Will perhaps add an additional config variable so to check the limit of tokens