update error message

pull/7451/head
tanhauhau 4 years ago
parent 639c2fb9ea
commit d593533141

@ -260,7 +260,7 @@ export default {
}, },
invalid_const_placement: { invalid_const_placement: {
code: 'invalid-const-placement', code: 'invalid-const-placement',
message: '{@const} must be the immediate child of {#if}, {#else}, {#each}, {:then}, {:catch}, <svelte:fragment> or <Component>' message: '{@const} must be the immediate child of {#if}, {:else if}, {:else}, {#each}, {:then}, {:catch}, <svelte:fragment> or <Component>'
}, },
invalid_const_declaration: (name: string) => ({ invalid_const_declaration: (name: string) => ({
code: 'invalid-const-declaration', code: 'invalid-const-declaration',

@ -1,7 +1,7 @@
[ [
{ {
"code": "invalid-const-placement", "code": "invalid-const-placement",
"message": "{@const} must be the immediate child of {#if}, {#else}, {#each}, {:then}, {:catch}, <svelte:fragment> or <Component>", "message": "{@const} must be the immediate child of {#if}, {:else if}, {:else}, {#each}, {:then}, {:catch}, <svelte:fragment> or <Component>",
"start": { "line": 5, "column": 0, "character": 36 }, "start": { "line": 5, "column": 0, "character": 36 },
"end": { "line": 5, "column": 18, "character": 54 }, "end": { "line": 5, "column": 18, "character": 54 },
"pos": 36 "pos": 36

@ -1,7 +1,7 @@
[ [
{ {
"code": "invalid-const-placement", "code": "invalid-const-placement",
"message": "{@const} must be the immediate child of {#if}, {#else}, {#each}, {:then}, {:catch}, <svelte:fragment> or <Component>", "message": "{@const} must be the immediate child of {#if}, {:else if}, {:else}, {#each}, {:then}, {:catch}, <svelte:fragment> or <Component>",
"start": { "line": 7, "column": 4, "character": 63 }, "start": { "line": 7, "column": 4, "character": 63 },
"end": { "line": 7, "column": 18, "character": 77 }, "end": { "line": 7, "column": 18, "character": 77 },
"pos": 63 "pos": 63

Loading…
Cancel
Save