{"id":26013,"library":"npm-package-json-lint-config-auto","title":"npm-package-json-lint-config-auto","description":"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.","status":"active","version":"1.1.0","language":"javascript","source_language":"en","source_url":"https://github.com/autosoftoss/npm-package-json-lint-config-auto","tags":["javascript","npm","package.json","pkg","json","package","lint","config","eslint","typescript"],"install":[{"cmd":"npm install npm-package-json-lint-config-auto","lang":"bash","label":"npm"},{"cmd":"yarn add npm-package-json-lint-config-auto","lang":"bash","label":"yarn"},{"cmd":"pnpm add npm-package-json-lint-config-auto","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Peer dependency: required to run the linter; this package only supplies config.","package":"npm-package-json-lint","optional":false}],"imports":[{"note":"Config is extended in package.json, not imported as a module. No ESM/CJS differences.","wrong":"import or require of the module; this is a JSON config, not a JS module.","symbol":"default","correct":"extends: 'npm-package-json-lint-config-auto' in package.json npmpackagejsonlint"}],"quickstart":{"code":"// package.json\n{\n  \"name\": \"my-package\",\n  \"version\": \"1.0.0\",\n  \"npmpackagejsonlint\": {\n    \"extends\": \"npm-package-json-lint-config-auto\"\n  },\n  \"devDependencies\": {\n    \"npm-package-json-lint\": \"^6.0.0\",\n    \"npm-package-json-lint-config-auto\": \"^1.1.0\"\n  },\n  \"scripts\": {\n    \"lint:pkg\": \"npmPkgJsonLint .\"\n  }\n}\n\n// Run validation:\n// npm run lint:pkg","lang":"json","description":"Shows how to extend the shared config and run npm-package-json-lint to validate package.json."},"warnings":[{"fix":"Review new rule options and update your package.json lint config accordingly.","message":"Version 1.1.0 introduces customizable rules structure which may break existing configs relying on default structure.","severity":"breaking","affected_versions":">=1.1.0"},{"fix":"Use 'npmpackagejsonlint' exactly as shown.","message":"Config must be extended under the 'npmpackagejsonlint' key, not 'npmPackageJsonLint'.","severity":"gotcha","affected_versions":"*"},{"fix":"Use extends in package.json only.","message":"The package does not expose any exports; it only provides a JSON config. Do not attempt to import or require it.","severity":"gotcha","affected_versions":"*"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Do not import the module; use extends in package.json as documented.","cause":"Trying to import the config directly in a Node.js script.","error":"Cannot find module 'npm-package-json-lint-config-auto'"},{"fix":"Update to version 1.1.0 and adjust order rules as per new customizable structure.","cause":"Using outdated rule format from previous version.","error":"Configuration for rule \"order-properties\" is invalid"},{"fix":"Run 'npm install --save-dev npm-package-json-lint-config-auto'.","cause":"Package not installed as devDependency or missing from node_modules.","error":"Error: Failed to extend config \"npm-package-json-lint-config-auto\""}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}