eslint-config-bodc

raw JSON →
1.3.1-alpha.2 verified Fri May 01 auth: no javascript

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.

error Error: Failed to load config "bodc" to extend from.
cause eslint-config-bodc not installed or peer dependency version mismatch.
fix
npm install --save-dev eslint-config-bodc eslint@^8.15.0
error Configuration for rule 'react/jsx-uses-react' is not found.
cause React config not extended; rule requires react sub-config.
fix
Add 'bodc/react' to extends array.
gotcha Config 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.
gotcha React 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"]
gotcha Package is alpha; configuration may change without major version bump.
fix Pin to exact version and review changelog on update.
npm install eslint-config-bodc
yarn add eslint-config-bodc
pnpm add eslint-config-bodc

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