forked from sveltejs/eslint-plugin-svelte
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest01-errors.json
44 lines (44 loc) · 1.27 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
39
40
41
42
43
44
[
{
"message": "Prefer destructuring in reactive statements",
"line": 3,
"column": 8,
"suggestions": [
{
"desc": "Use destructuring to get finer-grained redraws",
"messageId": "suggestDestructuring",
"output": "<!-- prettier-ignore -->\n<script>\n $: ({ info } = foo)\n $: bar = foo.something\n $: baz = foo.bar.baz\n $: qux = foo[bar]\n $: dux = foo.baz().bar\n</script>\n"
}
]
},
{
"message": "Prefer destructuring in reactive statements",
"line": 4,
"column": 8,
"suggestions": [
{
"desc": "Use destructuring to get finer-grained redraws",
"messageId": "suggestDestructuring",
"output": "<!-- prettier-ignore -->\n<script>\n $: info = foo.info\n $: ({ something: bar } = foo)\n $: baz = foo.bar.baz\n $: qux = foo[bar]\n $: dux = foo.baz().bar\n</script>\n"
}
]
},
{
"message": "Prefer destructuring in reactive statements",
"line": 5,
"column": 8,
"suggestions": null
},
{
"message": "Prefer destructuring in reactive statements",
"line": 6,
"column": 8,
"suggestions": null
},
{
"message": "Prefer destructuring in reactive statements",
"line": 7,
"column": 8,
"suggestions": null
}
]