In addition toDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/sindresorhus/eslint-plugin-unicorn/llms.txt
Use this file to discover all available pages before exploring further.
recommended, the plugin ships two alternative preset configs: all and unopinionated. Both set the same languageOptions and disable the same core rules as recommended.
When to use each config
unopinionated | recommended | all | |
|---|---|---|---|
| Rules included | Universally agreed-upon subset | Most rules | Every non-deprecated rule |
| Good for | Teams that want to opt in gradually | Most projects | Greenfield projects, maximum strictness |
| Strictness | Low | Medium | High |
All config
Theall config enables every non-deprecated unicorn rule at 'error' severity.
Unopinionated config
Theunopinionated config enables only the rules with recommended: 'unopinionated' in their metadata — a smaller subset of recommended containing rules that are broadly agreed-upon with little room for debate.
Use unopinionated when your team wants the safety of unicorn’s best-practice rules without the more opinionated style choices that recommended includes (for example, unicorn/no-array-reduce or unicorn/prevent-abbreviations).
Difference from recommended
recommended includes all unopinionated rules plus additional rules that reflect the maintainers’ stronger stylistic preferences. If a rule appears in recommended but not unopinionated, it means reasonable teams can disagree about it. Starting with unopinionated and selectively adding rules from recommended gives you fine-grained control.