{"id":25474,"library":"eslint-config-bodc","title":"eslint-config-bodc","description":"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.","status":"active","version":"1.3.1-alpha.2","language":"javascript","source_language":"en","source_url":null,"tags":["javascript"],"install":[{"cmd":"npm install eslint-config-bodc","lang":"bash","label":"npm"},{"cmd":"yarn add eslint-config-bodc","lang":"bash","label":"yarn"},{"cmd":"pnpm add eslint-config-bodc","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Peer dependency required to run linting","package":"eslint","optional":false}],"imports":[{"note":"ESLint resolves config names automatically; prefix 'eslint-config-' is optional but redundant.","wrong":"extends: ['eslint-config-bodc']","symbol":"default config","correct":"extends: ['bodc']"},{"note":"Available sub-config for TypeScript projects; use exact path.","wrong":"extends: ['bodc/ts']","symbol":"TypeScript-specific config","correct":"extends: ['bodc/typescript']"},{"note":"React rules are not enabled by default; must extend explicitly.","wrong":"extends: ['bodc']","symbol":"React-specific config","correct":"extends: ['bodc/react']"}],"quickstart":{"code":"// .eslintrc.json\n{\n  \"extends\": [\"bodc\"],\n  \"rules\": {}\n}\n// Install peer dep:\n// npm install --save-dev eslint-config-bodc eslint@^8.15.0","lang":"javascript","description":"Shows how to extend the base config and install required peer dependency."},"warnings":[{"fix":"Ensure project uses eslint 8.x. For eslint 9, use a different config.","message":"Config relies on eslint ^8.15.0; not compatible with eslint 9+ or flat config.","severity":"gotcha","affected_versions":">=1.0.0"},{"fix":"In extends array: [\"bodc/typescript\", \"bodc/react\"]","message":"React config extends 'bodc/react' does not include TypeScript rules; use both 'bodc/typescript' and 'bodc/react' together.","severity":"gotcha","affected_versions":">=1.0.0"},{"fix":"Pin to exact version and review changelog on update.","message":"Package is alpha; configuration may change without major version bump.","severity":"gotcha","affected_versions":">=1.3.1-alpha.0"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"npm install --save-dev eslint-config-bodc eslint@^8.15.0","cause":"eslint-config-bodc not installed or peer dependency version mismatch.","error":"Error: Failed to load config \"bodc\" to extend from."},{"fix":"Add 'bodc/react' to extends array.","cause":"React config not extended; rule requires react sub-config.","error":"Configuration for rule 'react/jsx-uses-react' is not found."}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}