npm-package-json-lint-config-bob
raw JSON → 1.2.1 verified Fri May 01 auth: no javascript maintenance
Shared npm-package-json-lint configuration for packages built with @bconnorwhite/bob. Current stable version is 1.2.1, released with no active development since 2020. It provides a set of linting rules tailored for TypeScript projects using the BOB toolkit. The package is maintained as part of BOB's ecosystem and requires npm-package-json-lint version 5.1.0 or higher as a peer dependency. It differentiates by being a simple configuration preset that enforces BOB conventions.
Common errors
error Cannot find module 'npm-package-json-lint-config-bob' ↓
cause The package is not installed or npm-package-json-lint cannot resolve the config name.
fix
Install the package: npm install npm-package-json-lint-config-bob --save-dev
error Invalid config: "extends" must be a string, array, or configuration object ↓
cause Mistyped the config file or used an unsupported format.
fix
Ensure .npmpackagejsonlintrc.json contains a valid JSON object with 'extends' set to the string 'npm-package-json-lint-config-bob'.
Warnings
breaking Requires npm-package-json-lint version ^5.1.0 ↓
fix Ensure npm-package-json-lint is at version 5.1.0 or higher.
gotcha This package is not directly importable; it's a configuration preset for npm-package-json-lint. ↓
fix Do not use require/import; instead reference it in the 'extends' field of your config file.
deprecated Package has not been updated since 2020; may not support newer npm-package-json-lint versions beyond 5.x. ↓
fix Consider using alternative configs or extending manually for latest npm-package-json-lint.
Install
npm install npm-package-json-lint-config-bob yarn add npm-package-json-lint-config-bob pnpm add npm-package-json-lint-config-bob Imports
- config wrong
import config from 'npm-package-json-lint-config-bob'correctextends: 'npm-package-json-lint-config-bob' in .npmpackagejsonlintrc.json
Quickstart
// .npmpackagejsonlintrc.json
{
"extends": "npm-package-json-lint-config-bob"
}
// Then run:
// npx npm-package-json-lint .