Skip to content

Commit 26ce06b

Browse files
committed
test(require-event-prefix): added tests
1 parent 62d96cd commit 26ce06b

19 files changed

+121
-0
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"svelte": ">=5.0.0"
3+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"options": [{ "checkAsyncFunctions": true }]
3+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"svelte": ">=5.0.0"
3+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
- message: Component event name must start with "on".
2+
line: 3
3+
column: 5
4+
suggestions: null
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<script lang="ts">
2+
interface Props {
3+
custom: () => Promise<void>;
4+
}
5+
6+
let { custom }: Props = $props();
7+
8+
void custom();
9+
</script>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
- message: Component event name must start with "on".
2+
line: 3
3+
column: 5
4+
suggestions: null
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<script lang="ts">
2+
interface Props {
3+
custom(): Promise<void>;
4+
}
5+
6+
let { custom }: Props = $props();
7+
8+
void custom();
9+
</script>
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
- message: Component event name must start with "on".
2+
line: 3
3+
column: 5
4+
suggestions: null
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<script lang="ts">
2+
interface Props {
3+
custom: () => void;
4+
}
5+
6+
let { custom }: Props = $props();
7+
8+
custom();
9+
</script>
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
- message: Component event name must start with "on".
2+
line: 2
3+
column: 21
4+
suggestions: null

0 commit comments

Comments
 (0)