{"id":26016,"library":"npm-package-json-lint-config-default","title":"npm-package-json-lint-config-default","description":"Default shareable configuration for npm-package-json-lint v10, providing a standard set of rules for linting package.json files. Current stable version 9.0.1 requires Node >=22, npm >=10, and npm-package-json-lint ^10.0.0 as a peer dependency. Release cadence is irregular, with breaking changes aligning with peer dependency updates (v4 dropped Node 10/12, v5 required npm-package-json-lint v6, v6 dropped Node 14, v7 dropped Node 16, v8 dropped Node 18, v9 requires Node 22). Key differentiators: authoritative default config from the npm-package-json-lint maintainer; simple extends-based setup; avoid duplicating rule configurations across projects.","status":"active","version":"9.0.1","language":"javascript","source_language":"en","source_url":"https://github.com/tclindner/npm-package-json-lint-config-default","tags":["javascript","lint","linter","package.json","audit","auditor","npm-package-json-lint","npm-package-json-lintconfig","npm-package-json-lint-config"],"install":[{"cmd":"npm install npm-package-json-lint-config-default","lang":"bash","label":"npm"},{"cmd":"yarn add npm-package-json-lint-config-default","lang":"bash","label":"yarn"},{"cmd":"pnpm add npm-package-json-lint-config-default","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"peer dependency at ^10.0.0; required to provide linting functionality","package":"npm-package-json-lint","optional":false}],"imports":[{"note":"Config is used via extends field in .npmpackagejsonlintrc.json; no code import needed.","wrong":"using require() or import() for the config","symbol":"default config","correct":"\"extends\": \"npm-package-json-lint-config-default\""}],"quickstart":{"code":"// 1. Install the linter and this config\nnpm install --save-dev npm-package-json-lint npm-package-json-lint-config-default\n\n// 2. Create .npmpackagejsonlintrc.json with extends\n// .npmpackagejsonlintrc.json\n{\n  \"extends\": \"npm-package-json-lint-config-default\"\n}\n\n// 3. Run the linter\nnpx npm-package-json-lint . --configFile .npmpackagejsonlintrc.json","lang":"javascript","description":"Install the config, set up .npmpackagejsonlintrc.json with extends, and lint the project's package.json."},"warnings":[{"fix":"Upgrade Node.js to v20 or later.","message":"Node.js 18 support dropped in v8.0.0","severity":"breaking","affected_versions":">=8.0.0"},{"fix":"Update npm-package-json-lint to version 10.x in your project.","message":"Peer dependency npm-package-json-lint bumped to ^10.0.0 in v9.0.0","severity":"breaking","affected_versions":">=9.0.0"},{"fix":"Upgrade Node.js to v18 or later.","message":"Node.js 16 support dropped in v7.0.0","severity":"breaking","affected_versions":">=7.0.0 <8.0.0"},{"fix":"Upgrade Node.js to v16 or later.","message":"Node.js 14 support dropped in v6.0.0","severity":"breaking","affected_versions":">=6.0.0 <7.0.0"},{"fix":"Update npm-package-json-lint to version 7.x.","message":"Peer dependency npm-package-json-lint bumped to ^7.0.0 in v6.0.0","severity":"breaking","affected_versions":">=6.0.0 <7.0.0"},{"fix":"Update npm-package-json-lint to version 6.x.","message":"Peer dependency npm-package-json-lint bumped to ^6.0.0 in v5.0.0","severity":"breaking","affected_versions":">=5.0.0 <6.0.0"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Run `npm install --save-dev npm-package-json-lint-config-default`.","cause":"The config package is not installed or missing from node_modules.","error":"Error: Cannot find module 'npm-package-json-lint-config-default'"},{"fix":"Use a JSON config file (.npmpackagejsonlintrc.json) with \"extends\" field instead of JavaScript module.","cause":"Using CommonJS require() in an ESM context or incorrect configuration syntax.","error":"ReferenceError: module is not defined"},{"fix":"Ensure npm-package-json-lint meets the peerDependency requirements (^10.0.0 for v9.x of this config).","cause":"The config package is installed but incompatible version (e.g., npm-package-json-lint peer mismatch).","error":"Invalid config: 'npm-package-json-lint-config-default' is not a valid config."}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}