
Security News
How Enterprise Security Is Adapting to AI-Accelerated Threats
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.
eslint-plugin-caleb
Advanced tools
Caleb Eby's ESLint Configuration. This exports itself as a "super-plugin" because of a limitation of ESLint.
The way this works is that it requires all of the plugin dependencies, and exports them from this plugin under a prefix.
The plugins that this exposes are:
This also exposes a couple rules from
shopify:
To override settings for any of these plugins, you must prefix the configuration
with caleb/, because the plugins are exposed through this "super-plugin".
{
"extends": ["plugin:calebeby/recommended"],
"rules": {
"caleb/unicorn/catch-error-name": "off",
"caleb/@shopify/prefer-early-return": "off"
}
}
npm i -D eslint-plugin-caleb eslint prettier
Add this to your package.json:
{
"scripts": {
"check-lint": "eslint . && prettier --check .",
"lint": "eslint --fix . && prettier --write ."
},
"eslintConfig": {
"extends": ["plugin:caleb/recommended"]
},
"prettier": {
"singleQuote": true,
"trailingComma": "all",
"semi": false
}
}
This plugin exposes the following configurations:
recommended: This is the main configuration. This exposes base rules, as
well as some overrides for .ts/.tsx filesreact: This adds some settings for React-specific rulespreact: This is the same as react, except it excludes rules that are
irrelevant for Preactjest: This adds some jest rules for test files, and declares the jest
globals in those filesTo include these configurations, add the ones you want to your extends array:
["plugin:caleb/recommended", "plugin:caleb/jest"]
npm run check-lint
(this will automatically fix many linting issues)
npm run lint
FAQs
Caleb Eby's shareable ESLint configuration
The npm package eslint-plugin-caleb receives a total of 302 weekly downloads. As such, eslint-plugin-caleb popularity was classified as not popular.
We found that eslint-plugin-caleb demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.

Security News
Experts push back on new claims about AI-driven ransomware, warning that hype and sponsored research are distorting how the threat is understood.