Skip to content

Commit 9a9ba19

Browse files
authored
fix: update svelte-eslint-parser to v0.19.0 (#274)
* fix: update svelte-eslint-parser to v0.19.0 * Create good-poets-happen.md * test: update test cases
1 parent d1ce8e0 commit 9a9ba19

File tree

6 files changed

+8
-15
lines changed

6 files changed

+8
-15
lines changed

.changeset/good-poets-happen.md

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"eslint-plugin-svelte": minor
3+
---
4+
5+
fix: update svelte-eslint-parser to v0.19.0. See [release note](https://github.com/ota-meshi/svelte-eslint-parser/releases/tag/v0.19.0)
6+

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
"postcss-load-config": "^3.1.4",
7474
"postcss-safe-parser": "^6.0.0",
7575
"sourcemap-codec": "^1.4.8",
76-
"svelte-eslint-parser": "^0.18.0"
76+
"svelte-eslint-parser": "^0.19.0"
7777
},
7878
"devDependencies": {
7979
"@1stg/browserslist-config": "^1.2.3",

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)