fly-pug-lint

0.0.11 • Public • Published

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

Package Sidebar

Install

npm i fly-pug-lint

Weekly Downloads

4

Version

0.0.11

License

WTFPL

Last publish

Collaborators

  • frantic1048