-
-
Notifications
You must be signed in to change notification settings - Fork 498
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
🐛 Formatter ignore doesn't work #1465
Comments
Can you try with |
@ematipico This works, but this results in a breaking-change. I've also opened a discussion around this: #1466 |
Indeed, this is a mistake in our side. |
@anonrig this should be fixed in the last patch release (v1.5.1). |
@Conaclos I'm still having some weird error messages, and suggestions on how to diagnose the root cause?
|
Thanks for your test. It seems that the verbose diagnostics are counted as regular diagnostics. Because they come first, they hide useful diagnostics. If you raise the number of allowed diagnostics, Biome will report code that should be reformatted: ❯ npx @biomejs/biome format --max-diagnostics=500 .
./packages/nextjs/src/common/wrapPageComponentWithSentry.ts format ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
ℹ Formatter would have printed the following content:
7 7 │
8 8 │ interface ClassComponent {
9 │ - ··new·(...args:·unknown[]):·{
9 │ + ··new·(
10 │ + ····...args:·unknown[]
11 │ + ··):·{
10 12 │ props?: unknown;
11 13 │ render(...args: unknown[]): unknown;
I also found a bug I reported in #1511. |
@anonrig The 1.5.2 release removes the remaining regressions introduced in 1.5.0 |
Environment information
What happened?
biome check --apply .
Expected result
It should not format
dev-packages/browser-integration-tests/fixtures/loader.js
because of this line: https://github.com/getsentry/sentry-javascript/blob/develop/biome.json#L46Code of Conduct
The text was updated successfully, but these errors were encountered: