4.1.0 • Published 2 years ago
@gechiui/npm-package-json-lint-config v4.1.0
NPM Package.json Lint Config
GeChiUI npm-package-json-lint shareable configuration.
Installation
Install the module
$ npm install @gechiui/npm-package-json-lint-config
Note: This package requires Node.js 12.0.0 or later. It is not compatible with older versions.
Usage
Add this to your package.json
file:
"npmpackagejsonlint": {
"extends": "@gechiui/npm-package-json-lint-config",
},
Or to a .npmpackagejsonlintrc.json
file in the root of your repo:
{
"extends": "@gechiui/npm-package-json-lint-config"
}
To add, modify, or override any npm-package-json-lint rules add this to your package.json
file:
"npmpackagejsonlint": {
"extends": "@gechiui/npm-package-json-lint-config",
"rules": {
"valid-values-author": [
"error",
[
"GeChiUI"
]
]
}
},
Or to a .npmpackagejsonlintrc.json
file in the root of your repo:
{
"extends": "@gechiui/npm-package-json-lint-config",
"rules": {
"require-publishConfig": "error",
"valid-values-author": [ "error", [ "GeChiUI" ] ]
}
}
4.1.0
2 years ago