The pug-lint shareable config designed for my personal projects.
Use it as is or as a foundation for your own configuration file.
Install the package and pug-lint
in your project:
npm i -D pug-lint @koshikishi/pug-lint-config
Set your pug-lint
config to:
{
"extends": "@koshikishi/pug-lint-config"
}
You can specify additional rules and override or turn off already set ones.
For example, to change the validateIndentation
rule to specify a different indentation, turn off the requireStrictEqualityOperators
rule and add the validateDivTags
rule:
{
"extends": "@koshikishi/pug-lint-config",
"requireStrictEqualityOperators": null,
"validateDivTags": true,
"validateIndentation": 4
}
- Install the pug-lint extension for VS Code.
- Enable the linter in VS Code settings.
- Install
pug-lint
and this config in your project following the Installation section. - Add a pug-lint configuration file (
.pug-lintrc.*
) and extend it with this shareable config following the Usage section.