Commit c232a6f
fix(eslint-plugin-query): handle nullish coalescing operator in exhaustive-deps rule (#8146)
* fix: handle nullish coalescing operator in exhaustive-deps rule
Ensure that the exhaustive-deps rule correctly handles cases where the nullish coalescing operator (??) is used in query functions.
Example test case:
* ci: apply automated fixes
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>1 parent 495b086 commit c232a6f
File tree
2 files changed
+10
-1
lines changed- packages/eslint-plugin-query/src
- __tests__
- rules/exhaustive-deps
2 files changed
+10
-1
lines changedLines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
413 | 413 | | |
414 | 414 | | |
415 | 415 | | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
416 | 425 | | |
417 | 426 | | |
418 | 427 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
118 | | - | |
| 118 | + | |
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
| |||
0 commit comments