Skip to content

Commit d0d56fc

Browse files
committed
test: update test cases
1 parent fcb1afa commit d0d56fc

File tree

4 files changed

+1
-14
lines changed

4 files changed

+1
-14
lines changed

tests/fixtures/rules/@typescript-eslint/no-unnecessary-condition/invalid/binary-expression01-errors.yaml

-4
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,3 @@
22
line: 4
33
column: 13
44
suggestions: null
5-
- message: Unnecessary conditional, both sides of the expression are literal values.
6-
line: 8
7-
column: 9
8-
suggestions: null

tests/fixtures/rules/@typescript-eslint/no-unnecessary-condition/invalid/nullish-coalescing01-errors.yaml

-5
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,3 @@
33
line: 5
44
column: 13
55
suggestions: null
6-
- message: Unnecessary conditional, left-hand side of `??` operator is always
7-
`null` or `undefined`.
8-
line: 9
9-
column: 9
10-
suggestions: null

tests/fixtures/rules/@typescript-eslint/no-unnecessary-condition/invalid/optional-chaining01-errors.yaml

-4
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,3 @@
22
line: 4
33
column: 16
44
suggestions: null
5-
- message: Unnecessary optional chain on a non-nullish value.
6-
line: 8
7-
column: 12
8-
suggestions: null

tests/fixtures/rules/@typescript-eslint/no-unnecessary-condition/invalid/optional-chaining01-output.svelte

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@
55
$: b = foo?.length
66
$: {
77
let bar: null | string = "abc"
8-
c = bar.length
8+
c = bar?.length
99
}
1010
</script>

0 commit comments

Comments
 (0)