Skip to content

Commit 31d0625

Browse files
committed
chore(prefer-svelte-reactivity): added tests
1 parent a0f5c17 commit 31d0625

28 files changed

+169
-0
lines changed
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: Found a usage of the built-in Date class. Use a SvelteDate instead.
2+
line: 2
3+
column: 20
4+
suggestions: null
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<script>
2+
const variable = new Date(8.64e15);
3+
</script>
4+
5+
{variable}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
- message: Found a usage of the built-in Map class. Use a SvelteMap instead.
2+
line: 2
3+
column: 20
4+
suggestions: null
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<script>
2+
const variable = new Map([[1, "one"], [2, "two"]]);
3+
</script>
4+
5+
{variable}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
- message: Found a usage of the built-in Set class. Use a SvelteSet instead.
2+
line: 2
3+
column: 20
4+
suggestions: null
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<script>
2+
const variable = new Set([1, 2, 1, 3, 3]);
3+
</script>
4+
5+
{variable}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
- message: Found a usage of the built-in URLSearchParams class. Use a
2+
SvelteURLSearchParams instead.
3+
line: 2
4+
column: 20
5+
suggestions: null
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<script>
2+
const variable = new URLSearchParams("foo=1&bar=2");
3+
</script>
4+
5+
{variable}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
- message: Found a usage of the built-in URL class. Use a SvelteURL instead.
2+
line: 2
3+
column: 20
4+
suggestions: null

0 commit comments

Comments
 (0)