pugjs / pug-lint

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

Allow static attribute "class" when line length exceeds #178

Open rjurado01 opened 4 years ago

rjurado01 commented 4 years ago

Y have this code:

a.ns-button.ns-button--primary.ns-button--lg.ns-button--rounded.ns-button--gradient.scrollactive-item(

Witch throws me this error: Line length exceeds the maximum of 80 chars, so I change to:

a(class=`
    ns-button ns-button--primary
    ns-button--lg
    ns-button--rounded
    ns-button--gradient
    scrollactive-item`
)

But this throws me this error: Static attribute "class" must be written as class literal

How can I do it? maybe pug-lint should allows static attribute "class" when line length exceeds.