Skip to content

Commit 5bd2622

Browse files
committed
fix stupid trailing whitespace
1 parent a5dffb2 commit 5bd2622

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

crates/biome_js_analyze/tests/specs/correctness/useExhaustiveDependencies/reportMissingDependenciesArray.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import {useEffect} from "react";
22

3-
// should not report errors for the unused `b` when the reportMissingDependenciesArray option is false
3+
// should not report errors for unused `a` when the reportMissingDependenciesArray option is false
44
function ReportMissingDependenciesArray() {
55
const [a] = useState(1);
66

crates/biome_js_analyze/tests/specs/correctness/useExhaustiveDependencies/reportMissingDependenciesArray.js.snap

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ expression: reportMissingDependenciesArray.js
66
```js
77
import {useEffect} from "react";
88
9-
// should not report errors for the unused `b` when the reportMissingDependenciesArray option is false
9+
// should not report errors for unused `a` when the reportMissingDependenciesArray option is false
1010
function ReportMissingDependenciesArray() {
1111
const [a] = useState(1);
1212
@@ -24,16 +24,16 @@ function ReportMissingDependenciesArray() {
2424
reportMissingDependenciesArray.js:7:5 lint/correctness/useExhaustiveDependencies ━━━━━━━━━━━━━━━━━━━
2525
2626
× This hook does not have a dependencies array.
27-
27+
2828
5 │ const [a] = useState(1);
29-
6 │
29+
6 │
3030
> 7 │ useEffect(() => {
3131
^^^^^^^^^
3232
8console.log(a);
3333
9});
34-
34+
3535
i React relies on hook dependencies to determine when to re-compute Effects.
3636
Add an explicit array (i.e. []) and list the callback's dependencies inside it.
37-
37+
3838
3939
```

0 commit comments

Comments
 (0)