eslint-unicorn weekly downloads statistics
By sindresorhus (6 listings) · npm · ESLint plugins
More than 100 powerful ESLint rules
eslint-unicorn has 26,618 recorded weekly downloads on npm, a decrease of 44.7% over the past 30 days, ranking #721 of 2,322 tracked listings.
About eslint-unicorn
eslint-plugin-unicorn

<!-- markdownlint-disable-next-line no-inline-html -->
<img src="https://cloud.githubusercontent.com/assets/170270/18659176/1cc373d0-7f33-11e6-890f-0ba35362ee7e.jpg" width="180" align="right" alt="Unicorn">
More than 100 powerful ESLint rules
You might want to check out XO, which includes this plugin.
Propose or contribute a new rule ➡
Install
npm install --save-dev eslint eslint-plugin-unicorn
Usage (eslint.config.js)
Requires ESLint >=8.56.0.
Use a preset config or configure each rule in eslint.config.js.
If you don't use the preset, ensure you use the same languageOptions config as below.
ES Module (Recommended)
import eslintPluginUnicorn from 'eslint-plugin-unicorn';
import globals from 'globals';
export default [
{
languageOptions: {
globals: globals.builtin,
},
plugins: {
unicorn: eslintPluginUnicorn,
},
rules: {
'unicorn/better-regex': 'error',
'unicorn/…': 'error',
},
},
// …
];
CommonJS
'use strict';
const eslintPluginUnicorn = require('eslint-plugin-unicorn');
const globals = require('globals');
module.exports = [
{
languageOptions: {
globals: globals.builtin,
},
plugins: {
unicorn: eslintPluginUnicorn,
},
rules: {
'unicorn/better-regex': 'error',
'unicorn/…': 'error',
},
},
// …
];
Usage (legacy: .eslintrc.* or package.json)
Use a preset config or configure each rule in package.json.
If you don't use the preset, ensure you use the same env and parserOptions config as below.
{
"name": "my-awesome-project",
"eslintConfig": {
"env": {
"es2024": true
},
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": [
"unicorn"
],
"rules": {
"unicorn/better-regex": "error",
"unicorn/…": "error"
}
}
}
Rules
<!-- Do not manually modify this list. Run: `npm run fix:eslint-docs` --> <!-- begin auto-generated rules list -->💼 Configurations enabled in.
✅ Set in the recommended configuration.
🔧 Automatically fixable by the --fix CLI option.
💡 Manually fixable by editor suggestions.
| Name | Description | 💼 | 🔧 | 💡 |
|---|---|---|---|---|
| better-regex | Improve regexes by making them shorter, consistent, and safer. | ✅ | 🔧 | |
| catch-error-name | Enforce a specific parameter name in catch clauses. | ✅ | 🔧 | |
| consistent-destructuring | Use destructured variables over properties. | 🔧 | 💡 | |
| consistent-empty-array-spread | Prefer consistent types when spreading a ternary in an array literal. | ✅ | 🔧 | |
| consistent-function-scoping | Move function definitions to the highest possible scope. | ✅ | ||
| custom-error-definition | Enforce correct Error subclassing. | 🔧 | ||
| empty-brace-spaces | Enforce no spaces between braces. | ✅ | 🔧 | |
| error-message | Enforce passing a… |
Description from the npm listing.
- eslint
- eslintplugin
- eslint-plugin
- unicorn
- linter
- lint
- style
- xo
README badge
Show your rank in a README or on your website. The badge updates automatically.
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
Ranking history
Listing placement
Listing placement
Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.
Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.
Recent observations
Full history (122)Similar npm ESLint plugins plugins
All 20 eslint-unicorn alternativesData source
Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.
Listing: https://www.npmjs.com/package/eslint-unicorn. First seen Oct 16, 2026; last successful collection Oct 20, 2026. See the methodology.