@lcooper/pug-lint-config
A sharable pug-lint config for linting pug
files.
Installation
Install with the peer dependency pug-lint:
npm install --save-dev pug-lint @lcooper/pug-lint-config
Usage
Add the pugLintConfig
field to your package.json
file:
"pugLintConfig": {
"extends": "@lcooper/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": "@lcooper/pug-lint-config"
}
.pug-lintrc.js
module.exports = {
extends: '@lcooper/pug-lint-config',
};
Scripts
Add a script to your package.json
file:
"scripts": {
"lint:pug": "pug-lint **/*.pug"
}