{"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,"search_vec":"'10':36 '10.0.0':43 '10/12':63 '14':75 '16':79 '18':83 '22':34,87 '9.0.1':31 'across':110 'align':55 'audit':116 'auditor':117 'authorit':90 'avoid':106 'base':104 'break':53 'cadenc':49 'chang':54 'config':6,92,133 'configur':10,109 'current':28 'default':7,8,91 'depend':47,58 'differenti':89 'drop':61,73,77,81 'duplic':107 'extend':103 'extends-bas':102 'file':27 'irregular':51 'javascript':112 'json':4,15,41,69,98,121,126,131 'key':88 'lint':5,16,25,42,70,99,113,122,132 'lintconfig':127 'linter':114 'maintain':100 'node':33,62,74,78,82,86 'npm':2,13,35,39,67,96,119,124,129 'npm-package-json-lint':12,38,66,95,118 'npm-package-json-lint-config':128 'npm-package-json-lint-config-default':1 'npm-package-json-lintconfig':123 'packag':3,14,40,68,97,120,125,130 'package.json':26,115 'peer':46,57 'project':111 'provid':18 'releas':48 'requir':32,65,85 'rule':23,108 'set':21 'setup':105 'shareabl':9 'simpl':101 'stabl':29 'standard':20 'updat':59 'v10':17 'v4':60 'v5':64 'v6':71,72 'v7':76 'v8':80 'v9':84 'version':30","created_at":"2026-05-01T13:47:46.036624+00:00","updated_at":"2026-05-01T13:47:46.036624+00:00","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,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":"","cli_version":null,"type":"library","homepage":null,"github":"https://github.com/tclindner/npm-package-json-lint-config-default","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/npm-package-json-lint-config-default","openapi_spec":null,"status_page":null,"smithery":null,"categories":["testing","devops"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-05-01","next_check":"2026-07-30","install_tag":null}}