Commit 2481964
feat(linter/exhaustive-deps): add support for
In order to support:
https://react.dev/learn/separating-events-from-effects#declaring-an-effect-event
We use https://www.npmjs.com/package/use-effect-event in a lot of
places, and this is the last blocker for us to use oxlint
---------
Signed-off-by: Cody Olsen <81981+stipsan@users.noreply.github.com>
Co-authored-by: Cameron Clark <cameron.clark@hey.com>useEffectEvent (#14041)1 parent 3a706a7 commit 2481964
File tree
2 files changed
+64
-2
lines changed- crates/oxc_linter/src
- rules/react
- snapshots
2 files changed
+64
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
181 | 181 | | |
182 | 182 | | |
183 | 183 | | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
184 | 195 | | |
185 | 196 | | |
186 | 197 | | |
| |||
591 | 602 | | |
592 | 603 | | |
593 | 604 | | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
594 | 617 | | |
595 | 618 | | |
596 | 619 | | |
| |||
1047 | 1070 | | |
1048 | 1071 | | |
1049 | 1072 | | |
1050 | | - | |
| 1073 | + | |
1051 | 1074 | | |
1052 | 1075 | | |
1053 | 1076 | | |
| |||
2605 | 2628 | | |
2606 | 2629 | | |
2607 | 2630 | | |
2608 | | - | |
| 2631 | + | |
| 2632 | + | |
| 2633 | + | |
| 2634 | + | |
| 2635 | + | |
| 2636 | + | |
| 2637 | + | |
| 2638 | + | |
| 2639 | + | |
| 2640 | + | |
| 2641 | + | |
2609 | 2642 | | |
2610 | 2643 | | |
2611 | 2644 | | |
| |||
4063 | 4096 | | |
4064 | 4097 | | |
4065 | 4098 | | |
| 4099 | + | |
| 4100 | + | |
| 4101 | + | |
| 4102 | + | |
| 4103 | + | |
| 4104 | + | |
| 4105 | + | |
| 4106 | + | |
| 4107 | + | |
| 4108 | + | |
| 4109 | + | |
4066 | 4110 | | |
4067 | 4111 | | |
4068 | 4112 | | |
| |||
Lines changed: 18 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3073 | 3073 | | |
3074 | 3074 | | |
3075 | 3075 | | |
| 3076 | + | |
| 3077 | + | |
| 3078 | + | |
| 3079 | + | |
| 3080 | + | |
| 3081 | + | |
| 3082 | + | |
| 3083 | + | |
| 3084 | + | |
| 3085 | + | |
| 3086 | + | |
| 3087 | + | |
| 3088 | + | |
| 3089 | + | |
| 3090 | + | |
| 3091 | + | |
| 3092 | + | |
| 3093 | + | |
3076 | 3094 | | |
3077 | 3095 | | |
3078 | 3096 | | |
| |||
0 commit comments