From e89c290f562012299e24b99735dc4204c9e4bc83 Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Wed, 24 Apr 2024 09:49:57 -0400 Subject: [PATCH] put messages in blockquotes --- .../svelte/messages/client-errors/effects.md | 2 +- .../messages/client-errors/lifecycle.md | 4 +- .../messages/client-warnings/warnings.md | 4 +- .../messages/compile-errors/attributes.md | 30 +++---- .../messages/compile-errors/bindings.md | 18 ++-- .../compile-errors/compiler_options.md | 4 +- .../messages/compile-errors/components.md | 2 +- .../messages/compile-errors/const_tag.md | 2 +- .../svelte/messages/compile-errors/css.md | 26 +++--- .../messages/compile-errors/elements.md | 14 +-- .../compile-errors/legacy_reactivity.md | 2 +- .../svelte/messages/compile-errors/parse.md | 74 ++++++++-------- .../svelte/messages/compile-errors/runes.md | 48 +++++------ .../svelte/messages/compile-errors/slots.md | 16 ++-- .../compile-errors/special_elements.md | 50 +++++------ .../messages/compile-errors/variables.md | 10 +-- .../svelte/messages/compile-warnings/a11y.md | 86 +++++++++---------- .../messages/compile-warnings/attributes.md | 8 +- .../svelte/messages/compile-warnings/block.md | 2 +- .../messages/compile-warnings/components.md | 2 +- .../svelte/messages/compile-warnings/css.md | 2 +- .../messages/compile-warnings/legacy.md | 10 +-- .../svelte/messages/compile-warnings/misc.md | 2 +- .../messages/compile-warnings/options.md | 12 +-- .../messages/compile-warnings/performance.md | 4 +- .../svelte/messages/compile-warnings/runes.md | 10 +-- .../svelte/messages/compile-warnings/state.md | 4 +- .../messages/shared-warnings/warnings.md | 2 +- .../svelte/scripts/process-messages/index.js | 6 +- 29 files changed, 230 insertions(+), 226 deletions(-) diff --git a/packages/svelte/messages/client-errors/effects.md b/packages/svelte/messages/client-errors/effects.md index f720575c49ee..88847ea0d537 100644 --- a/packages/svelte/messages/client-errors/effects.md +++ b/packages/svelte/messages/client-errors/effects.md @@ -1,3 +1,3 @@ ## effect_update_depth_exceeded -Maximum update depth exceeded. This can happen when a reactive block or effect repeatedly sets a new value. Svelte limits the number of nested updates to prevent infinite loops +> Maximum update depth exceeded. This can happen when a reactive block or effect repeatedly sets a new value. Svelte limits the number of nested updates to prevent infinite loops \ No newline at end of file diff --git a/packages/svelte/messages/client-errors/lifecycle.md b/packages/svelte/messages/client-errors/lifecycle.md index 7b1ce19a0e50..98b644d8ecc6 100644 --- a/packages/svelte/messages/client-errors/lifecycle.md +++ b/packages/svelte/messages/client-errors/lifecycle.md @@ -1,7 +1,7 @@ ## lifecycle_outside_component -`%name%(...)` can only be used during component initialisation +> `%name%(...)` can only be used during component initialisation ## lifecycle_legacy_only -`%name%(...)` cannot be used in runes mode +> `%name%(...)` cannot be used in runes mode \ No newline at end of file diff --git a/packages/svelte/messages/client-warnings/warnings.md b/packages/svelte/messages/client-warnings/warnings.md index a3e2b6e3fece..643de0ed1d53 100644 --- a/packages/svelte/messages/client-warnings/warnings.md +++ b/packages/svelte/messages/client-warnings/warnings.md @@ -1,7 +1,7 @@ ## lifecycle_double_unmount -Tried to unmount a component that was not mounted +> Tried to unmount a component that was not mounted ## ownership_invalid_binding -%parent% passed a value to %child% with `bind:`, but the value is owned by %owner%. Consider creating a binding between %owner% and %parent% +> %parent% passed a value to %child% with `bind:`, but the value is owned by %owner%. Consider creating a binding between %owner% and %parent% \ No newline at end of file diff --git a/packages/svelte/messages/compile-errors/attributes.md b/packages/svelte/messages/compile-errors/attributes.md index 9501080ee084..8e27e7407603 100644 --- a/packages/svelte/messages/compile-errors/attributes.md +++ b/packages/svelte/messages/compile-errors/attributes.md @@ -1,59 +1,59 @@ ## empty_attribute_shorthand -Attribute shorthand cannot be empty +> Attribute shorthand cannot be empty ## duplicate_attribute -Attributes need to be unique +> Attributes need to be unique ## invalid_event_attribute_value -Event attribute must be a JavaScript expression, not a string +> Event attribute must be a JavaScript expression, not a string ## invalid_attribute_name -'%name%' is not a valid attribute name +> '%name%' is not a valid attribute name ## animation_invalid_placement -An element that uses the `animate:` directive must be the only child of a keyed `{#each ...}` block +> An element that uses the `animate:` directive must be the only child of a keyed `{#each ...}` block ## animation_missing_key -An element that uses the `animate:` directive must be the only child of a keyed `{#each ...}` block. Did you forget to add a key to your each block? +> An element that uses the `animate:` directive must be the only child of a keyed `{#each ...}` block. Did you forget to add a key to your each block? ## animation_duplicate -An element can only have one 'animate' directive +> An element can only have one 'animate' directive ## invalid_event_modifier -Valid event modifiers are %list% +> Valid event modifiers are %list% ## invalid_component_event_modifier -Event modifiers other than 'once' can only be used on DOM elements +> Event modifiers other than 'once' can only be used on DOM elements ## invalid_event_modifier_combination -The '%modifier1%' and '%modifier2%' modifiers cannot be used together +> The '%modifier1%' and '%modifier2%' modifiers cannot be used together ## transition_duplicate -Cannot use multiple `%type%:` directives on a single element +> Cannot use multiple `%type%:` directives on a single element ## transition_conflict -Cannot use `%type%:` alongside existing `%existing%:` directive +> Cannot use `%type%:` alongside existing `%existing%:` directive ## invalid_let_directive_placement -`let:` directive at invalid position +> `let:` directive at invalid position ## invalid_style_directive_modifier -Invalid 'style:' modifier. Valid modifiers are: 'important' +> Invalid 'style:' modifier. Valid modifiers are: 'important' ## invalid_sequence_expression -Sequence expressions are not allowed as attribute/directive values in runes mode, unless wrapped in parentheses +> Sequence expressions are not allowed as attribute/directive values in runes mode, unless wrapped in parentheses \ No newline at end of file diff --git a/packages/svelte/messages/compile-errors/bindings.md b/packages/svelte/messages/compile-errors/bindings.md index 5e88c5890ac1..9afa81d1f20f 100644 --- a/packages/svelte/messages/compile-errors/bindings.md +++ b/packages/svelte/messages/compile-errors/bindings.md @@ -1,35 +1,35 @@ ## invalid_binding_expression -Can only bind to an Identifier or MemberExpression +> Can only bind to an Identifier or MemberExpression ## invalid_binding_value -Can only bind to state or props +> Can only bind to state or props ## bind_invalid_target -`bind:%name%` can only be used with %elements% +> `bind:%name%` can only be used with %elements% ## bind_invalid -`bind:%name%` is not a valid binding +> `bind:%name%` is not a valid binding ## bind_invalid_detailed -`bind:%name%` is not a valid binding. %explanation% +> `bind:%name%` is not a valid binding. %explanation% ## invalid_type_attribute -'type' attribute must be a static text value if input uses two-way binding +> 'type' attribute must be a static text value if input uses two-way binding ## invalid_multiple_attribute -'multiple' attribute must be static if select uses two-way binding +> 'multiple' attribute must be static if select uses two-way binding ## missing_contenteditable_attribute -'contenteditable' attribute is required for textContent, innerHTML and innerText two-way bindings +> 'contenteditable' attribute is required for textContent, innerHTML and innerText two-way bindings ## dynamic_contenteditable_attribute -'contenteditable' attribute cannot be dynamic if element uses two-way binding +> 'contenteditable' attribute cannot be dynamic if element uses two-way binding \ No newline at end of file diff --git a/packages/svelte/messages/compile-errors/compiler_options.md b/packages/svelte/messages/compile-errors/compiler_options.md index 761d74c72a39..b2702a1a7ee0 100644 --- a/packages/svelte/messages/compile-errors/compiler_options.md +++ b/packages/svelte/messages/compile-errors/compiler_options.md @@ -1,7 +1,7 @@ ## invalid_compiler_option -Invalid compiler option: %msg% +> Invalid compiler option: %msg% ## removed_compiler_option -Invalid compiler option: %msg% \ No newline at end of file +> Invalid compiler option: %msg% \ No newline at end of file diff --git a/packages/svelte/messages/compile-errors/components.md b/packages/svelte/messages/compile-errors/components.md index 88a31a81c6ca..651c80d73387 100644 --- a/packages/svelte/messages/compile-errors/components.md +++ b/packages/svelte/messages/compile-errors/components.md @@ -1,3 +1,3 @@ ## invalid_component_directive -This type of directive is not valid on components \ No newline at end of file +> This type of directive is not valid on components \ No newline at end of file diff --git a/packages/svelte/messages/compile-errors/const_tag.md b/packages/svelte/messages/compile-errors/const_tag.md index de8a8ca90965..720aba986060 100644 --- a/packages/svelte/messages/compile-errors/const_tag.md +++ b/packages/svelte/messages/compile-errors/const_tag.md @@ -1,3 +1,3 @@ ## invalid_const_placement -{@const} must be the immediate child of {#snippet}, {#if}, {:else if}, {:else}, {#each}, {:then}, {:catch}, or \ No newline at end of file +> {@const} must be the immediate child of {#snippet}, {#if}, {:else if}, {:else}, {#each}, {:then}, {:catch}, or \ No newline at end of file diff --git a/packages/svelte/messages/compile-errors/css.md b/packages/svelte/messages/compile-errors/css.md index 33331cfac6ee..9a3130078607 100644 --- a/packages/svelte/messages/compile-errors/css.md +++ b/packages/svelte/messages/compile-errors/css.md @@ -1,51 +1,51 @@ ## invalid_css_empty_declaration -Declaration cannot be empty +> Declaration cannot be empty ## invalid_css_global_block_list -A :global {...} block cannot be part of a selector list with more than one item +> A :global {...} block cannot be part of a selector list with more than one item ## invalid_css_global_block_modifier -A :global {...} block cannot modify an existing selector +> A :global {...} block cannot modify an existing selector ## invalid_css_global_block_combinator -A :global {...} block cannot follow a %name% combinator +> A :global {...} block cannot follow a %name% combinator ## invalid_css_global_block_declaration -A :global {...} block can only contain rules, not declarations +> A :global {...} block can only contain rules, not declarations ## invalid_css_global_placement -:global(...) can be at the start or end of a selector sequence, but not in the middle +> :global(...) can be at the start or end of a selector sequence, but not in the middle ## invalid_css_global_selector -:global(...) must contain exactly one selector +> :global(...) must contain exactly one selector ## invalid_css_global_selector_list -:global(...) must not contain type or universal selectors when used in a compound selector +> :global(...) must not contain type or universal selectors when used in a compound selector ## invalid_css_type_selector_placement -:global(...) must not be followed with a type selector +> :global(...) must not be followed with a type selector ## invalid_css_selector -Invalid selector +> Invalid selector ## invalid_css_identifier -Expected a valid CSS identifier +> Expected a valid CSS identifier ## invalid_nesting_selector -Nesting selectors can only be used inside a rule +> Nesting selectors can only be used inside a rule ## invalid_css_declaration -Declaration cannot be empty +> Declaration cannot be empty \ No newline at end of file diff --git a/packages/svelte/messages/compile-errors/elements.md b/packages/svelte/messages/compile-errors/elements.md index 466a26a7ac6a..2686f2370d9d 100644 --- a/packages/svelte/messages/compile-errors/elements.md +++ b/packages/svelte/messages/compile-errors/elements.md @@ -1,27 +1,27 @@ ## invalid_textarea_content -A `