Registry / testing / eslint-config-bodc

eslint-config-bodc

JSON →
library1.3.1-alpha.2jsnpmunverified

ESLint shareable configuration for BODC React applications. Currently at version 1.3.1-alpha.2, this package enforces common lint rules across React projects at BODC. It requires eslint ^8.15.0 as a peer dependency. Key differentiators: opinionated for React best practices with TypeScript support, but limited to organization-specific rules. Not intended for external use.

npm install eslint-config-bodc
INSTALL
IMPORT
SIG · ESLINT-CONFIG-BODC
E
eslint-config-bodc
testingjavascriptv1.3.1-alpha.2
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.

default config
extends: ['bodc']
extends: ['eslint-config-bodc']
ESLint resolves config names automatically; prefix 'eslint-config-' is optional but redundant.
TypeScript-specific config
extends: ['bodc/typescript']
extends: ['bodc/ts']
Available sub-config for TypeScript projects; use exact path.
React-specific config
extends: ['bodc/react']
extends: ['bodc']
React rules are not enabled by default; must extend explicitly.

Shows how to extend the base config and install required peer dependency.

// .eslintrc.json { "extends": ["bodc"], "rules": {} } // Install peer dep: // npm install --save-dev eslint-config-bodc eslint@^8.15.0
Debug
Known issues
gotchaConfig relies on eslint ^8.15.0; not compatible with eslint 9+ or flat config.
fix
Ensure project uses eslint 8.x. For eslint 9, use a different config.
affects: >=1.0.0
gotchaReact config extends 'bodc/react' does not include TypeScript rules; use both 'bodc/typescript' and 'bodc/react' together.
fix
In extends array: ["bodc/typescript", "bodc/react"]
affects: >=1.0.0
gotchaPackage is alpha; configuration may change without major version bump.
fix
Pin to exact version and review changelog on update.
affects: >=1.3.1-alpha.0
Errors
Common errors & fixes
Error: Failed to load config "bodc" to extend from.
eslint-config-bodc not installed or peer dependency version mismatch.
fix
npm install --save-dev eslint-config-bodc eslint@^8.15.0
Configuration for rule 'react/jsx-uses-react' is not found.
React config not extended; rule requires react sub-config.
fix
Add 'bodc/react' to extends array.
Upgrade
Version history
1.3.1-alpha.2latest on npm
Audit
Dependencies
eslintrequiredPeer dependency required to run linting
Agent activity
2 hits · last 30 days
node
2
Resources
eslint-config-bodc — npm install eslint-config-bodc · libregistry