A modern, faster fork of eslint-plugin-unicorn with 100+ powerful ESLint rules. Current version 3.2.1, requires ESLint >=9.29.0 and Node.js >=20.10.0. Uses flat config only. Offers performance improvements and reduced install footprint compared to upstream, with the same rule set but prefix 'unicorn-x' instead of 'unicorn'. Ships TypeScript types. Active development with frequent syncing from the upstream source.
npm install eslint-plugin-unicorn-xVerified import paths — ran on the pinned version, not inferred.
Basic flat config setup with two rules enabled from eslint-plugin-unicorn-x.
Migrate to flat config (eslint.config.js) and ensure ESLint version meets requirement.
Upgrade Node.js to version 20.10.0 or later.
Convert to ESM imports (import statement) or use dynamic import().
Replace 'unicorn/' with 'unicorn-x/' in rule names (e.g., 'unicorn/better-regex' -> 'unicorn-x/better-regex').
Use `plugins: { unicorn: eslintPluginUnicorn }` in your flat config.Change to ESM import: `import eslintPluginUnicorn from 'eslint-plugin-unicorn-x';`
Run `npm install --save-dev eslint-plugin-unicorn-x` and ensure your flat config has `plugins: { unicorn: eslintPluginUnicorn }`.Change rule name from 'unicorn/better-regex' to 'unicorn-x/better-regex'.
Install globals: `npm install --save-dev globals` or remove the globals reference.