package-json-lint-config
Shareable config for npm-package-json-lint.
Installation
pnpm add --save-dev npm-package-json-lint # the linter
pnpm add --save-dev @toolbuilder/package-json-lint-config # this config
Use
Add a script to your package.json
file to execute the linter.
"scripts": {
"lint:packagejson": "npmPkgJsonLint ."
}
Add this to your package.json
file:
"npmpackagejsonlint": {
"extends": "@toolbuilder/package-json-lint-config",
},
To add, modify, or override any npm-package-json-lint rules add this to your package.json
file:
"npmpackagejsonlint": {
"extends": "@toolbuilder/package-json-lint-config",
"rules": {
"valid-values-author": [
"error",
[
"WordPress"
]
]
}
},