eslint-plugin-unicorn weekly downloads statistics
By sindresorhus (6 listings) · npm · ESLint plugins
More than 300 powerful ESLint rules
eslint-plugin-unicorn has 4,004,617 recorded weekly downloads on npm, a decrease of 39.6% over the past 30 days, ranking #139 of 2,322 tracked listings.
About eslint-plugin-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 300 powerful ESLint rules
Most rules target JavaScript and TypeScript, but some also lint CSS, HTML, JSON, Markdown, SOML, TOML, and YAML when used with the matching ESLint language plugin.
We do not accept pull requests because of too much AI slop.
Install
npm install --save-dev eslint eslint-plugin-unicorn
Requires ESLint >=10.4, flat config, and ESM.
You might want to check out XO, which includes this plugin.
Usage
Use a preset config or configure each rule in eslint.config.js.
If you don't use a preset, set the same languageOptions as shown below.
import unicorn from 'eslint-plugin-unicorn';
import {defineConfig} from 'eslint/config';
import globals from 'globals';
export default defineConfig([
{
files: ['**/*.js'],
languageOptions: {
globals: globals.builtin,
},
plugins: {
unicorn,
},
rules: {
'unicorn/prefer-module': 'error',
'unicorn/…': 'error',
},
},
// …
]);
For TypeScript, scope Unicorn to TypeScript files and configure a TypeScript parser for the same config object:
import typescriptEslintParser from '@typescript-eslint/parser';
import unicorn from 'eslint-plugin-unicorn';
import {defineConfig} from 'eslint/config';
import globals from 'globals';
export default defineConfig([
{
files: ['**/*.ts'],
languageOptions: {
globals: globals.builtin,
parser: typescriptEslintParser,
},
plugins: {
unicorn,
},
rules: {
'unicorn/prefer-module': '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.
🎨 Set in the recommended-css configuration.
🌐 Set in the recommended-html configuration.
🧩 Set in the recommended-json configuration.
📚 Set in the recommended-markdown configuration.
💎 Set in the recommended-soml configuration.
🛠️ Set in the recommended-toml configuration.
📋 Set in the recommended-yaml configuration.
☑️ Set in the unopinionated configuration.
🔧 Automatically fixable by the --fix CLI option.
💡 Manually fixable by editor suggestions.
💭 Requires type information.…
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 (544)Similar npm ESLint plugins plugins
All 20 eslint-plugin-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-plugin-unicorn. First seen Oct 16, 2026; last successful collection Oct 20, 2026. See the methodology.