Commit b20b56d
committed
feat(linter): add
related #11440
https://eslint.vuejs.org/rules/no-multiple-slot-args.html
The original rule starts from a `MemberExpression` and checks later if the parent is a `CallExpression`.
This implementation checks for a `CallExpression` and tries to check `MemberExpression`.
All 22 tests are getting diagnosed, even the weird use case:
```
let children
children = this.$scopedSlots.foo
if (children) children(...foo)
```vue/no-multiple-slot-args rule (#13579)1 parent aafe08c commit b20b56d
File tree
4 files changed
+605
-0
lines changed- crates/oxc_linter/src
- generated
- rules/vue
- snapshots
4 files changed
+605
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2445 | 2445 | | |
2446 | 2446 | | |
2447 | 2447 | | |
| 2448 | + | |
| 2449 | + | |
| 2450 | + | |
| 2451 | + | |
2448 | 2452 | | |
2449 | 2453 | | |
2450 | 2454 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
626 | 626 | | |
627 | 627 | | |
628 | 628 | | |
| 629 | + | |
629 | 630 | | |
630 | 631 | | |
631 | 632 | | |
| |||
1207 | 1208 | | |
1208 | 1209 | | |
1209 | 1210 | | |
| 1211 | + | |
1210 | 1212 | | |
1211 | 1213 | | |
1212 | 1214 | | |
0 commit comments