@coldboy002/pug-lint-config
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(' ')}}\"",
}