You need to add unicorn in eslintConfig section for plugins

"plugins": [
    "unicorn"
],

Reference: Usage Documentation

Answer from hendrixchord on Stack Overflow
🌐
GitHub
github.com › sindresorhus › eslint-plugin-unicorn
GitHub - sindresorhus/eslint-plugin-unicorn: More than 100 powerful ESLint rules · GitHub
npm install --save-dev eslint eslint-plugin-unicorn · Requires ESLint >=9.20.0, flat config, and ESM. 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.
Starred by 4.9K users
Forked by 439 users
Languages   JavaScript
🌐
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 - TypeScript is a language for application-scale JavaScript development. TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. ... i use eslint-plugin-unicorn on typescript projects. i turn off most rules, but enjoy a couple. make sure you configure typescript-eslint ...
🌐
npm
npmjs.com › package › eslint-plugin-unicorn
eslint-plugin-unicorn - npm
import eslintPluginUnicorn from 'eslint-plugin-unicorn'; import globals from 'globals'; export default [ { languageOptions: { globals: globals.builtin, }, plugins: { unicorn: eslintPluginUnicorn, }, rules: { 'unicorn/better-regex': 'error', ...
      » npm install eslint-plugin-unicorn
    
Published   Feb 10, 2026
Version   63.0.0
Author   Sindre Sorhus
🌐
GitHub
github.com › typescript-eslint › typescript-eslint › issues › 9623
Repo: enable more `eslint-plugin-unicorn` rules internally · Issue #9623 · typescript-eslint/typescript-eslint
June 17, 2024 - Suggestion Following up on #9523, I was looking through the eslint-plugin-unicorn rules that we do not have turned on internally, and I found these rules that might be beneficial to enable. Thoughts?Details better-regex (26 occurrences) ...
Author   abrahamguo
🌐
Medium
medium.com › quadcode-life › improving-development-productivity-the-magic-of-a-unified-eslint-configuration-e32aa71b063b
Improving development productivity: the magic of a unified ESLint configuration | by Dmitrii Pashkevich | Quadcode | Medium
September 22, 2023 - And we will add two final plugins for linting code quality. eslint-plugin-sonarjs — will help identify potential bugs and the use of suspicious patterns in the code. eslint-plugin-unicorn — more than 100 useful rules for ESLint.
🌐
Oxidation Compiler
oxc.rs › docs › guide › usage › linter.html
Oxlint
ESLint core rules · TypeScript rules (including type-aware rules) Popular plugins such as React, Jest, Vitest, Import, Unicorn, and jsx-a11y · Custom JS plugins compatible with the ESLint plugin ecosystem · This breadth makes migration straightforward without sacrificing rule coverage.
🌐
GitHub
github.com › sindresorhus › eslint-plugin-unicorn › releases
Releases · sindresorhus/eslint-plugin-unicorn
expiring-todo-comments: Should not flag ESLint disable comments (#2828) 3568daf · no-useless-collection-argument: Use suggestions to remove empty array with comments (#2838) c0d0687 · prefer-set-has: Check Iterator#toArray() and String#split() (#2829) ab8970e · no-useless-spread: Fix false positive on Iterator (#2831) 994e31c · isolated-functions: Ignore TypeScript types (#2822) c3479c0 ·
Author   sindresorhus
🌐
npm
npmjs.com › search
eslint-plugin-unicorn - npm search
Effortlessly enforce best practices and catch errors with this comprehensive ESLint configuration for TypeScript, featuring popular plugins like @typescript-eslint, eslint-plugin-react, and eslint-plugin-unicorn.
Find elsewhere
🌐
npm
npmjs.com › package › @sanv › eslint-config-unicorn-typescript
@sanv/eslint-config-unicorn-typescript - npm
Eslint Unicorn Configuration with Typescript Support. Latest version: 2.0.3, last published: 5 years ago. Start using @sanv/eslint-config-unicorn-typescript in your project by running `npm i @sanv/eslint-config-unicorn-typescript`. There are 0 other projects in the npm registry using @sanv/eslint-config-unicorn-typescript.
      » npm install @sanv/eslint-config-unicorn-typescript
    
Published   Jun 20, 2020
Version   2.0.3
🌐
Angular.love
angular.love › setting-up-efficient-workflows-with-eslint-prettier-and-typescript
Setting up efficient workflows with ESLint, Prettier and TypeScript
Prettier: ESLint plugin for formatting code. See here. Unicorn: Additional rules which are not supported by ESLint.
🌐
IssueHunt
oss.issuehunt.io › r › sindresorhus › eslint-plugin-unicorn
sindresorhus/eslint-plugin-unicorn (Raised $2,952.61) - Issuehunt
`multipleFileExtensions` in `unicorn/filename-case` is not working correctly with eslint flat config ... `prefer-number-properties`: `isNaN` and `isFinite` should be auto-fixed if argument is known to be `number` ... Rule proposal: Prefer declaring variables together only when they are using destructuring of the same variable ... `unicorn/consistent-destructuring` should avoid (or warn) when a var will be hoisted above an `await` ... `unicorn/prefer-export-from` breaks type exports in typescript projects using the `isolatedModules` flag.
🌐
GitHub
github.com › sindresorhus › eslint-plugin-unicorn › blob › main › package.json
eslint-plugin-unicorn/package.json at main · sindresorhus/eslint-plugin-unicorn
"@typescript-eslint/types": "^8.48.0", "ava": "^6.4.1", "c8": "^10.1.3", "enquirer": "^2.4.1", "eslint": "^9.38.0", "eslint-ava-rule-tester": "^5.0.1", "eslint-config-xo": "^0.49.0", "eslint-doc-generator": "^2.3.0", "eslint-plugin-eslint-plugin": "^7.1.0", "eslint-plugin-jsdoc": "^61.1.6", "eslint-plugin-unicorn": "^61.0.2", "eslint-remote-tester": "^4.0.3", "eslint-remote-tester-repositories": "^2.0.2", "espree": "^10.4.0", "listr2": "^9.0.5", "markdownlint-cli": "^0.45.0", "nano-spawn": "^2.0.0", "node-style-text": "^2.1.2", "npm-package-json-lint": "^9.0
Author   sindresorhus
🌐
React TypeScript Cheatsheets
react-typescript-cheatsheet.netlify.app › linting
Linting | React TypeScript Cheatsheets
{ "extends": [ "airbnb", "prettier", "prettier/react", "plugin:prettier/recommended", "plugin:jest/recommended", "plugin:unicorn/recommended" ], "plugins": ["prettier", "jest", "unicorn"], "parserOptions": { "sourceType": "module", "ecmaFeatures": { "jsx": true } }, "env": { "es6": true, "browser": true, "jest": true }, "settings": { "import/resolver": { "node": { "extensions": [".js", ".jsx", ".ts", ".tsx"] } } }, "overrides": [ { "files": ["**/*.ts", "**/*.tsx"], "parser": "typescript-eslint-parser", "rules": { "no-undef": "off" } } ] } Another great resource is "Using ESLint and Prettier in a TypeScript Project" by @robertcoopercode.
🌐
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?

🌐
Tessl
tessl.io › registry › tessl › npm-eslint-plugin-unicorn › 60.0.0
tessl/npm-eslint-plugin-unicorn@60.0.x - Registry - Tessl
ESLint Plugin Unicorn is built around several key components: Rules Engine: 134 individual ESLint rules covering various code quality aspects · Configuration System: Pre-built configurations (recommended, all) for different usage scenarios · Utility System: Comprehensive AST utilities and shared helpers for rule development · Flat Config Support: Native support for ESLint's flat configuration format · TypeScript Integration: Full TypeScript definitions for all APIs and configurations
🌐
Reddit
reddit.com › r/reactjs › what eslint rules you recommend?
r/reactjs on Reddit: What eslint rules you recommend?
February 21, 2025 -

Hey all, I am in the process of creating my own eslint version 9 set of rules with a flat config for the first time and I am wondering what you guys are using or recommending as a must have?

I use Typescript with React so thought to definitely include eslint-plugin-react and typescript-eslint. What else? I saw there is sonar eslint too but this one seems not so popular?

Do you have any "gems" that are not enabled by default or not popular but still a great addition?

I also see that many rules can be customized a bit, do you recommend that or rather not?

Really curious and interested about your experience on this, thanks!

🌐
Npm
npm.io › search › keyword:unicorn
Unicorn | npm.io
Automatically configure esLint based on project dependancies · airbnbeslinteslint-configeslint-config-airbnbunicorn0.9.0 • Published 2 years ago ... The Pegasus module for Unicorn System.