npm
npmjs.com › package › eslint-plugin-unicorn
eslint-plugin-unicorn - npm
1 month ago - 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', }, }, // …
» npm install eslint-plugin-unicorn
Published Feb 10, 2026
Version 63.0.0
Author Sindre Sorhus
CodeSandbox
codesandbox.io › s › eslint-plugin-unicorn-rm1wx
eslint-plugin-unicorn - CodeSandbox
Published Mar 18, 2020
Repository https://codesandbox.io/s/rm1wx
GitHub
github.com › sindresorhus › eslint-plugin-unicorn › releases
Releases · sindresorhus/eslint-plugin-unicorn
October 26, 2025 - More than 100 powerful ESLint rules. Contribute to sindresorhus/eslint-plugin-unicorn development by creating an account on GitHub.
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.
GitHub
github.com › oxc-project › oxc › issues › 684
☂ eslint-plugin-unicorn · Issue #684 · oxc-project/oxc · GitHub
June 3, 2023 - WarningThis comment is maintained by CI. Do not edit this comment directly. To update comment template, see https://github.com/oxc-project/oxc/tree/main/tasks/lint_rules This is the tracking issue for eslint-plugin-unicorn. There are 141...
Published Aug 04, 2023
GitHub
github.com › sindresorhus › eslint-plugin-unicorn › blob › main › docs › rules › filename-case.md
eslint-plugin-unicorn/docs/rules/filename-case.md at main · sindresorhus/eslint-plugin-unicorn
Ignore some files when you use eslint-plugin-markdown, for example README.md. Some tools may require special names for some files. Don't forget that you must escape special characters that you don't want to be interpreted as part of the regex, for example, if you have [ in the actual filename. For example, to match [id].js, use /^\[id]\.js$/ or '^\\[id]\\.js$'. "unicorn/filename-case": [ "error", { "case": "kebabCase", "ignore": [ "^FOOBAR\\.js$", "^(B|b)az", "\\.SOMETHING\\.js$", /^vendor/i ] } ]
Author sindresorhus
GitHub
github.com › sindresorhus › eslint-plugin-unicorn › blob › main › docs › rules › no-array-for-each.md
eslint-plugin-unicorn/docs/rules/no-array-for-each.md at main · sindresorhus/eslint-plugin-unicorn
More than 100 powerful ESLint rules. Contribute to sindresorhus/eslint-plugin-unicorn development by creating an account on GitHub.
Author sindresorhus
GitHub
github.com › sindresorhus › eslint-plugin-unicorn › issues
sindresorhus/eslint-plugin-unicorn
More than 100 powerful ESLint rules. Contribute to sindresorhus/eslint-plugin-unicorn development by creating an account on GitHub.
Author sindresorhus
GitHub
github.com › sindresorhus › eslint-plugin-unicorn › blob › main › docs › rules › prefer-includes.md
eslint-plugin-unicorn/docs/rules/prefer-includes.md at main · sindresorhus/eslint-plugin-unicorn
More than 100 powerful ESLint rules. Contribute to sindresorhus/eslint-plugin-unicorn development by creating an account on GitHub.
Author sindresorhus
GitHub
github.com › sindresorhus › eslint-plugin-unicorn › blob › main › docs › rules › no-for-loop.md
eslint-plugin-unicorn/docs/rules/no-for-loop.md at main · sindresorhus/eslint-plugin-unicorn
More than 100 powerful ESLint rules. Contribute to sindresorhus/eslint-plugin-unicorn development by creating an account on GitHub.
Author sindresorhus
Tessl
tessl.io › registry › tessl › npm-eslint-plugin-unicorn › 60.0.0
tessl/npm-eslint-plugin-unicorn@60.0.x - Registry - Tessl
January 29, 2026 - ESLint Plugin Unicorn is a comprehensive ESLint plugin that provides 134 powerful ESLint rules for enforcing code quality, consistency, and modern JavaScript best practices.
npm
npmjs.com › package › unicorn
unicorn - npm
May 31, 2013 - Unicorn extends the String class to add his features so you don't need to save a reference to it.
» npm install unicorn
Published May 31, 2013
Version 0.0.1
Author Rafael Rinaldi
Repository https://github.com/rafaelrinaldi/unicorn
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?
Top answer 1 of 3
4
Author of eslint-plugin-testing-library here. You can’t imagine how happy I am to see the plugin mentioned in this post! If you like eslint-plugin-jest you may like https://github.com/dangreenisrael/eslint-plugin-jest-formatting too. If you use emotion, it took me a while to realize they have an ESLint plugin https://github.com/emotion-js/emotion/tree/master/packages/eslint-plugin-emotion
2 of 3
3
"no-restricted-syntax": [ "warn", { "selector": "JSXText[value=/\\w/]", "message": "Use 't(...)' instead of literal text in JSX" } ] https://github.com/excalidraw/excalidraw/blob/master/.eslintrc.json
LibHunt
libhunt.com › compare-sindresorhus--meta-vs-eslint-plugin-unicorn
meta vs eslint-plugin-unicorn - compare differences and reviews? | LibHunt
Incrementally fixing lots of ESlint errors in a clean way with ESlint Nibble ... Recently, we chose to add the Unicorn plugin, which contain dozens of ESlint rules. It can feel overwhelming at first because it triggers hundreds of errors.