Registry / testing / eslint-config-cratebind

eslint-config-cratebind

JSON →
library8.0.1jsnpmunverified

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.

npm install eslint-config-cratebind
INSTALL
IMPORT
SIG · ESLINT-CONFIG-CRAT
E
eslint-config-cratebind
testingjavascriptv8.0.1
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.

cratebind
{ "extends": ["cratebind"] }
{ "extends": ["eslint-config-cratebind"] }
In .eslintrc, you can omit the 'eslint-config-' prefix.
rules
{ "extends": ["cratebind"], "rules": {} }
No common mistake.
Overriding rules is done under the 'rules' key in .eslintrc.
plugins
Not needed unless adding extra plugins.
No common mistake.
This config likely doesn't require additional plugins, but you can add them under 'plugins' in .eslintrc.

Install ESLint and the config, then create .eslintrc with extends.

npm install eslint --save-dev npm install eslint-config-cratebind --save-dev
eslint --version
Debug
Known issues
gotchaIf ESLint is installed globally, eslint-config-cratebind must also be installed globally.
fix
Install both packages with -g flag or use local installation.
affects: >=0.0.0
Errors
Common errors & fixes
ESLint couldn't find the plugin "eslint-config-cratebind".
The package is not installed.
fix
Run npm install eslint-config-cratebind --save-dev
Configuration for rule "react/prop-types" is invalid.
Rule value should be 0, 1, or 2.
fix
Set "react/prop-types": 0 (or 1 or 2) in your .eslintrc rules.
Upgrade
Version history
8.0.1latest on npm
Audit
Dependencies
eslintrequiredPeer dependency; required to use the config
Agent activity
2 hits · last 30 days
node
2
Resources
eslint-config-cratebind — npm install eslint-config-cratebind · libregistry