Skip to content

Commit 905f152

Browse files
committed
chore(prefer-svelte-reactivity): added tests
1 parent b8966e7 commit 905f152

File tree

141 files changed

+916
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

141 files changed

+916
-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 mutable instance of the built-in Date class. Use SvelteDate instead.
2+
line: 2
3+
column: 20
4+
suggestions: null
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<script>
2+
const variable = new Date(8.64e15);
3+
4+
variable.setDate(24);
5+
</script>
6+
7+
{variable}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
- message: Found a mutable instance of the built-in Date class. Use SvelteDate instead.
2+
line: 2
3+
column: 20
4+
suggestions: null
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<script>
2+
const variable = new Date(8.64e15);
3+
4+
variable.setFullYear(1968);
5+
</script>
6+
7+
{variable}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
- message: Found a mutable instance of the built-in Date class. Use SvelteDate instead.
2+
line: 2
3+
column: 20
4+
suggestions: null
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<script>
2+
const variable = new Date(8.64e15);
3+
4+
variable.setFullYear(1968, 10);
5+
</script>
6+
7+
{variable}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
- message: Found a mutable instance of the built-in Date class. Use SvelteDate instead.
2+
line: 2
3+
column: 20
4+
suggestions: null
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<script>
2+
const variable = new Date(8.64e15);
3+
4+
variable.setFullYear(1968, 10, 3);
5+
</script>
6+
7+
{variable}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
- message: Found a mutable instance of the built-in Date class. Use SvelteDate instead.
2+
line: 2
3+
column: 20
4+
suggestions: null

0 commit comments

Comments
 (0)