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

npm-package-json-lint-config-package

JSON →
library0.1.0jsnpmunverified

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.

npm install npm-package-json-lint-config-package
INSTALL
IMPORT
SIG · NPM-PACKAGE-JSON-L
N
npm-package-json-lint-config-package
testingjavascriptv0.1.0
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.

npm-package-json-lint-config-package
No JavaScript import needed; use in config file: { "extends": "npm-package-json-lint-config-package" }
import config from 'npm-package-json-lint-config-package' // Not a JS module, config is a JSON reference
This package provides a reusable config for npm-package-json-lint, not a JS module. Use in .npmpackagejsonlintrc.json or package.json under npmpackagejsonlint.
config object
{ "extends": "npm-package-json-lint-config-package" }
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
The configuration is referenced by string name; npm-package-json-lint resolves it.
npm-package-json-lint
npm install --save-dev npm-package-json-lint npm-package-json-lint-config-package
npm install --save-dev npm-package-json-lint-config-package // Missing peer dep npm-package-json-lint
This package has a peer dependency on npm-package-json-lint >=7.1.0; you must install it separately.

Install the linter and config, create config file, and lint package.json.

npm install --save-dev npm-package-json-lint npm-package-json-lint-config-package echo '{"extends":"npm-package-json-lint-config-package"}' > .npmpackagejsonlintrc.json npx npm-package-json-lint package.json
Debug
Known issues
gotchaRequires npm-package-json-lint >=7.1.0 as a peer dependency; failing to install it will cause the CLI to fail.
fix
Run 'npm install --save-dev npm-package-json-lint@^7.1.0'
affects: >=0.0.0
deprecatedVersion 0.1.0 is very early; semver-major changes may occur without notice.
fix
Pin exact version or use tilde range ~0.1.0
affects: 0.x.x
gotchaConfiguration is intended for packages; may not be suitable for monorepos or non-package projects.
fix
Override rules per project need; see npm-package-json-lint docs
affects: >=0.0.0
breakingNode >=18.0.0 required; older Node versions will fail.
fix
Upgrade Node to >=18.0.0
affects: >=0.0.0
Errors
Common errors & fixes
Cannot find module 'npm-package-json-lint'
Peer dependency npm-package-json-lint not installed.
fix
npm install --save-dev npm-package-json-lint@^7.1.0
Configuration for rule "valid-values-license" is invalid
Rule options not compatible with this config; likely a version mismatch.
fix
Ensure npm-package-json-lint is >=7.1.0 and config is latest
Upgrade
Version history
0.1.0latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
npm-package-json-lint-config-package — npm install npm-package-json-lint-config-package · libregistry