pugjs / pug-lint

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

[Feature Request] pug-lint-loader? #120

Closed jspizziri closed 2 years ago

jspizziri commented 7 years ago

I'd love a package that would easily allow me to plug the linter into my webpack config.

Thanks!

DevNebulae commented 7 years ago

I support this. Even though it is not mission critical most of the time, since Pug works or it doesn't, it still makes the quality of life better since you don't have to switch between Webpack and Gulp constantly (or even the command line tool).

Jack-Works commented 7 years ago

@jspizziri @DevNebulae

I just made one. https://github.com/Jack-Works/pug-lint-loader

I'll document it later.

{
    test: /\.(pug|jade)$/,
    exclude: /node_modules/,
    loader: 'pug-lint-loader?' + JSON.stringify(require('./.pug-lintrc.js'))
}

but I think Pugjs will provide an official lint-loader in future, so I'm not publishing it to npm.