0.0.1 • Published 2 years ago
@coldboy002/pug-lint-config v0.0.1
@coldboy002/pug-lint-config
A sharable pug-lint config for linting
pugfiles.
Installation
The peer dependencies pug-lint must be installed alongside this package.
install with npm:
npm install -D @coldboy002/pug-lint-config pug-lintinstall with yarn:
yarn add -D @coldboy002/pug-lint-config pug-lintUsage
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
0.0.1
2 years ago