diff --git a/.changeset/cyan-ducks-teach.md b/.changeset/cyan-ducks-teach.md new file mode 100644 index 000000000000..e33663e61da9 --- /dev/null +++ b/.changeset/cyan-ducks-teach.md @@ -0,0 +1,5 @@ +--- +'svelte': patch +--- + +fix: make messages more consistent diff --git a/packages/svelte/messages/compile-errors/template.md b/packages/svelte/messages/compile-errors/template.md index 5c7b620125fa..df80eadbe437 100644 --- a/packages/svelte/messages/compile-errors/template.md +++ b/packages/svelte/messages/compile-errors/template.md @@ -174,7 +174,7 @@ ## mixed_event_handler_syntaxes -> Mixing old (on:%name%) and new syntaxes for event handling is not allowed. Use only the on%name% syntax. +> Mixing old (on:%name%) and new syntaxes for event handling is not allowed. Use only the on%name% syntax ## node_invalid_placement @@ -230,7 +230,7 @@ ## slot_snippet_conflict -> Cannot use `` syntax and `{@render ...}` tags in the same component. Migrate towards `{@render ...}` tags completely. +> Cannot use `` syntax and `{@render ...}` tags in the same component. Migrate towards `{@render ...}` tags completely ## snippet_conflict diff --git a/packages/svelte/messages/compile-warnings/a11y.md b/packages/svelte/messages/compile-warnings/a11y.md index 26023d28f356..490a01569399 100644 --- a/packages/svelte/messages/compile-warnings/a11y.md +++ b/packages/svelte/messages/compile-warnings/a11y.md @@ -20,7 +20,7 @@ ## a11y_click_events_have_key_events -> Visible, non-interactive elements with a click event must be accompanied by a keyboard event handler. Consider whether an interactive element such as `