alphabetise

pull/11327/head
Rich Harris 2 years ago
parent 8255ad6085
commit 35108ca020

@ -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

@ -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
> `%name%(...)` can only be used during component initialisation

@ -4,4 +4,4 @@
## removed_compiler_option
> Invalid compiler option: %msg%
> Invalid compiler option: %msg%

@ -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

@ -1,3 +1,3 @@
## cyclical_reactive_declaration
> Cyclical dependency detected: %cycle%
> Cyclical dependency detected: %cycle%

@ -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"
> `</%name%>` attempted to close an element that was not open
## block_invalid_elseif
## element_invalid_closing_tag_autoclosed
> 'elseif' should be 'else if'
> `</%name%>` 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
> `</%name%>` attempted to close an element that was not open
> cannot use spread arguments in `{@render ...}` tags
## element_invalid_closing_tag_autoclosed
## script_duplicate
> `</%name%>` attempted to close element that was already automatically closed by `<%reason%>` (cannot nest `<%reason%>` inside `<%name%>`)
> A component can have a single top-level `<script>` element and/or a single top-level `<script context="module">` element
## dollar_binding_invalid
## script_invalid_context
> The $ name is reserved, and cannot be used for variables and imports
> If the context attribute is supplied, its value must be "module"
## dollar_prefix_invalid
## snippet_invalid_rest_parameter
> The $ prefix is reserved, and cannot be used for variables and imports
> snippets do not support rest parameters; use an array instead
## store_invalid_subscription
@ -110,22 +118,14 @@
> A component can have a single top-level `<style>` element
## script_duplicate
> A component can have a single top-level `<script>` element and/or a single top-level `<script context="module">` element
## render_tag_invalid_expression
> `{@render ...}` tags can only contain call expressions
## render_tag_invalid_call_expression
## tag_invalid_placement
> Calling a snippet function using apply, bind or call is not allowed
> {@%name% ...} tag cannot be %location%
## render_tag_invalid_spread_argument
## unexpected_eof
> cannot use spread arguments in `{@render ...}` tags
> Unexpected end of input
## snippet_invalid_rest_parameter
## unexpected_reserved_word
> snippets do not support rest parameters; use an array instead
> '%word%' is a reserved word in JavaScript and cannot be used here

@ -1,66 +1,70 @@
## invalid_legacy_props
## conflicting_property_name
> Cannot use `$$props` in runes mode
> Cannot have a property and a component export with the same name
## invalid_legacy_rest_props
## duplicate_props_rune
> Cannot use `$$restProps` in runes mode
> Cannot use `$props()` more than once
## invalid_legacy_reactive_statement
## invalid_assignment
> `$:` is not allowed in runes mode, use `$derived` or `$effect` instead
> Cannot assign to %thing%
## invalid_legacy_export
## invalid_bindable_location
> Cannot use `export let` in runes mode — use $props instead
> `$bindable()` can only be used inside a `$props()` declaration
## invalid_rune_usage
## invalid_binding
> Cannot use %rune% rune in non-runes mode
> Cannot bind to %thing%
## invalid_state_export
## invalid_derived_call
> Cannot export state from a module if it is reassigned. Either export a function returning the state value or only mutate the state value's properties
> `$derived.call(...)` has been replaced with `$derived.by(...)`
## invalid_derived_export
> Cannot export derived state from a module. To expose the current derived value, export a function returning its value
## invalid_props_id
## invalid_each_assignment
> `$props()` can only be used with an object destructuring pattern
> Cannot reassign or bind to each block argument in runes mode. Use the array and index variables instead (e.g. `array[i] = value` instead of `entry = value`)
## invalid_props_pattern
## invalid_effect_location
> `$props()` assignment must not contain nested properties or computed keys
> `$effect()` can only be used as an expression statement
## invalid_props_location
## invalid_host_location
> `$props()` can only be used at the top level of components as a variable declaration initializer
> `$host()` can only be used inside custom element component instances
## invalid_bindable_location
## invalid_legacy_export
> `$bindable()` can only be used inside a `$props()` declaration
> Cannot use `export let` in runes mode — use $props instead
## invalid_state_location
## invalid_legacy_props
> `%rune%(...)` can only be used as a variable declaration initializer or a class field
> Cannot use `$$props` in runes mode
## invalid_effect_location
## invalid_legacy_reactive_statement
> `$effect()` can only be used as an expression statement
> `$:` is not allowed in runes mode, use `$derived` or `$effect` instead
## invalid_host_location
## invalid_legacy_rest_props
> `$host()` can only be used inside custom element component instances
> Cannot use `$$restProps` in runes mode
## invalid_assignment
## invalid_props_id
> Cannot assign to %thing%
> `$props()` can only be used with an object destructuring pattern
## invalid_binding
## invalid_props_location
> Cannot bind to %thing%
> `$props()` can only be used at the top level of components as a variable declaration initializer
## invalid_props_pattern
> `$props()` assignment must not contain nested properties or computed keys
## invalid_rune_args
@ -70,26 +74,22 @@
> `%rune%` must be called with %args%
## invalid_runes_mode_import
> %name% cannot be used in runes mode
## duplicate_props_rune
## invalid_rune_usage
> Cannot use `$props()` more than once
> Cannot use %rune% rune in non-runes mode
## invalid_each_assignment
## invalid_runes_mode_import
> Cannot reassign or bind to each block argument in runes mode. Use the array and index variables instead (e.g. `array[i] = value` instead of `entry = value`)
> %name% cannot be used in runes mode
## invalid_snippet_assignment
> Cannot reassign or bind to snippet parameter
## invalid_derived_call
## invalid_state_export
> `$derived.call(...)` has been replaced with `$derived.by(...)`
> Cannot export state from a module if it is reassigned. Either export a function returning the state value or only mutate the state value's properties
## conflicting_property_name
## invalid_state_location
> Cannot have a property and a component export with the same name
> `%rune%(...)` can only be used as a variable declaration initializer or a class field

@ -1,3 +1,7 @@
## animation_duplicate
> An element can only have one 'animate' directive
## animation_invalid_placement
> An element that uses the `animate:` directive must be the only child of a keyed `{#each ...}` block
@ -6,18 +10,14 @@
> 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
## attribute_contenteditable_dynamic
> An element can only have one 'animate' directive
> 'contenteditable' attribute cannot be dynamic if element uses two-way binding
## attribute_contenteditable_missing
> 'contenteditable' attribute is required for textContent, innerHTML and innerText two-way bindings
## attribute_contenteditable_dynamic
> 'contenteditable' attribute cannot be dynamic if element uses two-way binding
## attribute_duplicate
> Attributes need to be unique
@ -76,6 +76,10 @@
> Expected valid tag name
## event_handler_invalid_component_modifier
> Event modifiers other than 'once' can only be used on DOM elements
## event_handler_invalid_modifier
> Valid event modifiers are %list%
@ -84,10 +88,6 @@
> The '%modifier1%' and '%modifier2%' modifiers cannot be used together
## event_handler_invalid_component_modifier
> Event modifiers other than 'once' can only be used on DOM elements
## let_directive_invalid_placement
> `let:` directive at invalid position
@ -96,6 +96,10 @@
> %thing% is invalid inside <%parent%>
## slot_attribute_duplicate
> Duplicate slot name '%name%' in <%component%>
## slot_attribute_invalid
> slot attribute must be a static value
@ -104,6 +108,10 @@
> Element with a slot='...' attribute must be a child of a component or a descendant of a custom element
## slot_default_duplicate
> Found default slot content alongside an explicit slot="default"
## slot_element_invalid_attribute
> `<slot>` can only receive attributes and (optionally) let directives
@ -116,14 +124,6 @@
> `default` is a reserved word — it cannot be used as a slot name
## slot_attribute_duplicate
> Duplicate slot name '%name%' in <%component%>
## slot_default_duplicate
> Found default slot content alongside an explicit slot="default"
## slot_snippet_conflict
> Cannot use `<slot>` syntax and `{@render ...}` tags in the same component. Migrate towards `{@render ...}` tags completely.
@ -156,21 +156,17 @@
> `<svelte:fragment>` can only have a slot attribute and (optionally) a let: directive
## svelte_fragment_invalid_slot
> `<svelte:fragment>` slot attribute must have a static value
## svelte_fragment_invalid_placement
> `<svelte:fragment>` must be the direct child of a component
## svelte_head_illegal_attribute
## svelte_fragment_invalid_slot
> `<svelte:head>` cannot have attributes nor directives
> `<svelte:fragment>` slot attribute must have a static value
## svelte_meta_invalid_placement
## svelte_head_illegal_attribute
> `<%name%>` tags cannot be inside elements or blocks
> `<svelte:head>` cannot have attributes nor directives
## svelte_meta_duplicate
@ -180,6 +176,10 @@
> <%name%> cannot have children
## svelte_meta_invalid_placement
> `<%name%>` tags cannot be inside elements or blocks
## svelte_meta_invalid_tag
> Valid `<svelte:...>` tag names are %list%
@ -232,14 +232,14 @@
> `<title>` can only contain text and {tags}
## transition_duplicate
> Cannot use multiple `%type%:` directives on a single element
## transition_conflict
> Cannot use `%type%:` alongside existing `%existing%:` directive
## transition_duplicate
> Cannot use multiple `%type%:` directives on a single element
## void_element_invalid_content
> Void elements cannot have children or closing tags

@ -1,19 +1,19 @@
## illegal_global
## default_export
> `%name%` is an illegal variable name. To reference a global variable called `%name%`, use `globalThis.%name%`
> A component cannot have a default export
## duplicate_declaration
> `%name%` has already been declared
## default_export
## illegal_global
> A component cannot have a default export
> `%name%` is an illegal variable name. To reference a global variable called `%name%`, use `globalThis.%name%`
## illegal_variable_declaration
## illegal_store_subscription
> Cannot declare same variable name which is imported inside `<script context="module">`
> Cannot subscribe to stores that are not declared at the top level of the component
## illegal_store_subscription
## illegal_variable_declaration
> Cannot subscribe to stores that are not declared at the top level of the component
> Cannot declare same variable name which is imported inside `<script context="module">`

@ -1,167 +1,167 @@
## a11y_aria_attributes
## a11y_accesskey
> <%name%> should not have aria-* attributes
> Avoid using accesskey
## a11y_unknown_aria_attribute
## a11y_aria_activedescendant_has_tabindex
> Unknown aria attribute 'aria-%attribute%'
> Elements with attribute aria-activedescendant should have tabindex value
> Unknown aria attribute 'aria-%attribute%'. Did you mean '%suggestion%'?
## a11y_aria_attributes
## a11y_hidden
> <%name%> should not have aria-* attributes
> <%name%> element should not be hidden
## a11y_autocomplete_valid
## a11y_incorrect_aria_attribute_type_boolean
> The value '%value%' is not supported by the attribute 'autocomplete' on element <input type="%type%">
> The value of '%attribute%' must be either 'true' or 'false'
## a11y_autofocus
## a11y_incorrect_aria_attribute_type_integer
> Avoid using autofocus
> The value of '%attribute%' must be an integer
## a11y_click_events_have_key_events
## a11y_incorrect_aria_attribute_type_id
> Visible, non-interactive elements with a click event must be accompanied by a keyboard event handler. Consider whether an interactive element such as <button type="button"> or <a> might be more appropriate. See https://svelte.dev/docs/accessibility-warnings#a11y-click-events-have-key-events for more details.
> The value of '%attribute%' must be a string that represents a DOM element ID
## a11y_distracting_elements
## a11y_incorrect_aria_attribute_type_idlist
> Avoid <%name%> elements
> The value of '%attribute%' must be a space-separated list of strings that represent DOM element IDs
## a11y_figcaption_index
## a11y_incorrect_aria_attribute_type_tristate
> `<figcaption>` must be first or last child of `<figure>`
> The value of '%attribute%' must be exactly one of true, false, or mixed
## a11y_figcaption_parent
## a11y_incorrect_aria_attribute_type_token
> `<figcaption>` must be an immediate child of `<figure>`
> The value of '%attribute%' must be exactly one of %values%
## a11y_hidden
## a11y_incorrect_aria_attribute_type_tokenlist
> <%name%> element should not be hidden
> The value of '%attribute%' must be a space-separated list of one or more of %values%
## a11y_img_redundant_alt
> Screenreaders already announce <img> elements as an image.
## a11y_incorrect_aria_attribute_type
> The value of '%attribute%' must be of type %type%
## a11y_aria_activedescendant_has_tabindex
## a11y_incorrect_aria_attribute_type_boolean
> Elements with attribute aria-activedescendant should have tabindex value
> The value of '%attribute%' must be either 'true' or 'false'
## a11y_misplaced_role
## a11y_incorrect_aria_attribute_type_id
> <%name%> should not have role attribute
> The value of '%attribute%' must be a string that represents a DOM element ID
## a11y_no_abstract_role
## a11y_incorrect_aria_attribute_type_idlist
> Abstract role '%role%' is forbidden
> The value of '%attribute%' must be a space-separated list of strings that represent DOM element IDs
## a11y_unknown_role
## a11y_incorrect_aria_attribute_type_integer
> Unknown role '%role%'
> The value of '%attribute%' must be an integer
> Unknown role '%role%'. Did you mean '%suggestion%'?
## a11y_incorrect_aria_attribute_type_token
## a11y_no_redundant_roles
> The value of '%attribute%' must be exactly one of %values%
> Redundant role '%role%'
## a11y_incorrect_aria_attribute_type_tokenlist
## a11y_role_has_required_aria_props
> The value of '%attribute%' must be a space-separated list of one or more of %values%
> Elements with the ARIA role "%role%" must have the following attributes defined: %props%
## a11y_incorrect_aria_attribute_type_tristate
> The value of '%attribute%' must be exactly one of true, false, or mixed
## a11y_interactive_supports_focus
> Elements with the '%role%' interactive role must have a tabindex value.
## a11y_no_interactive_element_to_noninteractive_role
## a11y_invalid_attribute
> <%element%> cannot have role '%role%'
> '%href_value%' is not a valid %href_attribute% attribute
## a11y_no_noninteractive_element_to_interactive_role
## a11y_label_has_associated_control
> Non-interactive element <%element%> cannot have interactive role '%role%'
> A form label must be associated with a control.
## a11y_accesskey
## a11y_media_has_caption
> Avoid using accesskey
> <video> elements must have a <track kind="captions">
## a11y_autofocus
## a11y_misplaced_role
> Avoid using autofocus
> <%name%> should not have role attribute
## a11y_misplaced_scope
> The scope attribute should only be used with <th> elements
## a11y_positive_tabindex
## a11y_missing_attribute
> Avoid tabindex values above zero
> <%name%> element should have %article% %sequence% attribute
## a11y_click_events_have_key_events
## a11y_missing_content
> Visible, non-interactive elements with a click event must be accompanied by a keyboard event handler. Consider whether an interactive element such as <button type="button"> or <a> might be more appropriate. See https://svelte.dev/docs/accessibility-warnings#a11y-click-events-have-key-events for more details.
> <%name%> element should have child content
## a11y_no_noninteractive_tabindex
## a11y_mouse_events_have_key_events
> noninteractive element cannot have nonnegative tabIndex value
> '%event%' event must be accompanied by '%accompanied_by%' event
## a11y_role_supports_aria_props
## a11y_no_abstract_role
> The attribute '%attribute%' is not supported by the role '%role%'
> Abstract role '%role%' is forbidden
## a11y_role_supports_aria_props_implicit
## a11y_no_interactive_element_to_noninteractive_role
> The attribute '%attribute%' is not supported by the role '%role%'. This role is implicit on the element <%name%>
> <%element%> cannot have role '%role%'
## a11y_no_noninteractive_element_interactions
> Non-interactive element <%element%> should not be assigned mouse or keyboard event listeners.
## a11y_no_static_element_interactions
> <%element%> with a %handler% handler must have an ARIA role
## a11y_invalid_attribute
## a11y_no_noninteractive_element_to_interactive_role
> '%href_value%' is not a valid %href_attribute% attribute
> Non-interactive element <%element%> cannot have interactive role '%role%'
## a11y_missing_attribute
## a11y_no_noninteractive_tabindex
> <%name%> element should have %article% %sequence% attribute
> noninteractive element cannot have nonnegative tabIndex value
## a11y_autocomplete_valid
## a11y_no_redundant_roles
> The value '%value%' is not supported by the attribute 'autocomplete' on element <input type="%type%">
> Redundant role '%role%'
## a11y_img_redundant_alt
## a11y_no_static_element_interactions
> Screenreaders already announce <img> elements as an image.
> <%element%> with a %handler% handler must have an ARIA role
## a11y_label_has_associated_control
## a11y_positive_tabindex
> A form label must be associated with a control.
> Avoid tabindex values above zero
## a11y_media_has_caption
## a11y_role_has_required_aria_props
> <video> elements must have a <track kind="captions">
> Elements with the ARIA role "%role%" must have the following attributes defined: %props%
## a11y_distracting_elements
## a11y_role_supports_aria_props
> Avoid <%name%> elements
> The attribute '%attribute%' is not supported by the role '%role%'
## a11y_figcaption_parent
## a11y_role_supports_aria_props_implicit
> `<figcaption>` must be an immediate child of `<figure>`
> The attribute '%attribute%' is not supported by the role '%role%'. This role is implicit on the element <%name%>
## a11y_figcaption_index
## a11y_unknown_aria_attribute
> `<figcaption>` must be first or last child of `<figure>`
> Unknown aria attribute 'aria-%attribute%'
## a11y_mouse_events_have_key_events
> Unknown aria attribute 'aria-%attribute%'. Did you mean '%suggestion%'?
> '%event%' event must be accompanied by '%accompanied_by%' event
## a11y_unknown_role
## a11y_missing_content
> Unknown role '%role%'
> <%name%> element should have child content
> Unknown role '%role%'. Did you mean '%suggestion%'?

@ -12,4 +12,4 @@
## invalid_html_attribute
> '%wrong%' is not a valid HTML attribute. Did you mean '%right%'?
> '%wrong%' is not a valid HTML attribute. Did you mean '%right%'?

@ -1,3 +1,3 @@
## empty_block
> Empty block
> Empty block

@ -1,3 +1,3 @@
## component_name_lowercase
> <%name%> will be treated as an HTML element unless it begins with a capital letter
> <%name%> will be treated as an HTML element unless it begins with a capital letter

@ -1,3 +1,3 @@
## css_unused_selector
> Unused CSS selector "%name%"
> Unused CSS selector "%name%"

@ -1,19 +1,19 @@
## no_reactive_declaration
## deprecated_event_handler
> Reactive declarations only exist at the top level of the instance script
> Using on:%name% to listen to the %name% event is is deprecated. Use the event attribute on%name% instead.
## module_script_reactive_declaration
## deprecated_slot_element
> All dependencies of the reactive declaration are declared in a module script and will not be reactive
> Using <slot> to render parent content is deprecated. Use {@render ...} tags instead.
## unused_export_let
## module_script_reactive_declaration
> Component has unused export property '%name%'. If it is for external reference only, please consider using `export const %name%`
> All dependencies of the reactive declaration are declared in a module script and will not be reactive
## deprecated_slot_element
## no_reactive_declaration
> Using <slot> to render parent content is deprecated. Use {@render ...} tags instead.
> Reactive declarations only exist at the top level of the instance script
## deprecated_event_handler
## unused_export_let
> Using on:%name% to listen to the %name% event is is deprecated. Use the event attribute on%name% instead.
> Component has unused export property '%name%'. If it is for external reference only, please consider using `export const %name%`

@ -1,3 +1,3 @@
## invalid_self_closing_tag
> Self-closing HTML tags for non-void elements are ambiguous — use <%name% ...></%name%> rather than <%name% ... />
> Self-closing HTML tags for non-void elements are ambiguous — use <%name% ...></%name%> rather than <%name% ... />

@ -10,10 +10,6 @@
> The `customElement` option is used when generating a custom element. Did you forget the `customElement: true` compile option?
## options_renamed_ssr_dom
> `generate: "dom"` and `generate: "ssr"` options have been renamed to "client" and "server" respectively
## options_removed_enable_sourcemap
> The `enableSourcemap` option has been removed. Source maps are always generated now, and tooling can choose to ignore them
@ -25,3 +21,7 @@
## options_removed_loop_guard_timeout
> The `loopGuardTimeout` option has been removed
## options_renamed_ssr_dom
> `generate: "dom"` and `generate: "ssr"` options have been renamed to "client" and "server" respectively

@ -4,4 +4,4 @@
## avoid_nested_class
> Avoid declaring classes below the top level scope
> Avoid declaring classes below the top level scope

@ -1,19 +1,19 @@
## store_with_rune_name
> It looks like you're using the `$%name%` rune, but there is a local binding called `%name%`. Referencing a local variable with a `$` prefix will create a store subscription. Please rename `%name%` to avoid the ambiguity
## non_state_reference
> `%name%` is updated, but is not declared with `$state(...)`. Changing its value will not correctly trigger updates
## derived_iife
> Use `$derived.by(() => {...})` instead of `$derived((() => {...})())`
## invalid_bindable_declaration
> Bindable component properties are declared using `$bindable()` in runes mode. Did you forget to call the function?
## invalid_props_declaration
> Component properties are declared using `$props()` in runes mode. Did you forget to call the function?
## invalid_bindable_declaration
## non_state_reference
> Bindable component properties are declared using `$bindable()` in runes mode. Did you forget to call the function?
> `%name%` is updated, but is not declared with `$state(...)`. Changing its value will not correctly trigger updates
## store_with_rune_name
> It looks like you're using the `$%name%` rune, but there is a local binding called `%name%`. Referencing a local variable with a `$` prefix will create a store subscription. Please rename `%name%` to avoid the ambiguity

@ -1,7 +1,7 @@
## static_state_reference
## invalid_rest_eachblock_binding
> State referenced in its own scope will never update. Did you mean to reference it inside a closure?
> The rest operator (...) will create a new object and binding '%name%' with the original object will not work
## invalid_rest_eachblock_binding
## static_state_reference
> The rest operator (...) will create a new object and binding '%name%' with the original object will not work
> State referenced in its own scope will never update. Did you mean to reference it inside a closure?

@ -1,3 +1,3 @@
## dynamic_void_element_content
> `<svelte:element this="%tag%">` is a void element — it cannot have content
> `<svelte:element this="%tag%">` is a void element — it cannot have content

@ -18,6 +18,8 @@ for (const category of fs.readdirSync('messages')) {
.readFileSync(`messages/${category}/${file}`, 'utf-8')
.replace(/\r\n/g, '\n');
const sorted = [];
for (const match of markdown.matchAll(/## ([\w]+)\n\n([^]+?)(?=$|\n\n## )/g)) {
const [_, code, text] = match;
@ -25,6 +27,8 @@ for (const category of fs.readdirSync('messages')) {
throw new Error(`Duplicate message code ${category}/${code}`);
}
sorted.push({ code, _ });
const sections = text.trim().split('\n\n');
let details = null;
if (!sections[sections.length - 1].startsWith('> ')) {
@ -41,6 +45,12 @@ for (const category of fs.readdirSync('messages')) {
details
};
}
sorted.sort((a, b) => (a.code < b.code ? -1 : 1));
fs.writeFileSync(
`messages/${category}/${file}`,
sorted.map((x) => x._.trim()).join('\n\n') + '\n'
);
}
}

Loading…
Cancel
Save