|
|
|
|
@ -159,7 +159,8 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
invalid_self_placement: {
|
|
|
|
|
code: 'invalid-self-placement',
|
|
|
|
|
message: '<svelte:self> components can only exist inside {#if} blocks, {#each} blocks, or slots passed to components'
|
|
|
|
|
message:
|
|
|
|
|
'<svelte:self> components can only exist inside {#if} blocks, {#each} blocks, or slots passed to components'
|
|
|
|
|
},
|
|
|
|
|
invalid_script_instance: {
|
|
|
|
|
code: 'invalid-script',
|
|
|
|
|
@ -187,7 +188,9 @@ export default {
|
|
|
|
|
* @returns {{ code: string; message: string; }}
|
|
|
|
|
*/ (tags, match) => ({
|
|
|
|
|
code: 'invalid-tag-name',
|
|
|
|
|
message: `Valid <svelte:...> tag names are ${list(tags)}${match ? ' (did you mean ' + match + '?)' : ''}`
|
|
|
|
|
message: `Valid <svelte:...> tag names are ${list(tags)}${
|
|
|
|
|
match ? ' (did you mean ' + match + '?)' : ''
|
|
|
|
|
}`
|
|
|
|
|
}),
|
|
|
|
|
invalid_then_placement_unclosed_block: /**
|
|
|
|
|
* @returns {{ code: string; message: string; }} */ (block) => ({
|
|
|
|
|
@ -263,7 +266,3 @@ export default {
|
|
|
|
|
message: 'Expected identifier or destructure pattern'
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|