95 points · by yeldarb · 2y ago · 47 comments
It's super fast compared to ESLint and doesn't require a ton of plugins to work (you just install the one @biomejs/biome package and that's it). The configuration is dead simple as well and it has VS Code and intelliJ support too. It also does formatting / prettifying in the same package as well.
One downside though is it does not have support for Standard JS. They go by their own rules, which is fine for a new project, but existing projects that use Standard JS or have custom rules will probably take time to convert over, and not all ESLint rules are supported either.
https://github.com/biomejs/biome/discussions/2070#discussion...
It makes those linters virtually impossible for many projects to adopt.
Seems like it's part of some larger anti composable tools trend that I really don't understand.
That being said they would still need a plugin system (probably using wasm as compile target for plugins) for this to be feasible.
It was pretty obvious years ago that eslint messed up how package names are referenced in configs, and how they're resolved. Did it really require such a big change that affects the whole ecosystem? Microsoft seemed to have a pretty good solution with https://www.npmjs.com/package/@rushstack/eslint-patch
Edit: Here’s some info about the gradual migration to flat config and deprecation of eslintrc: https://eslint.org/blog/2023/10/flat-config-rollout-plans/
It seems like it’s been well thought out.
E.g., faster and simpler file access from removing tree-walking for multiple `.eslintrc.*`; better defaults in line with modern JavaScript; better compatibility with modules and Node.js's own file loading.
(And I suspect there's an element of "As long as we're having to introduce a breaking change, let's make it explicitly breaking by also changing the filename.")
Certainly not. Breaking changes should still be avoided as much as possible.
Not every project. Many people switched to the .js format a long time ago since it’s more powerful. I understand the inconvenience though, especially since I don’t remember them deprecating the rc format when they introduced the js one.
I gave up eventually because i exhausted all options and couldn't fix issues.
I think some plugins are not compatible with eslint v9 so it doesn't make sense to upgrade unless they do first. Some of the plugins haven't been updated in years so I'm not confident that i can migrate anytime soon.
I don't think any of them support all the rules of eslint
I highly recommend people try it out and ditch the configuration nightmare that is eslint.
If I can, I always try to install the Rust or Go version of a tool instead of the Python or Node version.