From 35108ca020cdd8ca0a9a2848b0515cb7a296300e Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Wed, 24 Apr 2024 18:59:40 -0400 Subject: [PATCH] alphabetise --- .../svelte/messages/client-errors/effects.md | 2 +- .../messages/client-errors/lifecycle.md | 8 +- .../compile-errors/compiler_options.md | 2 +- .../svelte/messages/compile-errors/css.md | 30 ++-- .../compile-errors/legacy_reactivity.md | 2 +- .../svelte/messages/compile-errors/parse.md | 120 +++++++------- .../svelte/messages/compile-errors/runes.md | 84 +++++----- .../messages/compile-errors/template.md | 60 +++---- .../messages/compile-errors/variables.md | 16 +- .../svelte/messages/compile-warnings/a11y.md | 156 +++++++++--------- .../messages/compile-warnings/attributes.md | 2 +- .../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 | 20 +-- .../svelte/messages/compile-warnings/misc.md | 2 +- .../messages/compile-warnings/options.md | 8 +- .../messages/compile-warnings/performance.md | 2 +- .../svelte/messages/compile-warnings/runes.md | 20 +-- .../svelte/messages/compile-warnings/state.md | 8 +- .../messages/shared-warnings/warnings.md | 2 +- .../svelte/scripts/process-messages/index.js | 10 ++ 22 files changed, 285 insertions(+), 275 deletions(-) diff --git a/packages/svelte/messages/client-errors/effects.md b/packages/svelte/messages/client-errors/effects.md index 88847ea0d5..633d53e29f 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 \ No newline at end of file +> 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 diff --git a/packages/svelte/messages/client-errors/lifecycle.md b/packages/svelte/messages/client-errors/lifecycle.md index 98b644d8ec..f4e39bff5f 100644 --- a/packages/svelte/messages/client-errors/lifecycle.md +++ b/packages/svelte/messages/client-errors/lifecycle.md @@ -1,7 +1,7 @@ -## lifecycle_outside_component +## lifecycle_legacy_only -> `%name%(...)` can only be used during component initialisation +> `%name%(...)` cannot be used in runes mode -## lifecycle_legacy_only +## lifecycle_outside_component -> `%name%(...)` cannot be used in runes mode \ No newline at end of file +> `%name%(...)` can only be used during component initialisation diff --git a/packages/svelte/messages/compile-errors/compiler_options.md b/packages/svelte/messages/compile-errors/compiler_options.md index b2702a1a7e..e6c8d65ddd 100644 --- a/packages/svelte/messages/compile-errors/compiler_options.md +++ b/packages/svelte/messages/compile-errors/compiler_options.md @@ -4,4 +4,4 @@ ## removed_compiler_option -> Invalid compiler option: %msg% \ No newline at end of file +> Invalid compiler option: %msg% diff --git a/packages/svelte/messages/compile-errors/css.md b/packages/svelte/messages/compile-errors/css.md index 9a31300786..9b4a2bdf82 100644 --- a/packages/svelte/messages/compile-errors/css.md +++ b/packages/svelte/messages/compile-errors/css.md @@ -1,14 +1,10 @@ -## invalid_css_empty_declaration +## invalid_css_declaration > Declaration cannot be empty -## invalid_css_global_block_list - -> A :global {...} block cannot be part of a selector list with more than one item - -## invalid_css_global_block_modifier +## invalid_css_empty_declaration -> A :global {...} block cannot modify an existing selector +> Declaration cannot be empty ## invalid_css_global_block_combinator @@ -18,6 +14,14 @@ > A :global {...} block can only contain rules, not declarations +## invalid_css_global_block_list + +> 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 + ## invalid_css_global_placement > :global(...) can be at the start or end of a selector sequence, but not in the middle @@ -30,22 +34,18 @@ > :global(...) must not contain type or universal selectors when used in a compound selector -## invalid_css_type_selector_placement +## invalid_css_identifier -> :global(...) must not be followed with a type selector +> Expected a valid CSS identifier ## invalid_css_selector > Invalid selector -## invalid_css_identifier +## invalid_css_type_selector_placement -> Expected a valid CSS identifier +> :global(...) must not be followed with a type selector ## invalid_nesting_selector > Nesting selectors can only be used inside a rule - -## invalid_css_declaration - -> Declaration cannot be empty \ No newline at end of file diff --git a/packages/svelte/messages/compile-errors/legacy_reactivity.md b/packages/svelte/messages/compile-errors/legacy_reactivity.md index cc4504b08e..7d7c20628e 100644 --- a/packages/svelte/messages/compile-errors/legacy_reactivity.md +++ b/packages/svelte/messages/compile-errors/legacy_reactivity.md @@ -1,3 +1,3 @@ ## cyclical_reactive_declaration -> Cyclical dependency detected: %cycle% \ No newline at end of file +> Cyclical dependency detected: %cycle% diff --git a/packages/svelte/messages/compile-errors/parse.md b/packages/svelte/messages/compile-errors/parse.md index 3067be1d46..b8fa1444ea 100644 --- a/packages/svelte/messages/compile-errors/parse.md +++ b/packages/svelte/messages/compile-errors/parse.md @@ -1,6 +1,18 @@ -## element_unclosed +## block_duplicate_clause -> `<%name%>` was left open +> %name% cannot appear more than once within a block + +## block_invalid_continuation_placement + +> {:...} block is invalid at this position (did you forget to close the preceeding element or block?) + +## block_invalid_elseif + +> 'elseif' should be 'else if' + +## block_invalid_placement + +> {#%name% ...} block cannot be %location% ## block_unclosed @@ -10,45 +22,45 @@ > Unexpected block closing tag -## unexpected_eof +## const_tag_invalid_expression -> Unexpected end of input +> {@const ...} must be an assignment -## js_parse_error +## debug_tag_invalid_arguments -> %message% +> {@debug ...} arguments must be identifiers, not arbitrary expressions -## expected_token +## directive_invalid_value -> Expected token %token% +> Directive value must be a JavaScript expression enclosed in curly braces -## unexpected_reserved_word +## directive_missing_name -> '%word%' is a reserved word in JavaScript and cannot be used here +> `%type%` name cannot be empty -## expected_whitespace +## dollar_binding_invalid -> Expected whitespace +> The $ name is reserved, and cannot be used for variables and imports -## expected_pattern +## dollar_prefix_invalid -> Expected identifier or destructure pattern +> The $ prefix is reserved, and cannot be used for variables and imports -## script_invalid_context +## element_invalid_closing_tag -> If the context attribute is supplied, its value must be "module" +> `` attempted to close an element that was not open -## block_invalid_elseif +## element_invalid_closing_tag_autoclosed -> 'elseif' should be 'else if' +> `` attempted to close element that was already automatically closed by `<%reason%>` (cannot nest `<%reason%>` inside `<%name%>`) -## block_invalid_continuation_placement +## element_unclosed -> {:...} block is invalid at this position (did you forget to close the preceeding element or block?) +> `<%name%>` was left open -## block_duplicate_clause +## expected_attribute_value -> %name% cannot appear more than once within a block +> Expected attribute value ## expected_block_type @@ -58,49 +70,45 @@ > Expected an identifier -## debug_tag_invalid_arguments - -> {@debug ...} arguments must be identifiers, not arbitrary expressions - -## const_tag_invalid_expression +## expected_pattern -> {@const ...} must be an assignment +> Expected identifier or destructure pattern -## block_invalid_placement +## expected_token -> {#%name% ...} block cannot be %location% +> Expected token %token% -## tag_invalid_placement +## expected_whitespace -> {@%name% ...} tag cannot be %location% +> Expected whitespace -## expected_attribute_value +## js_parse_error -> Expected attribute value +> %message% -## directive_invalid_value +## render_tag_invalid_call_expression -> Directive value must be a JavaScript expression enclosed in curly braces +> Calling a snippet function using apply, bind or call is not allowed -## directive_missing_name +## render_tag_invalid_expression -> `%type%` name cannot be empty +> `{@render ...}` tags can only contain call expressions -## element_invalid_closing_tag +## render_tag_invalid_spread_argument -> `` attempted to close an element that was not open +> cannot use spread arguments in `{@render ...}` tags -## element_invalid_closing_tag_autoclosed +## script_duplicate -> `` attempted to close element that was already automatically closed by `<%reason%>` (cannot nest `<%reason%>` inside `<%name%>`) +> A component can have a single top-level `