-
Notifications
You must be signed in to change notification settings - Fork 21
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
[PoC] Migrate eslint and prettier to biome #554
base: main
Are you sure you want to change the base?
[PoC] Migrate eslint and prettier to biome #554
Conversation
"noDuplicateObjectKeys": "error", | ||
"noDuplicateParameters": "error", | ||
"noEmptyBlockStatements": "error", | ||
"noExplicitAny": "off", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I changed this from error to off, as I'm not sure if you'd like to use this in new code. If yes, then I'd change back to "error" and add inline biome-igore
comments to the preexisting places.
"useValidTypeof": "error" | ||
} | ||
}, | ||
"ignore": ["lib/consentomatic/**/*", "dist/**/*", "lib/filterlist-engine.ts"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The lib/filterlist-engine.ts
was not in ignored files, but biome warned that it's really big and as it's apparently autogenerated, I suppose we could ignore it even in eslint+prettier in case you don't want to go through with Biome :)
"addon/manifest.*.json", | ||
"**/*.md", | ||
"**/*.har", | ||
"lib/filterlist-engine.ts" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@muodov this is highly opinionated, so I fully understand if you don't want to go through with this, especially as other DDG repos are using a shared eslint, but please just give it a try, it's addictively fast 🤩 (~50ms vs 10s). In case you'd like to consider using Biome in other DDG repos too, they have eslint+prettier auto migration: https://biomejs.dev/guides/migrate-eslint-prettier/ (which is what I used here too, with just some small tweaks).