{"id":26014,"library":"npm-package-json-lint-config-bconnorwhite","title":"npm-package-json-lint-config-bconnorwhite","description":"Shared npm-package-json-lint configuration preset by bconnorwhite. Version 1.0.0 requires npm-package-json-lint ^9.1.0 as a peer dependency. Supports Bun ^1.3.0 and Node ^24.0.0 || ^26.0.0. Ships TypeScript types. Provides a base preset for private packages and an OSS variant that adds public-package requirements (author, homepage, bugs). The config is extended via the \"extends\" field in npm-package-json-lint's configuration.","status":"active","version":"1.0.0","language":"javascript","source_language":"en","source_url":"https://github.com/bconnorwhite/npm-package-json-lint-config","tags":["javascript","npm","package","json","lint","config","typescript"],"install":[{"cmd":"npm install npm-package-json-lint-config-bconnorwhite","lang":"bash","label":"npm"},{"cmd":"yarn add npm-package-json-lint-config-bconnorwhite","lang":"bash","label":"yarn"},{"cmd":"pnpm add npm-package-json-lint-config-bconnorwhite","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"peer dependency: the linter engine that uses this config","package":"npm-package-json-lint","optional":false}],"imports":[{"note":"This package is meant to be used in a CommonJS config file (e.g., .npmpackagejsonlintrc.js). The default export is the base preset for private packages.","wrong":"import config from 'npm-package-json-lint-config-bconnorwhite'","symbol":"baseConfig","correct":"const config = require('npm-package-json-lint-config-bconnorwhite')"},{"note":"The OSS preset is available as a submodule file; it adds public-package rules. Access via require with path '/oss'.","wrong":"import { oss } from 'npm-package-json-lint-config-bconnorwhite'","symbol":"ossConfig","correct":"const ossConfig = require('npm-package-json-lint-config-bconnorwhite/oss')"},{"note":"In your package.json or .npmpackagejsonlintrc, set the 'extends' property to the package name (or package name + '/oss' for OSS rules).","wrong":"\"extends\": \"bconnorwhite\"","symbol":"extends","correct":"\"extends\": \"npm-package-json-lint-config-bconnorwhite\""}],"quickstart":{"code":"// Create a .npmpackagejsonlintrc.js file:\nmodule.exports = {\n  extends: 'npm-package-json-lint-config-bconnorwhite'\n};\n// Then run:\n// npx npm-package-json-lint package.json\n// For OSS variant:\n// module.exports = {\n//   extends: 'npm-package-json-lint-config-bconnorwhite/oss'\n// };","lang":"javascript","description":"Shows how to extend the base config in a lint config file and run the linter."},"warnings":[{"fix":"Run: npm install --save-dev npm-package-json-lint@^9.1.0","message":"Peer dependency npm-package-json-lint ^9.1.0 must be installed separately. If not present, the lint command will fail.","severity":"gotcha","affected_versions":">=1.0.0"},{"fix":"Use require('npm-package-json-lint-config-bconnorwhite/oss') instead of require('npm-package-json-lint-config-bconnorwhite-oss')","message":"The submodule path '/oss' is not a separate npm package; it's a file within the package. Ensure your require path is correct.","severity":"gotcha","affected_versions":">=1.0.0"},{"fix":"Upgrade Node to 24+ or use an older version of this config (if available).","message":"Engines specify Node ^24.0.0 || ^26.0.0 and Bun ^1.3.0, which are very modern. Older Node versions (e.g., 18, 20) are unsupported.","severity":"deprecated","affected_versions":">=1.0.0"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Install the package: npm install --save-dev npm-package-json-lint-config-bconnorwhite","cause":"The package is not installed, or the peer dependency is missing.","error":"Error: Cannot find module 'npm-package-json-lint-config-bconnorwhite'"},{"fix":"Ensure extends is exactly \"npm-package-json-lint-config-bconnorwhite\" and the package is installed.","cause":"The extends value is misspelled or the config package is not installed.","error":"Error: Unable to load config file: /path/to/.npmpackagejsonlintrc.js\nReason: The 'extends' property must refer to a valid npm-package-json-lint config package or file."},{"fix":"Install npm-package-json-lint@^9.1.0 as a dev dependency.","cause":"npm-package-json-lint is not installed or version <9.1.0","error":"TypeError: Cannot read properties of undefined (reading 'rules')"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}