You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Then run biome check --apply-unsafe ./file.js and you'll get
../test.ts internalError/panic INTERNAL ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
✖ processing panicked: Tried to cast node with kind JS_STATIC_MEMBER_EXPRESSION as `"biome_js_syntax::generated::nodes::AnyJsAssignmentPattern"` but was unable to cast
⚠ This diagnostic was derived from an internal Biome error. Potential bug, please report it if necessary.
If you disable the rule, the unsafe fixes are correctly applied and the process doesn't panic
Environment information
What happened?
Have this code:
Then run
biome check --apply-unsafe ./file.js
and you'll getIf you disable the rule, the unsafe fixes are correctly applied and the process doesn't panic
Related to #98
Expected result
The rule should emit a valid AST
Code of Conduct
The text was updated successfully, but these errors were encountered: