{"id":26017,"library":"npm-package-json-lint-config-package","title":"npm-package-json-lint-config-package","description":"Shareable npm-package-json-lint configuration for packages. Version 0.1.0 provides a set of linting rules for package.json files, intended for personal or small-scale use. It extends the base npm-package-json-lint tool (peer dependency >=7.1.0) and requires Node >=18.0.0. The configuration is minimal and can be extended or overridden. The package is maintained by a single author and follows a low release cadence. Key differentiator: purpose-built for packages rather than general projects, but lacks the broad community support of alternatives like stylelint's config.","status":"active","version":"0.1.0","language":"javascript","source_language":"en","source_url":"https://github.com/joaopalmeiro/npm-package-json-lint-config-package","tags":["javascript","lint","linter","package.json","npm-package-json-lint","npm-package-json-lintconfig","npm-package-json-lint-config"],"install":[{"cmd":"npm install npm-package-json-lint-config-package","lang":"bash","label":"npm"},{"cmd":"yarn add npm-package-json-lint-config-package","lang":"bash","label":"yarn"},{"cmd":"pnpm add npm-package-json-lint-config-package","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"This package provides a reusable config for npm-package-json-lint, not a JS module. Use in .npmpackagejsonlintrc.json or package.json under npmpackagejsonlint.","wrong":"import config from 'npm-package-json-lint-config-package' // Not a JS module, config is a JSON reference","symbol":"npm-package-json-lint-config-package","correct":"No JavaScript import needed; use in config file: { \"extends\": \"npm-package-json-lint-config-package\" }"},{"note":"The configuration is referenced by string name; npm-package-json-lint resolves it.","wrong":"module.exports = { extends: 'npm-package-json-lint-config-package' } // That would be for a JS config file, but this package doesn't export a JS object","symbol":"config object","correct":"{ \"extends\": \"npm-package-json-lint-config-package\" }"},{"note":"This package has a peer dependency on npm-package-json-lint >=7.1.0; you must install it separately.","wrong":"npm install --save-dev npm-package-json-lint-config-package // Missing peer dep npm-package-json-lint","symbol":"npm-package-json-lint","correct":"npm install --save-dev npm-package-json-lint npm-package-json-lint-config-package"}],"quickstart":{"code":"npm install --save-dev npm-package-json-lint npm-package-json-lint-config-package\necho '{\"extends\":\"npm-package-json-lint-config-package\"}' > .npmpackagejsonlintrc.json\nnpx npm-package-json-lint package.json","lang":"javascript","description":"Install the linter and config, create config file, and lint package.json."},"warnings":[{"fix":"Run 'npm install --save-dev npm-package-json-lint@^7.1.0'","message":"Requires npm-package-json-lint >=7.1.0 as a peer dependency; failing to install it will cause the CLI to fail.","severity":"gotcha","affected_versions":">=0.0.0"},{"fix":"Pin exact version or use tilde range ~0.1.0","message":"Version 0.1.0 is very early; semver-major changes may occur without notice.","severity":"deprecated","affected_versions":"0.x.x"},{"fix":"Override rules per project need; see npm-package-json-lint docs","message":"Configuration is intended for packages; may not be suitable for monorepos or non-package projects.","severity":"gotcha","affected_versions":">=0.0.0"},{"fix":"Upgrade Node to >=18.0.0","message":"Node >=18.0.0 required; older Node versions will fail.","severity":"breaking","affected_versions":">=0.0.0"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"npm install --save-dev npm-package-json-lint@^7.1.0","cause":"Peer dependency npm-package-json-lint not installed.","error":"Cannot find module 'npm-package-json-lint'"},{"fix":"Ensure npm-package-json-lint is >=7.1.0 and config is latest","cause":"Rule options not compatible with this config; likely a version mismatch.","error":"Configuration for rule \"valid-values-license\" is invalid"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}