Skip to content

Stylelint org's config for npm-package-json-lint.

License

Notifications You must be signed in to change notification settings

stylelint/npm-package-json-lint-config

Repository files navigation

@stylelint/npm-package-json-lint-config

NPM version CI

Stylelint org's shareable config for npm-package-json-lint.

For consistent package.json files across Stylelint org repos.

Installation

npm install @stylelint/npm-package-json-lint-config --save-dev

Usage

Add this to your package.json:

{
  "npmpackagejsonlint": {
    "extends": "@stylelint/npm-package-json-lint-config"
  }
}

If you prefer, add this too:

{
  "scripts": {
    "lint:packagejson": "npmPkgJsonLint ."
  }
}