Registry / testing / npm-package-json-lint-config-default

npm-package-json-lint-config-default

JSON →
library9.0.1jsnpmunverified

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.

npm install npm-package-json-lint-config-default
INSTALL
IMPORT
SIG · NPM-PACKAGE-JSON-L
N
npm-package-json-lint-config-default
testingjavascriptv9.0.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

default config
"extends": "npm-package-json-lint-config-default"
using require() or import() for the config
Config is used via extends field in .npmpackagejsonlintrc.json; no code import needed.

Install the config, set up .npmpackagejsonlintrc.json with extends, and lint the project's package.json.

// 1. Install the linter and this config npm install --save-dev npm-package-json-lint npm-package-json-lint-config-default // 2. Create .npmpackagejsonlintrc.json with extends // .npmpackagejsonlintrc.json { "extends": "npm-package-json-lint-config-default" } // 3. Run the linter npx npm-package-json-lint . --configFile .npmpackagejsonlintrc.json
Debug
Known issues
breakingNode.js 18 support dropped in v8.0.0
fix
Upgrade Node.js to v20 or later.
affects: >=8.0.0
breakingPeer dependency npm-package-json-lint bumped to ^10.0.0 in v9.0.0
fix
Update npm-package-json-lint to version 10.x in your project.
affects: >=9.0.0
breakingNode.js 16 support dropped in v7.0.0
fix
Upgrade Node.js to v18 or later.
affects: >=7.0.0 <8.0.0
breakingNode.js 14 support dropped in v6.0.0
fix
Upgrade Node.js to v16 or later.
affects: >=6.0.0 <7.0.0
breakingPeer dependency npm-package-json-lint bumped to ^7.0.0 in v6.0.0
fix
Update npm-package-json-lint to version 7.x.
affects: >=6.0.0 <7.0.0
breakingPeer dependency npm-package-json-lint bumped to ^6.0.0 in v5.0.0
fix
Update npm-package-json-lint to version 6.x.
affects: >=5.0.0 <6.0.0
Errors
Common errors & fixes
Error: Cannot find module 'npm-package-json-lint-config-default'
The config package is not installed or missing from node_modules.
fix
Run `npm install --save-dev npm-package-json-lint-config-default`.
ReferenceError: module is not defined
Using CommonJS require() in an ESM context or incorrect configuration syntax.
fix
Use a JSON config file (.npmpackagejsonlintrc.json) with "extends" field instead of JavaScript module.
Invalid config: 'npm-package-json-lint-config-default' is not a valid config.
The config package is installed but incompatible version (e.g., npm-package-json-lint peer mismatch).
fix
Ensure npm-package-json-lint meets the peerDependency requirements (^10.0.0 for v9.x of this config).
Upgrade
Version history
9.0.1latest on npm
Audit
Dependencies
npm-package-json-lintrequiredpeer dependency at ^10.0.0; required to provide linting functionality
Agent activity
2 hits · last 30 days
node
2
Resources
npm-package-json-lint-config-default — npm install npm-package-json-lint-config-default · libregistry