🌐
GitHub
github.com › sindresorhus › eslint-plugin-unicorn › releases
Releases · sindresorhus/eslint-plugin-unicorn
sindresorhus / eslint-plugin-unicorn Public · There was an error while loading. Please reload this page. Notifications · You must be signed in to change notification settings · Fork 439 · Star 4.9k · Releases · sindresorhus/eslint-plugin-unicorn · 10 Feb 16:20 ·
Author   sindresorhus
🌐
GitHub
github.com › sindresorhus › eslint-plugin-unicorn
GitHub - sindresorhus/eslint-plugin-unicorn: More than 100 powerful ESLint rules · GitHub
You might want to check out XO, which includes this plugin. ... Requires ESLint >=9.20.0, flat config, and ESM.
Starred by 4.9K users
Forked by 439 users
Languages   JavaScript
🌐
npm
npmjs.com › package › eslint-plugin-unicorn
eslint-plugin-unicorn - npm
Latest version: 63.0.0, last published: a month ago. Start using eslint-plugin-unicorn in your project by running `npm i eslint-plugin-unicorn`. There are 2724 other projects in the npm registry using eslint-plugin-unicorn.
      » npm install eslint-plugin-unicorn
    
Published   Feb 10, 2026
Version   63.0.0
Author   Sindre Sorhus
🌐
SourceForge
sourceforge.net › projects › eslint-plugin-unicorn.mirror
eslint-plugin-unicorn download | SourceForge.net
Download eslint-plugin-unicorn for free. More than 100 powerful ESLint rules. More than 100 powerful ESLint rules. You might want to check out XO, which includes this plugin.
🌐
GitHub
github.com › sindresorhus › eslint-plugin-unicorn › releases › tag › v34.0.0
Release v34.0.0 · sindresorhus/eslint-plugin-unicorn
sindresorhus / eslint-plugin-unicorn Public · Notifications · Fork 346 · Star 3.3k · Compare · Choose a tag to compare · Could not load tags · Nothing to show · {{ refName }} default · sindresorhus released this · 28 Jun 10:44 · · 402 commits to main since this release ·
Author   sindresorhus
🌐
GitHub
github.com › sindresorhus › eslint-plugin-unicorn › releases › tag › v40.1.0
Release v40.1.0 · sindresorhus/eslint-plugin-unicorn
sindresorhus / eslint-plugin-unicorn Public · Notifications · Fork 343 · Star 3.3k · Compare · Choose a tag to compare · Could not load tags · Nothing to show · {{ refName }} default · sindresorhus released this · 16 Jan 06:54 · · 238 commits to main since this release ·
Author   sindresorhus
🌐
npm
npmjs.com › search
eslint-plugin-unicorn - npm search
eslintbot• 10.0.1 • a month ago • 2676 dependents • MITpublished version 10.0.1, a month ago2676 dependents licensed under $MIT
🌐
UNPKG
unpkg.com › browse › eslint-plugin-unicorn@23.0.0 › readme.md
eslint-plugin-unicorn
[**Propose or contribute a new rule ➡**](.github/contributing.md) ## Install ```console $ npm install --save-dev eslint eslint-plugin-unicorn ``` ## Usage Configure it in `package.json`. ```json { "name": "my-awesome-project", "eslintConfig": { "env": { "es6": true }, "parserOptions": { "ecmaVersion": 2021, "sourceType": "module" }, "plugins": [ "unicorn" ], "rules": { "unicorn/better-regex": "error", "unicorn/catch-error-name": "error", "unicorn/consistent-function-scoping": "error", "unicorn/custom-error-definition": "off", "unicorn/error-message": "error", "unicorn/escape-case": "error",
Find elsewhere
🌐
Reddit
reddit.com › r/reactjs › what are some (niche?) eslint rules you couldn't live without?
r/reactjs on Reddit: What are some (niche?) ESLint rules you couldn't live without?
June 24, 2020 -

Recently created my own eslint config and stumbled across https://github.com/sindresorhus/eslint-plugin-unicorn which has a few reasonable rules in there that have the potential to massively contribute to code quality, e.g. prefer-array-find, prefer-modern-dom-apis.

I was also unaware of https://github.com/testing-library/eslint-plugin-testing-library as well as the included eslint-plugin-jest which... should definitely have your attention if you use testing-library and/or jest.

https://github.com/benmosher/eslint-plugin-import also has import/order which may alphabetically group your imports, improving readability.

Anything else I've been missing out on?

🌐
CodeSandbox
codesandbox.io › examples › package › eslint-plugin-unicorn
eslint-plugin-unicorn examples - CodeSandbox
Use this online eslint-plugin-unicorn playground to view and fork eslint-plugin-unicorn example apps and templates on CodeSandbox.
🌐
Tessl
tessl.io › registry › tessl › npm-eslint-plugin-unicorn › 60.0.0
tessl/npm-eslint-plugin-unicorn@60.0.x - Registry - Tessl
import eslintPluginUnicorn from 'eslint-plugin-unicorn'; import globals from 'globals'; export default [ { languageOptions: { globals: globals.builtin, }, plugins: { unicorn: eslintPluginUnicorn, }, rules: { 'unicorn/better-regex': 'error', ...
🌐
Reddit
reddit.com › r/typescript › if i'm using typescript, will eslint-plugin-unicorn conflict with it or can i keep the rule on?
r/typescript on Reddit: if i'm using typescript, will eslint-plugin-unicorn conflict with it or can i keep the rule on?
March 14, 2024 - extends: [ 'plugin:@typescript-eslint/recommended-type-checked', 'plugin:@typescript-eslint/stylistic-type-checked', 'plugin:prettier/recommended', 'plugin:unicorn/recommended', 'plugin:react/recommended', 'plugin:react-hooks/recommended', ], parser: '@typescript-eslint/parser', parserOptions: { ecmaFeatures: { jsx: true, }, tsconfigRootDir: __dirname, project: './tsconfig.json', }, settings: { react: { version: 'detect', }, },
🌐
GitHub
gist.github.com › alexilyaev › 25a6496f523a18e3c530cb3a2e4718cb
ESLint `no-null` rule from `eslint-plugin-unicorn` · GitHub
ESLint `no-null` rule from `eslint-plugin-unicorn` Raw · eslint-no-null.md · eslint-plugin-unicorn v19.0.0 added unicorn/no-null by default.
🌐
UNPKG
app.unpkg.com › eslint-plugin-unicorn@26.0.1
UNPKG
github.com/sindresorhus/eslint-plugin-unicorn · sindresorhus/eslint-plugin-unicorn · 1 folder, 4 files · github.com/sindresorhus/eslint-plugin-unicorn · sindresorhus/eslint-plugin-unicorn · Latest: 62.0.0 ·
🌐
Awesomeopensource
awesomeopensource.com › project › sindresorhus › eslint-plugin-unicorn
Eslint Plugin Unicorn Alternatives
Latest ReleaseOctober 29, 2023 · Categories · Programming Languages > Javascript · Web User Interface > Dom · Code Quality > Eslint · Repo · Alternatives To Eslint Plugin Unicorn · Alternatives To Eslint Plugin Unicorn · Select To Compare ...