npm
npmjs.com › package › eslint-plugin-unicorn
eslint-plugin-unicorn - npm
February 10, 2026 - 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 › 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 5K users
Forked by 441 users
Languages JavaScript
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.
npm
npmjs.com › package › @rinfel › eslint-plugin-unicorn
@rinfel/eslint-plugin-unicorn - npm
January 3, 2022 - { "name": "my-awesome-project", "eslintConfig": { "env": { "es6": true }, "parserOptions": { "ecmaVersion": "latest", "sourceType": "module" }, "plugins": [ "@rinfel/unicorn" ], "rules": { "@rinfel/unicorn/better-regex": "error", "@rinfel/unicorn/catch-error-name": "error", "@rinfel/unicorn/consistent-destructuring": "error", "@rinfel/unicorn/consistent-function-scoping": "error", "@rinfel/unicorn/custom-error-definition": "off", "@rinfel/unicorn/empty-brace-spaces": "error", "@rinfel/unicorn/error-message": "error", "@rinfel/unicorn/escape-case": "error", "@rinfel/unicorn/expiring-todo-commen
» npm install @rinfel/eslint-plugin-unicorn
Published Jan 03, 2022
Version 40.0.0-1
Author Sindre Sorhus
jsDelivr
jsdelivr.com › package › npm › eslint-plugin-unicorn
eslint-plugin-unicorn CDN by jsDelivr - A CDN for npm and GitHub
September 20, 2016 - A free, fast, and reliable CDN for eslint-plugin-unicorn. More than 100 powerful ESLint rules
Published Sep 20, 2016
GitHub
github.com › hayden-lu › eslint-plugin-unicorn
GitHub - hayden-lu/eslint-plugin-unicorn: More than 100 powerful ESLint rules · GitHub
npm install --save-dev eslint eslint-plugin-unicorn · 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.
Author hayden-lu
Generalist Programmer
generalistprogrammer.com › home › tutorials › npm packages › eslint-plugin-unicorn: more than 100 powerful eslint r guide
Eslint-plugin-unicorn Guide: More than 100 powerful ESLint rules [2025]
November 16, 2025 - // ES6 modules import eslint_plugin_unicorn from 'eslint-plugin-unicorn' // CommonJS const eslint_plugin_unicorn = require('eslint-plugin-unicorn')
UNPKG
app.unpkg.com › eslint-plugin-unicorn@23.0.0 › files › readme.md
eslint-plugin-unicorn
# eslint-plugin-unicorn [, which includes this plugin. [**Propose or contribute a new rule ➡**](.github/contributing.md) ## Install ```console $ npm install --save-dev ...
SourceForge
sourceforge.net › projects › eslint-plugin-unicorn.mirror
eslint-plugin-unicorn download | SourceForge.net
February 10, 2026 - 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.
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 - import eslintPluginUnicorn from 'eslint-plugin-unicorn'; import globals from 'globals'; export default [ { languageOptions: { globals: globals.builtin, }, plugins: { unicorn: eslintPluginUnicorn, }, rules: { 'unicorn/better-regex': 'error', ...
GitHub
github.com › sindresorhus › eslint-plugin-unicorn › releases
Releases · 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
CodeSandbox
codesandbox.io › s › eslint-plugin-unicorn-rm1wx
eslint-plugin-unicorn - CodeSandbox
Published Mar 18, 2020
Repository https://codesandbox.io/s/rm1wx
Top answer 1 of 2
1
You need to add unicorn in eslintConfig section for plugins
"plugins": [
"unicorn"
],
Reference: Usage Documentation
2 of 2
0
The accepted answer didn't work for me. After playing around with the configuration, I found the following to work:
"devDependencies": {
"xo": "^0.42.0"
},
"xo": {
"rules": {
"unicorn/prefer-module": 0
}
}
I'm using all the defaults - just not ready to change ALL my doe to modules just yet. Thought I'd share since it's a bit more concise.
npm
npmjs.com › package › @eslint-types › unicorn
@eslint-types/unicorn - npm
April 4, 2024 - TypeScript definitions for eslint-define-config. Latest version: 52.0.0, last published: a year ago. Start using @eslint-types/unicorn in your project by running `npm i @eslint-types/unicorn`. There are 17 other projects in the npm registry using @eslint-types/unicorn.
» npm install @eslint-types/unicorn
Published Apr 04, 2024
Version 52.0.0
Npm
npm.io › package › eslint-plugin-unicorn
Eslint-plugin-unicorn NPM | npm.io
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', }, }, // …