-
-
Notifications
You must be signed in to change notification settings - Fork 86
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: use biome instead of eslint for linting #194
base: master
Are you sure you want to change the base?
Conversation
We recently moved our configs to a dedicated repo which is here https://github.com/shipgirlproject/eslint-config. Do biome support this configuration? We are transitioning to a global lint settings |
You have to look at the biome site to get the best configuration for the code but yes it is extremely complete |
Putting this on hold for the meantime as I'm doing other things, This may get rejected since we are gonna favor global configs, but we'll see |
Eslint and bad, biome allows to have a code much cleaner knowing that it signals you the code errors and there are quite a lot of them currently |
No. Eslint has a mature ecosystem of plugins and rules, and last time I checked biome is not production ready. Eslint speed is "good enough" for a relatively small project such as shoukaku, and just does not make sense for us. |
Your point makes no sense because what you're describing is just a linter, which both eslint and biome are. Why is eslint bad? |
The only reason for this is: "I don't like ESLint and I don't want them to use it either." I find it a bit... Strange, let's leave it at that, wanting to change something that in this case, these guys seem to work properly and without problems. I don't use ESLint but if it works for them, great. The only thing I can add is to add a pre-commit to format the code in the commits. Maybe I'll do a PR for it. |
Code style is already enforced by CI and you need those to pass to merge PRs anyways. It should be fine as is. |
The thing is, eslint fails to enforce tabs and indents |
It is in the rules, and tbh we should probably use prettier for that purpose. |
I see, thanks for the explanation I appreciate it. |
Since the latest version of ESLint, many plugins no longer work, causing issues that force you to stick with the previous version. Personally, I don't mind, but Biome is much more efficient in every aspect, far less tedious to configure, and it catches a lot more errors and inconsistencies in the code. do a simple 'npm run lint' and you will see that there are problems in the logic of the code that eslint would not have provided |
Fixed the concerns that lint detected