@toolbuilder/package-json-lint-config

0.1.0 • Public • Published

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"
      ]
    ]
  }
},

Package Sidebar

Install

npm i @toolbuilder/package-json-lint-config

Weekly Downloads

3

Version

0.1.0

License

MIT

Unpacked Size

4.55 kB

Total Files

5

Last publish

Collaborators

  • toolbuilder