-
-
Notifications
You must be signed in to change notification settings - Fork 504
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
🐛 Comments are removed when updating from rome-ignore
to biome-ignore
#257
Comments
I just did a find and replace to update |
Could please share the code that generates that error please? We're trying to hunt down the rule/code that triggers that for days! Also:
|
I believe it's this code in combination with complexity/useLiteralKeys // Add optimizely service to global window; this allows us to debug feature flag flakiness in localhost a bit better
if (typeof window !== 'undefined' && Boolean(window)) {
((window as unknown) as Record<string, unknown>)['optimizelyService'] = optimizelyService;
}
const IS_RUNNING_IN_CYPRESS =
typeof window === 'undefined' ? false : Boolean((window as never)?.['Cypress']); but it's unrelated to this specific bug :( |
happens on 1.2.2 |
I am going to close this.
@yckbilly1929 subscribe to #98, which is a broader issue that doesn't involve a specific rule, but a how code actions are applied to the code, which causes these issues. |
Environment information
What happened?
Comments before
// rome-ignore
statements are removed.Expected result
It should leave these comments in.
Code of Conduct
The text was updated successfully, but these errors were encountered: