Registry / devops / npm-package-json-lint-config-bconnorwhite

npm-package-json-lint-config-bconnorwhite

JSON →
library1.0.0jsnpmunverified

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.

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

baseConfig
const config = require('npm-package-json-lint-config-bconnorwhite')
import config from 'npm-package-json-lint-config-bconnorwhite'
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.
ossConfig
const ossConfig = require('npm-package-json-lint-config-bconnorwhite/oss')
import { oss } from 'npm-package-json-lint-config-bconnorwhite'
The OSS preset is available as a submodule file; it adds public-package rules. Access via require with path '/oss'.
extends
"extends": "npm-package-json-lint-config-bconnorwhite"
"extends": "bconnorwhite"
In your package.json or .npmpackagejsonlintrc, set the 'extends' property to the package name (or package name + '/oss' for OSS rules).

Shows how to extend the base config in a lint config file and run the linter.

// Create a .npmpackagejsonlintrc.js file: module.exports = { extends: 'npm-package-json-lint-config-bconnorwhite' }; // Then run: // npx npm-package-json-lint package.json // For OSS variant: // module.exports = { // extends: 'npm-package-json-lint-config-bconnorwhite/oss' // };
Debug
Known issues
gotchaPeer dependency npm-package-json-lint ^9.1.0 must be installed separately. If not present, the lint command will fail.
fix
Run: npm install --save-dev npm-package-json-lint@^9.1.0
affects: >=1.0.0
gotchaThe submodule path '/oss' is not a separate npm package; it's a file within the package. Ensure your require path is correct.
fix
Use require('npm-package-json-lint-config-bconnorwhite/oss') instead of require('npm-package-json-lint-config-bconnorwhite-oss')
affects: >=1.0.0
deprecatedEngines 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.
fix
Upgrade Node to 24+ or use an older version of this config (if available).
affects: >=1.0.0
Errors
Common errors & fixes
Error: Cannot find module 'npm-package-json-lint-config-bconnorwhite'
The package is not installed, or the peer dependency is missing.
fix
Install the package: npm install --save-dev npm-package-json-lint-config-bconnorwhite
Error: Unable to load config file: /path/to/.npmpackagejsonlintrc.js Reason: The 'extends' property must refer to a valid npm-package-json-lint config package or file.
The extends value is misspelled or the config package is not installed.
fix
Ensure extends is exactly "npm-package-json-lint-config-bconnorwhite" and the package is installed.
TypeError: Cannot read properties of undefined (reading 'rules')
npm-package-json-lint is not installed or version <9.1.0
fix
Install npm-package-json-lint@^9.1.0 as a dev dependency.
Upgrade
Version history
1.0.0latest on npm
Audit
Dependencies
npm-package-json-lintrequiredpeer dependency: the linter engine that uses this config
Agent activity
2 hits · last 30 days
node
2
Resources
npm-package-json-lint-config-bconnorwhite — npm install npm-package-json-lint-config-bconnorwhite · libregistry