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

npm-package-json-lint-config-auto

JSON →
library1.1.0jsnpmunverified

Provides a shared, auto-generated base configuration for npm-package-json-lint, ensuring consistent linting of package.json files. Version 1.1.0 introduces customizable rules structure. Released under MIT license by autosoft, it is actively maintained with regular bug fixes and dependency updates. Differentiates from others by being auto-generated and focusing on enforces a specific order of keys including bundleDependencies and bundledDependencies.

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

default
✓ extends: 'npm-package-json-lint-config-auto' in package.json npmpackagejsonlint
✗ import or require of the module; this is a JSON config, not a JS module.
Config is extended in package.json, not imported as a module. No ESM/CJS differences.

Shows how to extend the shared config and run npm-package-json-lint to validate package.json.

// package.json { "name": "my-package", "version": "1.0.0", "npmpackagejsonlint": { "extends": "npm-package-json-lint-config-auto" }, "devDependencies": { "npm-package-json-lint": "^6.0.0", "npm-package-json-lint-config-auto": "^1.1.0" }, "scripts": { "lint:pkg": "npmPkgJsonLint ." } } // Run validation: // npm run lint:pkg
Debug
Known issues
breakingVersion 1.1.0 introduces customizable rules structure which may break existing configs relying on default structure.
fix
Review new rule options and update your package.json lint config accordingly.
affects: >=1.1.0
gotchaConfig must be extended under the 'npmpackagejsonlint' key, not 'npmPackageJsonLint'.
fix
Use 'npmpackagejsonlint' exactly as shown.
affects: *
gotchaThe package does not expose any exports; it only provides a JSON config. Do not attempt to import or require it.
fix
Use extends in package.json only.
affects: *
Errors
Common errors & fixes
Cannot find module 'npm-package-json-lint-config-auto'
Trying to import the config directly in a Node.js script.
fix
Do not import the module; use extends in package.json as documented.
Configuration for rule "order-properties" is invalid
Using outdated rule format from previous version.
fix
Update to version 1.1.0 and adjust order rules as per new customizable structure.
Error: Failed to extend config "npm-package-json-lint-config-auto"
Package not installed as devDependency or missing from node_modules.
fix
Run 'npm install --save-dev npm-package-json-lint-config-auto'.
Upgrade
Version history
1.1.0latest on npm
Audit
Dependencies
npm-package-json-lintrequiredPeer dependency: required to run the linter; this package only supplies config.
Agent activity
2 hits · last 30 days
node
2
Resources
npm-package-json-lint-config-auto — npm install npm-package-json-lint-config-auto · libregistry