@coldboy002/pug-lint-config

0.0.1 • Public • Published

@coldboy002/pug-lint-config

NPM version

A sharable pug-lint config for linting pug files.

Installation

The peer dependencies pug-lint must be installed alongside this package.

install with npm:

npm install -D @coldboy002/pug-lint-config pug-lint

install with yarn:

yarn add -D @coldboy002/pug-lint-config pug-lint

Usage

Add the pugLintConfig field to your package.json file:

"pugLintConfig": {
  "extends": "@coldboy002/pug-lint-config"
}

Or create a pug-lint config file type of your choice in the root folder of your project:

.pug-lintrc or .pug-lintrc.json

{
  "extends": "@coldboy002/pug-lint-config"
}

.pug-lintrc.js

module.exports = {
  extends: '@coldboy002/pug-lint-config',
};

Check out this page for more details about configuring pug-lint.

Scripts

Add a script to your package.json file:

"scripts": {
  "lint:pug": "glob-exec \"./**/*.pug\" -- \"pug-lint {{files.join(' ')}}\"",
}

FAQ

Changelog

License

Package Sidebar

Install

npm i @coldboy002/pug-lint-config

Weekly Downloads

0

Version

0.0.1

License

MIT

Unpacked Size

7.31 kB

Total Files

9

Last publish

Collaborators

  • coldboy002