-
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: wrong store access type information (#204)
* fix: wrong store access type information * Create grumpy-avocados-behave.md * test: update new fixture * test: ignore ts-eslint v4
- Loading branch information
Showing
11 changed files
with
16,143 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"svelte-eslint-parser": patch | ||
--- | ||
|
||
fix: wrong store access type information |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<script lang="ts"> | ||
import { Writable, Readable } from 'svelte/store'; | ||
let maybeUndef: Writable<number> | undefined | ||
let maybeNull: Readable<string> | null | ||
let maybeNullAndStr: Readable<boolean> | null | string | ||
export function fn() { | ||
$maybeUndef; | ||
$maybeNull; | ||
$maybeNullAndStr; | ||
} | ||
</script> | ||
{$maybeUndef} | ||
{$maybeNull} | ||
{$maybeNullAndStr} |
20 changes: 20 additions & 0 deletions
20
tests/fixtures/parser/ast/ts-store03-no-unused-expressions-result.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
[ | ||
{ | ||
"ruleId": "no-unused-expressions", | ||
"code": "$maybeUndef;", | ||
"line": 8, | ||
"column": 3 | ||
}, | ||
{ | ||
"ruleId": "no-unused-expressions", | ||
"code": "$maybeNull;", | ||
"line": 9, | ||
"column": 3 | ||
}, | ||
{ | ||
"ruleId": "no-unused-expressions", | ||
"code": "$maybeNullAndStr;", | ||
"line": 10, | ||
"column": 3 | ||
} | ||
] |
Oops, something went wrong.