eslint-plugin-unicorn
More than 100 powerful ESLint rules (by sindresorhus)
putout
π Pluggable and configurable JavaScript Linter, code transformer and formatter, drop-in ESLint superpower replacement πͺ with built-in support for js, jsx, typescript, markdown, yaml and json. Write declarative codemods in a simplest possible way π (by coderaiser)
eslint-plugin-unicorn | putout | |
---|---|---|
41 | 3 | |
4,435 | 738 | |
1.3% | 1.8% | |
9.0 | 10.0 | |
1 day ago | about 17 hours ago | |
JavaScript | JavaScript | |
MIT License | MIT License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
eslint-plugin-unicorn
Posts with mentions or reviews of eslint-plugin-unicorn.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2025-01-12.
-
Just use this Next.js Eslint Configuration
XO. This feels like the Black of Typescript linting. XO has styles for everything and is very opinionated. This can be nice, because it takes a lot of code style decisions off of your plate. But beware it can be cumbersome to implement in the middle of a project because it will require extensive reformatting. In lieu of XO, I found Unicorn opinionated enough and more immediately useful.
-
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. Fortunately, we discovered eslint-nibble: a command line tool that helps adding rules one by one with a graphical interface.
-
Anyone using the data types Map and Set IRL?
I recently scanned out codebase with https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-set-has.md and found many instances of potential "accidentally quadratic" uses of array.includes instead. gas a nice autofix to convert to set. there are some fun and sometimes useful lint rules out there...
-
this has broken my code 3 times
Thereβs an ESLint rule for that (albeit in a plugin)
-
Array.reduce() feels like a cheat code/superpower if you know how to use it.
Many popular eslint configs have even introduce rules to warn on its usage for these very reasons.
-
Why are functions declared inside a component instead of directly in the file.
eslint-plugin-unicorn
- es-lint rule to force arrow functions as callbacks
- 100+ ESLint rules
-
TIL about the Nullish Coalescing Operator in Javascript (??)
I find eslint-plugin-unicorn package pretty useful for updating old code. With IE11 dead and NodeJS v12 LTS sunsetting soon, it's a brave new world.
putout
Posts with mentions or reviews of putout.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-05-03.
-
Modern, faster alternatives to ESLint
Due to its plugin-first architecture, the initial API is kept as lean as possible, preventing unnecessary bloat and allowing the developer the choice of extension. Some plugin rules are also smaller than those available in ESLint, e.g., the debugger rule. We can also use Putout with ESLint by allowing Putout to handle code transformations while ESLint handles any formatting broken after the code transformation. We can use the plugin eslint-plugin-putout to help with this integration.
-
jscodeshift VS putout - a user suggested alternative
2 projects | 16 Apr 2022
π Pluggable and configurable code transformer with built-in ESLint, Babel plugins support for js, jsx typescript, flow, markdown, yaml and json
- Putout Linter and Transformer for JavaScript/TypesScript/Markdown/JSON/YAML
What are some alternatives?
When comparing eslint-plugin-unicorn and putout you can also consider the following projects:
eslint-config-xo - ESLint shareable config for XO
jscodeshift - A JavaScript codemod toolkit.
eslint-plugin-boundaries - Eslint plugin checking architecture boundaries between elements
gogocode - GoGoCode is a transformer for JavaScript/Typescript/HTML based on AST but providing a more intuitive API.
proposal-observable - Observables for ECMAScript
eslint-plugin-snakecasejs - :pencil2: ESLint Plugin: enforce snake_case syntax on variables and function names