1.0.0 • Published 6 years ago
@lcooper/pug-lint-config v1.0.0
@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-configUsage
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"
}1.0.0
6 years ago