Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@toolbuilder/package-json-lint-config

toolbuilder8MIT0.1.1

Config module for npm-package-json-lint.

npm-package-json-lint, npm-package-json-lintconfig, npm-package-json-lint-config

readme

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

changelog

Changelog

All notable changes to this project will be documented in this file. See standard-version for commit guidelines.

0.1.1 (2024-11-02)