Skip to content
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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

freiondrej
Copy link
Contributor

@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).

"noDuplicateObjectKeys": "error",
"noDuplicateParameters": "error",
"noEmptyBlockStatements": "error",
"noExplicitAny": "off",
Copy link
Contributor Author

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"]
Copy link
Contributor Author

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"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant