mirror of https://github.com/sveltejs/svelte
parent
8255ad6085
commit
35108ca020
@ -1,3 +1,3 @@
|
|||||||
## effect_update_depth_exceeded
|
## 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
|
||||||
|
|||||||
@ -1,3 +1,3 @@
|
|||||||
## cyclical_reactive_declaration
|
## cyclical_reactive_declaration
|
||||||
|
|
||||||
> Cyclical dependency detected: %cycle%
|
> Cyclical dependency detected: %cycle%
|
||||||
|
|||||||
@ -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
|
## duplicate_declaration
|
||||||
|
|
||||||
> `%name%` has already been declared
|
> `%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
|
## a11y_incorrect_aria_attribute_type
|
||||||
|
|
||||||
> The value of '%attribute%' must be of type %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
|
## a11y_interactive_supports_focus
|
||||||
|
|
||||||
> Elements with the '%role%' interactive role must have a tabindex value.
|
> 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
|
## a11y_misplaced_scope
|
||||||
|
|
||||||
> The scope attribute should only be used with <th> elements
|
> 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
|
## a11y_no_noninteractive_element_interactions
|
||||||
|
|
||||||
> Non-interactive element <%element%> should not be assigned mouse or keyboard event listeners.
|
> Non-interactive element <%element%> should not be assigned mouse or keyboard event listeners.
|
||||||
|
|
||||||
## a11y_no_static_element_interactions
|
## a11y_no_noninteractive_element_to_interactive_role
|
||||||
|
|
||||||
> <%element%> with a %handler% handler must have an ARIA role
|
|
||||||
|
|
||||||
## a11y_invalid_attribute
|
|
||||||
|
|
||||||
> '%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%'?
|
||||||
|
|||||||
@ -1,3 +1,3 @@
|
|||||||
## empty_block
|
## empty_block
|
||||||
|
|
||||||
> Empty block
|
> Empty block
|
||||||
|
|||||||
@ -1,3 +1,3 @@
|
|||||||
## component_name_lowercase
|
## 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
|
## 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
|
## 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% ... />
|
||||||
|
|||||||
@ -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
|
## derived_iife
|
||||||
|
|
||||||
> Use `$derived.by(() => {...})` instead of `$derived((() => {...})())`
|
> 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
|
## invalid_props_declaration
|
||||||
|
|
||||||
> Component properties are declared using `$props()` in runes mode. Did you forget to call the function?
|
> 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
|
## 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
|
||||||
|
|||||||
Loading…
Reference in new issue