swc/rules/assign-target-pat.yml
Donny/강동윤 7f2a2c1e40
refactor(es/ast): Improve type definitions of patterns (#8532)
**Description:**

 - Copy `AssignmentTarget` from `oxc`.
 - Use `BindingIdentifier` in more places.

**Related issue:**
 
 - Closes #8026
2024-02-05 15:32:52 +09:00

8 lines
166 B
YAML

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