{"id":25480,"library":"eslint-config-cratebind","title":"eslint-config-cratebind","description":"A shareable ESLint configuration preset from Cratebind. Current stable version is 8.0.1. Provides a base set of linting rules for JavaScript projects, focusing on consistency and best practices. To use, you must install ESLint separately (as a peer dependency) and extend the config in your .eslintrc file. The package follows the standard ESLint shareable config pattern, allowing rule overrides. It is recommended for use with Husky and lint-staged for pre-commit hooks. Differentiation lies in Cratebind's specific rule choices, but the config is open for customization.","status":"active","version":"8.0.1","language":"javascript","source_language":"en","source_url":"https://github.com/cratebind/eslint-config-cratebind","tags":["javascript","eslint","eslintplugin","eslint-plugin"],"install":[{"cmd":"npm install eslint-config-cratebind","lang":"bash","label":"npm"},{"cmd":"yarn add eslint-config-cratebind","lang":"bash","label":"yarn"},{"cmd":"pnpm add eslint-config-cratebind","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Peer dependency; required to use the config","package":"eslint","optional":false}],"imports":[{"note":"In .eslintrc, you can omit the 'eslint-config-' prefix.","wrong":"{\n  \"extends\": [\"eslint-config-cratebind\"]\n}","symbol":"cratebind","correct":"{\n  \"extends\": [\"cratebind\"]\n}"},{"note":"Overriding rules is done under the 'rules' key in .eslintrc.","wrong":"No common mistake.","symbol":"rules","correct":"{\n  \"extends\": [\"cratebind\"],\n  \"rules\": {}\n}"},{"note":"This config likely doesn't require additional plugins, but you can add them under 'plugins' in .eslintrc.","wrong":"No common mistake.","symbol":"plugins","correct":"Not needed unless adding extra plugins."}],"quickstart":{"code":"npm install eslint --save-dev\nnpm install eslint-config-cratebind --save-dev\n","lang":"javascript","description":"Install ESLint and the config, then create .eslintrc with extends."},"warnings":[{"fix":"Install both packages with -g flag or use local installation.","message":"If ESLint is installed globally, eslint-config-cratebind must also be installed globally.","severity":"gotcha","affected_versions":">=0.0.0"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Run npm install eslint-config-cratebind --save-dev","cause":"The package is not installed.","error":"ESLint couldn't find the plugin \"eslint-config-cratebind\"."},{"fix":"Set \"react/prop-types\": 0 (or 1 or 2) in your .eslintrc rules.","cause":"Rule value should be 0, 1, or 2.","error":"Configuration for rule \"react/prop-types\" is invalid."}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}