fly-pug-lint
v0.0.11
Published
Pug-lint plugin for Fly.
Downloads
18
Maintainers
Readme
fly-pug-lint
Install
This plugin requires Fly .
npm i -D fly-pug-lint
Usage
By default, fly-pug-lint
uses .pug-lintrc.js
in your project directory as pug-lint
config.
Async/Await flavored:
export async function lintPug () {
await this
.source('src/*.pug')
.puglint()
/* or pass your custom options to pug-lint
* .puglint({
* extends: '.pug-lintrc.js',
* disallowIdAttributeWithStaticValue: true,
* disallowSpacesInsideAttributeBrackets: null
* })
*/
}
Generator function flavored:
exports.lintPug = function* () {
yield this
.source('src/*.pug')
.puglint()
/* or pass your custom options to pug-lint
* .puglint({
* extends: '.pug-lintrc.js',
* disallowIdAttributeWithStaticValue: true,
* disallowSpacesInsideAttributeBrackets: null
* })
*/
}
Check out Pug-lint documentation for available options.