swc/rules/assign-target-expr.yml

8 lines
170 B
YAML
Raw Normal View History

language: rust
id: use-into-instead-of-assign-target-expr
rule:
all:
- kind: call_expression
- pattern: "AssignTarget::Simple($ARG)"
fix: $ARG.into()