@koshikishi/pug-lint-config
v3.0.0
Published
Pug-lint shareable config
Readme
@koshikishi/pug-lint-config
The pug-lint shareable config designed for my personal projects.
Use it as is or as a foundation for your own configuration file.
Installation
Install the package and pug-lint in your project:
npm i -D pug-lint @koshikishi/pug-lint-configUsage
Set your pug-lint config to:
{
"extends": "@koshikishi/pug-lint-config"
}Extending the 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
}Integration with VS Code
- Install the pug-lint extension for VS Code.
- Enable the linter in VS Code settings.
- Install
pug-lintand 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.
