{"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,"search_vec":"'1.0.0':19 '1.3.0':33 '24.0.0':36 '26.0.0':37 '9.1.0':26 'add':53 'author':58 'base':43 'bconnorwhit':7,17 'bug':60 'bun':32 'config':6,62,82 'configur':14,76 'depend':30 'extend':64,67 'field':68 'homepag':59 'javascript':77 'json':4,12,24,73,80 'lint':5,13,25,74,81 'node':35 'npm':2,10,22,71,78 'npm-package-json-lint':9,21,70 'npm-package-json-lint-config-bconnorwhit':1 'oss':50 'packag':3,11,23,47,56,72,79 'peer':29 'preset':15,44 'privat':46 'provid':41 'public':55 'public-packag':54 'requir':20,57 'share':8 'ship':38 'support':31 'type':40 'typescript':39,83 'variant':51 'version':18 'via':65","created_at":"2026-05-01T13:47:44.804370+00:00","updated_at":"2026-05-01T13:47:44.804370+00:00","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,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":"","cli_version":null,"type":"library","homepage":"https://github.bconnorwhite.com/npm-package-json-lint-config#readme","github":"https://github.com/bconnorwhite/npm-package-json-lint-config","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/npm-package-json-lint-config-bconnorwhite","openapi_spec":null,"status_page":null,"smithery":null,"categories":["devops"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-05-01","next_check":"2026-07-30","install_tag":null}}