0.0.11 • Published 8 years ago

fly-pug-lint v0.0.11

Weekly downloads
3
License
WTFPL
Repository
github
Last release
8 years ago

fly-pug-lint

fly badge npm badge download badge travisbadge license badge

Pug-lint plugin for Fly .

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.

License

Do What The F*ck You Want To Public License

0.0.11

8 years ago

0.0.10

8 years ago

0.0.9

8 years ago