forked from sveltejs/eslint-plugin-svelte
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest01-errors.json
38 lines (38 loc) · 1.3 KB
/
test01-errors.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
[
{
"message": "Do not assign literal values inside reactive statements unless absolutely necessary.",
"line": 3,
"column": 5,
"suggestions": [
{
"desc": "Move the literal out of the reactive statement into an assignment",
"messageId": "fixReactiveLiteral",
"output": "<!-- prettier-ignore -->\n<script>\n let foo = \"foo\"\n $: bar = [];\n $: baz = {};\n</script>\n"
}
]
},
{
"message": "Do not assign literal values inside reactive statements unless absolutely necessary.",
"line": 4,
"column": 5,
"suggestions": [
{
"desc": "Move the literal out of the reactive statement into an assignment",
"messageId": "fixReactiveLiteral",
"output": "<!-- prettier-ignore -->\n<script>\n $: foo = \"foo\";\n let bar = []\n $: baz = {};\n</script>\n"
}
]
},
{
"message": "Do not assign literal values inside reactive statements unless absolutely necessary.",
"line": 5,
"column": 5,
"suggestions": [
{
"desc": "Move the literal out of the reactive statement into an assignment",
"messageId": "fixReactiveLiteral",
"output": "<!-- prettier-ignore -->\n<script>\n $: foo = \"foo\";\n $: bar = [];\n let baz = {}\n</script>\n"
}
]
}
]