mirror of https://github.com/sveltejs/svelte
put messages in blockquotes (#11311)
parent
f906aa207b
commit
22b2c15280
@ -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
|
||||
|
||||
`%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
|
@ -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%
|
@ -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
|
@ -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
|
@ -1,7 +1,7 @@
|
||||
## invalid_compiler_option
|
||||
|
||||
Invalid compiler option: %msg%
|
||||
> Invalid compiler option: %msg%
|
||||
|
||||
## removed_compiler_option
|
||||
|
||||
Invalid compiler option: %msg%
|
||||
> Invalid compiler option: %msg%
|
@ -1,3 +1,3 @@
|
||||
## invalid_component_directive
|
||||
|
||||
This type of directive is not valid on components
|
||||
> This type of directive is not valid on components
|
@ -1,3 +1,3 @@
|
||||
## invalid_const_placement
|
||||
|
||||
{@const} must be the immediate child of {#snippet}, {#if}, {:else if}, {:else}, {#each}, {:then}, {:catch}, <svelte:fragment> or <Component>
|
||||
> {@const} must be the immediate child of {#snippet}, {#if}, {:else if}, {:else}, {#each}, {:then}, {:catch}, <svelte:fragment> or <Component>
|
@ -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
|
@ -1,27 +1,27 @@
|
||||
## invalid_textarea_content
|
||||
|
||||
A `<textarea>` can have either a value attribute or (equivalently) child content, but not both
|
||||
> A `<textarea>` can have either a value attribute or (equivalently) child content, but not both
|
||||
|
||||
## invalid_void_content
|
||||
|
||||
Void elements cannot have children or closing tags
|
||||
> Void elements cannot have children or closing tags
|
||||
|
||||
## invalid_element_content
|
||||
|
||||
<%name%> cannot have children
|
||||
> <%name%> cannot have children
|
||||
|
||||
## invalid_tag_name
|
||||
|
||||
Expected valid tag name
|
||||
> Expected valid tag name
|
||||
|
||||
## invalid_node_placement
|
||||
|
||||
%thing% is invalid inside <%parent%>
|
||||
> %thing% is invalid inside <%parent%>
|
||||
|
||||
## illegal_title_attribute
|
||||
|
||||
`<title>` cannot have attributes nor directives
|
||||
> `<title>` cannot have attributes nor directives
|
||||
|
||||
## invalid_title_content
|
||||
|
||||
`<title>` can only contain text and {tags}
|
||||
> `<title>` can only contain text and {tags}
|
@ -1,3 +1,3 @@
|
||||
## cyclical_reactive_declaration
|
||||
|
||||
Cyclical dependency detected: %cycle%
|
||||
> Cyclical dependency detected: %cycle%
|
@ -1,147 +1,147 @@
|
||||
## unclosed_element
|
||||
|
||||
`<%name%>` was left open
|
||||
> `<%name%>` was left open
|
||||
|
||||
## unclosed_block
|
||||
|
||||
Block was left open
|
||||
> Block was left open
|
||||
|
||||
## unexpected_block_close
|
||||
|
||||
Unexpected block closing tag
|
||||
> Unexpected block closing tag
|
||||
|
||||
## unexpected_eof
|
||||
|
||||
Unexpected end of input
|
||||
> Unexpected end of input
|
||||
|
||||
## js_parse_error
|
||||
|
||||
%message%
|
||||
> %message%
|
||||
|
||||
## expected_token
|
||||
|
||||
Expected token %token%
|
||||
> Expected token %token%
|
||||
|
||||
## unexpected_reserved_word
|
||||
|
||||
'%word%' is a reserved word in JavaScript and cannot be used here
|
||||
> '%word%' is a reserved word in JavaScript and cannot be used here
|
||||
|
||||
## missing_whitespace
|
||||
|
||||
Expected whitespace
|
||||
> Expected whitespace
|
||||
|
||||
## expected_pattern
|
||||
|
||||
Expected identifier or destructure pattern
|
||||
> Expected identifier or destructure pattern
|
||||
|
||||
## invalid_script_context
|
||||
|
||||
If the context attribute is supplied, its value must be "module"
|
||||
> If the context attribute is supplied, its value must be "module"
|
||||
|
||||
## invalid_elseif
|
||||
|
||||
'elseif' should be 'else if'
|
||||
> 'elseif' should be 'else if'
|
||||
|
||||
## invalid_continuing_block_placement
|
||||
|
||||
{:...} block is invalid at this position (did you forget to close the preceeding element or block?)
|
||||
> {:...} block is invalid at this position (did you forget to close the preceeding element or block?)
|
||||
|
||||
## invalid_block_missing_parent
|
||||
|
||||
%child% block must be a child of %parent%
|
||||
> %child% block must be a child of %parent%
|
||||
|
||||
## duplicate_block_part
|
||||
|
||||
%name% cannot appear more than once within a block
|
||||
> %name% cannot appear more than once within a block
|
||||
|
||||
## expected_block_type
|
||||
|
||||
Expected 'if', 'each', 'await', 'key' or 'snippet'
|
||||
> Expected 'if', 'each', 'await', 'key' or 'snippet'
|
||||
|
||||
## expected_identifier
|
||||
|
||||
Expected an identifier
|
||||
> Expected an identifier
|
||||
|
||||
## invalid_debug
|
||||
|
||||
{@debug ...} arguments must be identifiers, not arbitrary expressions
|
||||
> {@debug ...} arguments must be identifiers, not arbitrary expressions
|
||||
|
||||
## invalid_const
|
||||
|
||||
{@const ...} must be an assignment
|
||||
> {@const ...} must be an assignment
|
||||
|
||||
## invalid_block_placement
|
||||
|
||||
{#%name% ...} block cannot be %location%
|
||||
> {#%name% ...} block cannot be %location%
|
||||
|
||||
## invalid_tag_placement
|
||||
|
||||
{@%name% ...} tag cannot be %location%
|
||||
> {@%name% ...} tag cannot be %location%
|
||||
|
||||
## missing_attribute_value
|
||||
|
||||
Expected attribute value
|
||||
> Expected attribute value
|
||||
|
||||
## unclosed_attribute_value
|
||||
|
||||
Expected closing %delimiter% character
|
||||
> Expected closing %delimiter% character
|
||||
|
||||
## invalid_directive_value
|
||||
|
||||
Directive value must be a JavaScript expression enclosed in curly braces
|
||||
> Directive value must be a JavaScript expression enclosed in curly braces
|
||||
|
||||
## empty_directive_name
|
||||
|
||||
%type% name cannot be empty
|
||||
> %type% name cannot be empty
|
||||
|
||||
## invalid_closing_tag
|
||||
|
||||
</%name%> attempted to close an element that was not open
|
||||
> </%name%> attempted to close an element that was not open
|
||||
|
||||
## invalid_closing_tag_after_autoclose
|
||||
|
||||
</%name%> attempted to close element that was already automatically closed by <%reason%> (cannot nest <%reason%> inside <%name%>)
|
||||
> </%name%> attempted to close element that was already automatically closed by <%reason%> (cannot nest <%reason%> inside <%name%>)
|
||||
|
||||
## invalid_dollar_binding
|
||||
|
||||
The $ name is reserved, and cannot be used for variables and imports
|
||||
> The $ name is reserved, and cannot be used for variables and imports
|
||||
|
||||
## invalid_dollar_prefix
|
||||
|
||||
The $ prefix is reserved, and cannot be used for variables and imports
|
||||
> The $ prefix is reserved, and cannot be used for variables and imports
|
||||
|
||||
## invalid_dollar_global
|
||||
|
||||
The $ name is reserved. To reference a global variable called $, use globalThis.$
|
||||
> The $ name is reserved. To reference a global variable called $, use globalThis.$
|
||||
|
||||
## illegal_subscription
|
||||
|
||||
Cannot reference store value inside `<script context="module">`
|
||||
> Cannot reference store value inside `<script context="module">`
|
||||
|
||||
## duplicate_style_element
|
||||
|
||||
A component can have a single top-level `<style>` element
|
||||
> A component can have a single top-level `<style>` element
|
||||
|
||||
## duplicate_script_element
|
||||
|
||||
A component can have a single top-level `<script>` element and/or a single top-level `<script context="module">` element
|
||||
> A component can have a single top-level `<script>` element and/or a single top-level `<script context="module">` element
|
||||
|
||||
## invalid_render_expression
|
||||
|
||||
{@render ...} tags can only contain call expressions
|
||||
> {@render ...} tags can only contain call expressions
|
||||
|
||||
## invalid_render_arguments
|
||||
|
||||
expected at most one argument
|
||||
> expected at most one argument
|
||||
|
||||
## invalid_render_call
|
||||
|
||||
Calling a snippet function using apply, bind or call is not allowed
|
||||
> Calling a snippet function using apply, bind or call is not allowed
|
||||
|
||||
## invalid_render_spread_argument
|
||||
|
||||
cannot use spread arguments in {@render ...} tags
|
||||
> cannot use spread arguments in {@render ...} tags
|
||||
|
||||
## invalid_snippet_rest_parameter
|
||||
|
||||
snippets do not support rest parameters; use an array instead
|
||||
> snippets do not support rest parameters; use an array instead
|
@ -1,95 +1,95 @@
|
||||
## invalid_legacy_props
|
||||
|
||||
Cannot use `$$props` in runes mode
|
||||
> Cannot use `$$props` in runes mode
|
||||
|
||||
## invalid_legacy_rest_props
|
||||
|
||||
Cannot use `$$restProps` in runes mode
|
||||
> Cannot use `$$restProps` in runes mode
|
||||
|
||||
## invalid_legacy_reactive_statement
|
||||
|
||||
`$:` is not allowed in runes mode, use `$derived` or `$effect` instead
|
||||
> `$:` is not allowed in runes mode, use `$derived` or `$effect` instead
|
||||
|
||||
## invalid_legacy_export
|
||||
|
||||
Cannot use `export let` in runes mode — use $props instead
|
||||
> Cannot use `export let` in runes mode — use $props instead
|
||||
|
||||
## invalid_rune_usage
|
||||
|
||||
Cannot use %rune% rune in non-runes mode
|
||||
> Cannot use %rune% rune in non-runes mode
|
||||
|
||||
## invalid_state_export
|
||||
|
||||
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
|
||||
> 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
|
||||
|
||||
## invalid_derived_export
|
||||
|
||||
Cannot export derived state from a module. To expose the current derived value, export a function returning its value
|
||||
> Cannot export derived state from a module. To expose the current derived value, export a function returning its value
|
||||
|
||||
## invalid_props_id
|
||||
|
||||
`$props()` can only be used with an object destructuring pattern
|
||||
> `$props()` can only be used with an object destructuring pattern
|
||||
|
||||
## invalid_props_pattern
|
||||
|
||||
`$props()` assignment must not contain nested properties or computed keys
|
||||
> `$props()` assignment must not contain nested properties or computed keys
|
||||
|
||||
## invalid_props_location
|
||||
|
||||
`$props()` can only be used at the top level of components as a variable declaration initializer
|
||||
> `$props()` can only be used at the top level of components as a variable declaration initializer
|
||||
|
||||
## invalid_bindable_location
|
||||
|
||||
`$bindable()` can only be used inside a `$props()` declaration
|
||||
> `$bindable()` can only be used inside a `$props()` declaration
|
||||
|
||||
## invalid_state_location
|
||||
|
||||
`%rune%(...)` can only be used as a variable declaration initializer or a class field
|
||||
> `%rune%(...)` can only be used as a variable declaration initializer or a class field
|
||||
|
||||
## invalid_effect_location
|
||||
|
||||
`$effect()` can only be used as an expression statement
|
||||
> `$effect()` can only be used as an expression statement
|
||||
|
||||
## invalid_host_location
|
||||
|
||||
`$host()` can only be used inside custom element component instances
|
||||
> `$host()` can only be used inside custom element component instances
|
||||
|
||||
## invalid_assignment
|
||||
|
||||
Cannot assign to %thing%
|
||||
> Cannot assign to %thing%
|
||||
|
||||
## invalid_binding
|
||||
|
||||
Cannot bind to %thing%
|
||||
> Cannot bind to %thing%
|
||||
|
||||
## invalid_rune_args
|
||||
|
||||
`%rune%` cannot be called with arguments
|
||||
> `%rune%` cannot be called with arguments
|
||||
|
||||
## invalid_rune_args_length
|
||||
|
||||
`%rune%` must be called with %args%
|
||||
> `%rune%` must be called with %args%
|
||||
|
||||
## invalid_runes_mode_import
|
||||
|
||||
%name% cannot be used in runes mode
|
||||
> %name% cannot be used in runes mode
|
||||
|
||||
## duplicate_props_rune
|
||||
|
||||
Cannot use `$props()` more than once
|
||||
> Cannot use `$props()` more than once
|
||||
|
||||
## invalid_each_assignment
|
||||
|
||||
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`)
|
||||
> 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_snippet_assignment
|
||||
|
||||
Cannot reassign or bind to snippet parameter
|
||||
> Cannot reassign or bind to snippet parameter
|
||||
|
||||
## invalid_derived_call
|
||||
|
||||
`$derived.call(...)` has been replaced with `$derived.by(...)`
|
||||
> `$derived.call(...)` has been replaced with `$derived.by(...)`
|
||||
|
||||
## conflicting_property_name
|
||||
|
||||
Cannot have a property and a component export with the same name
|
||||
> Cannot have a property and a component export with the same name
|
@ -1,31 +1,31 @@
|
||||
## invalid_slot_element_attribute
|
||||
|
||||
`<slot>` can only receive attributes and (optionally) let directives
|
||||
> `<slot>` can only receive attributes and (optionally) let directives
|
||||
|
||||
## invalid_slot_attribute
|
||||
|
||||
slot attribute must be a static value
|
||||
> slot attribute must be a static value
|
||||
|
||||
## invalid_slot_name_default
|
||||
|
||||
`default` is a reserved word — it cannot be used as a slot name
|
||||
> `default` is a reserved word — it cannot be used as a slot name
|
||||
|
||||
## invalid_slot_name
|
||||
|
||||
slot attribute must be a static value
|
||||
> slot attribute must be a static value
|
||||
|
||||
## invalid_slot_placement
|
||||
|
||||
Element with a slot='...' attribute must be a child of a component or a descendant of a custom element
|
||||
> Element with a slot='...' attribute must be a child of a component or a descendant of a custom element
|
||||
|
||||
## duplicate_slot_name
|
||||
|
||||
Duplicate slot name '%name%' in <%component%>
|
||||
> Duplicate slot name '%name%' in <%component%>
|
||||
|
||||
## invalid_default_slot_content
|
||||
|
||||
Found default slot content alongside an explicit slot="default"
|
||||
> Found default slot content alongside an explicit slot="default"
|
||||
|
||||
## conflicting_children_snippet
|
||||
|
||||
Cannot use explicit children snippet at the same time as implicit children content. Remove either the non-whitespace content or the children snippet block
|
||||
> Cannot use explicit children snippet at the same time as implicit children content. Remove either the non-whitespace content or the children snippet block
|
@ -1,99 +1,99 @@
|
||||
## invalid_svelte_option_attribute
|
||||
|
||||
`<svelte:options>` can only receive static attributes
|
||||
> `<svelte:options>` can only receive static attributes
|
||||
|
||||
## invalid_svelte_option_namespace
|
||||
|
||||
Unsupported `<svelte:option>` value for "namespace". Valid values are "html", "svg" or "foreign"
|
||||
> Unsupported `<svelte:option>` value for "namespace". Valid values are "html", "svg" or "foreign"
|
||||
|
||||
## tag_option_deprecated
|
||||
|
||||
"tag" option is deprecated — use "customElement" instead
|
||||
> "tag" option is deprecated — use "customElement" instead
|
||||
|
||||
## invalid_svelte_option_runes
|
||||
|
||||
Unsupported `<svelte:option>` value for "runes". Valid values are true or false
|
||||
> Unsupported `<svelte:option>` value for "runes". Valid values are true or false
|
||||
|
||||
## invalid_svelte_option_accessors
|
||||
|
||||
Unsupported `<svelte:option>` value for "accessors". Valid values are true or false
|
||||
> Unsupported `<svelte:option>` value for "accessors". Valid values are true or false
|
||||
|
||||
## invalid_svelte_option_preserveWhitespace
|
||||
|
||||
Unsupported `<svelte:option>` value for "preserveWhitespace". Valid values are true or false
|
||||
> Unsupported `<svelte:option>` value for "preserveWhitespace". Valid values are true or false
|
||||
|
||||
## invalid_svelte_option_immutable
|
||||
|
||||
Unsupported `<svelte:option>` value for "immutable". Valid values are true or false
|
||||
> Unsupported `<svelte:option>` value for "immutable". Valid values are true or false
|
||||
|
||||
## invalid_tag_property
|
||||
|
||||
Tag name must be two or more words joined by the "-" character
|
||||
> Tag name must be two or more words joined by the "-" character
|
||||
|
||||
## invalid_svelte_option_customElement
|
||||
|
||||
"customElement" must be a string literal defining a valid custom element name or an object of the form { tag: string; shadow?: "open" | "none"; props?: { [key: string]: { attribute?: string; reflect?: boolean; type: .. } } }
|
||||
> "customElement" must be a string literal defining a valid custom element name or an object of the form { tag: string; shadow?: "open" | "none"; props?: { [key: string]: { attribute?: string; reflect?: boolean; type: .. } } }
|
||||
|
||||
## invalid_customElement_props_attribute
|
||||
|
||||
"props" must be a statically analyzable object literal of the form "{ [key: string]: { attribute?: string; reflect?: boolean; type?: "String" | "Boolean" | "Number" | "Array" | "Object" }"
|
||||
> "props" must be a statically analyzable object literal of the form "{ [key: string]: { attribute?: string; reflect?: boolean; type?: "String" | "Boolean" | "Number" | "Array" | "Object" }"
|
||||
|
||||
## invalid_customElement_shadow_attribute
|
||||
|
||||
"shadow" must be either "open" or "none"
|
||||
> "shadow" must be either "open" or "none"
|
||||
|
||||
## unknown_svelte_option_attribute
|
||||
|
||||
`<svelte:options>` unknown attribute '%name%'
|
||||
> `<svelte:options>` unknown attribute '%name%'
|
||||
|
||||
## illegal_svelte_head_attribute
|
||||
|
||||
`<svelte:head>` cannot have attributes nor directives
|
||||
> `<svelte:head>` cannot have attributes nor directives
|
||||
|
||||
## invalid_svelte_fragment_attribute
|
||||
|
||||
`<svelte:fragment>` can only have a slot attribute and (optionally) a let: directive
|
||||
> `<svelte:fragment>` can only have a slot attribute and (optionally) a let: directive
|
||||
|
||||
## invalid_svelte_fragment_slot
|
||||
|
||||
`<svelte:fragment>` slot attribute must have a static value
|
||||
> `<svelte:fragment>` slot attribute must have a static value
|
||||
|
||||
## invalid_svelte_fragment_placement
|
||||
|
||||
`<svelte:fragment>` must be the direct child of a component
|
||||
> `<svelte:fragment>` must be the direct child of a component
|
||||
|
||||
## invalid_svelte_element_placement
|
||||
|
||||
<%name%> tags cannot be inside elements or blocks
|
||||
> <%name%> tags cannot be inside elements or blocks
|
||||
|
||||
## duplicate_svelte_element
|
||||
|
||||
A component can only have one <%name%> element
|
||||
> A component can only have one <%name%> element
|
||||
|
||||
## invalid_self_placement
|
||||
|
||||
`<svelte:self>` components can only exist inside {#if} blocks, {#each} blocks, {#snippet} blocks or slots passed to components
|
||||
> `<svelte:self>` components can only exist inside {#if} blocks, {#each} blocks, {#snippet} blocks or slots passed to components
|
||||
|
||||
## missing_svelte_element_definition
|
||||
|
||||
`<svelte:element>` must have a 'this' attribute
|
||||
> `<svelte:element>` must have a 'this' attribute
|
||||
|
||||
## missing_svelte_component_definition
|
||||
|
||||
`<svelte:component>` must have a 'this' attribute
|
||||
> `<svelte:component>` must have a 'this' attribute
|
||||
|
||||
## invalid_svelte_element_definition
|
||||
|
||||
Invalid element definition — must be an {expression}
|
||||
> Invalid element definition — must be an {expression}
|
||||
|
||||
## invalid_svelte_component_definition
|
||||
|
||||
Invalid component definition — must be an {expression}
|
||||
> Invalid component definition — must be an {expression}
|
||||
|
||||
## invalid_svelte_tag
|
||||
|
||||
Valid `<svelte:...>` tag names are %list%
|
||||
> Valid `<svelte:...>` tag names are %list%
|
||||
|
||||
## conflicting_slot_usage
|
||||
|
||||
Cannot use `<slot>` syntax and `{@render ...}` tags in the same component. Migrate towards `{@render ...}` tags completely.
|
||||
> Cannot use `<slot>` syntax and `{@render ...}` tags in the same component. Migrate towards `{@render ...}` tags completely.
|
@ -1,19 +1,19 @@
|
||||
## illegal_global
|
||||
|
||||
`%name%` is an illegal variable name. To reference a global variable called `%name%`, use `globalThis.%name%`
|
||||
> `%name%` is an illegal variable name. To reference a global variable called `%name%`, use `globalThis.%name%`
|
||||
|
||||
## duplicate_declaration
|
||||
|
||||
`%name%` has already been declared
|
||||
> `%name%` has already been declared
|
||||
|
||||
## default_export
|
||||
|
||||
A component cannot have a default export
|
||||
> A component cannot have a default export
|
||||
|
||||
## illegal_variable_declaration
|
||||
|
||||
Cannot declare same variable name which is imported inside `<script context="module">`
|
||||
> Cannot declare same variable name which is imported inside `<script context="module">`
|
||||
|
||||
## illegal_store_subscription
|
||||
|
||||
Cannot subscribe to stores that are not declared at the top level of the component
|
||||
> Cannot subscribe to stores that are not declared at the top level of the component
|
@ -1,171 +1,171 @@
|
||||
## a11y_aria_attributes
|
||||
|
||||
<%name%> should not have aria-* attributes
|
||||
> <%name%> should not have aria-* attributes
|
||||
|
||||
## a11y_unknown_aria_attribute
|
||||
|
||||
Unknown aria attribute 'aria-%attribute%'
|
||||
> Unknown aria attribute 'aria-%attribute%'
|
||||
|
||||
## a11y_unknown_aria_attribute_suggestion
|
||||
|
||||
Unknown aria attribute 'aria-%attribute%'. Did you mean '%suggestion%'?
|
||||
> Unknown aria attribute 'aria-%attribute%'. Did you mean '%suggestion%'?
|
||||
|
||||
## a11y_hidden
|
||||
|
||||
<%name%> element should not be hidden
|
||||
> <%name%> element should not be hidden
|
||||
|
||||
## a11y_incorrect_aria_attribute_type_boolean
|
||||
|
||||
The value of '%attribute%' must be either 'true' or 'false'
|
||||
> The value of '%attribute%' must be either 'true' or 'false'
|
||||
|
||||
## a11y_incorrect_aria_attribute_type_integer
|
||||
|
||||
The value of '%attribute%' must be an integer
|
||||
> The value of '%attribute%' must be an integer
|
||||
|
||||
## a11y_incorrect_aria_attribute_type_id
|
||||
|
||||
The value of '%attribute%' must be a string that represents a DOM element ID
|
||||
> The value of '%attribute%' must be a string that represents a DOM element ID
|
||||
|
||||
## a11y_incorrect_aria_attribute_type_idlist
|
||||
|
||||
The value of '%attribute%' must be a space-separated list of strings that represent DOM element IDs
|
||||
> The value of '%attribute%' must be a space-separated list of strings that represent DOM element IDs
|
||||
|
||||
## a11y_incorrect_aria_attribute_type_tristate
|
||||
|
||||
The value of '%attribute%' must be exactly one of true, false, or mixed
|
||||
> The value of '%attribute%' must be exactly one of true, false, or mixed
|
||||
|
||||
## a11y_incorrect_aria_attribute_type_token
|
||||
|
||||
The value of '%attribute%' must be exactly one of %values%
|
||||
> The value of '%attribute%' must be exactly one of %values%
|
||||
|
||||
## a11y_incorrect_aria_attribute_type_tokenlist
|
||||
|
||||
The value of '%attribute%' must be a space-separated list of one or more of %values%
|
||||
> The value of '%attribute%' must be a space-separated list of one or more of %values%
|
||||
|
||||
## 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
|
||||
|
||||
Elements with attribute aria-activedescendant should have tabindex value
|
||||
> Elements with attribute aria-activedescendant should have tabindex value
|
||||
|
||||
## a11y_misplaced_role
|
||||
|
||||
<%name%> should not have role attribute
|
||||
> <%name%> should not have role attribute
|
||||
|
||||
## a11y_no_abstract_role
|
||||
|
||||
Abstract role '%role%' is forbidden
|
||||
> Abstract role '%role%' is forbidden
|
||||
|
||||
## a11y_unknown_role
|
||||
|
||||
Unknown role '%role%'
|
||||
> Unknown role '%role%'
|
||||
|
||||
## a11y_unknown_role_suggestion
|
||||
|
||||
Unknown role '%role%'. Did you mean '%suggestion%'?
|
||||
> Unknown role '%role%'. Did you mean '%suggestion%'?
|
||||
|
||||
## a11y_no_redundant_roles
|
||||
|
||||
Redundant role '%role%'
|
||||
> Redundant role '%role%'
|
||||
|
||||
## a11y_role_has_required_aria_props
|
||||
|
||||
Elements with the ARIA role "%role%" must have the following attributes defined: %props%
|
||||
> Elements with the ARIA role "%role%" must have the following attributes defined: %props%
|
||||
|
||||
## 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
|
||||
|
||||
<%element%> cannot have role '%role%'
|
||||
> <%element%> cannot have role '%role%'
|
||||
|
||||
## a11y_no_noninteractive_element_to_interactive_role
|
||||
|
||||
Non-interactive element <%element%> cannot have interactive role '%role%'
|
||||
> Non-interactive element <%element%> cannot have interactive role '%role%'
|
||||
|
||||
## a11y_accesskey
|
||||
|
||||
Avoid using accesskey
|
||||
> Avoid using accesskey
|
||||
|
||||
## a11y_autofocus
|
||||
|
||||
Avoid using autofocus
|
||||
> Avoid using autofocus
|
||||
|
||||
## 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
|
||||
|
||||
Avoid tabindex values above zero
|
||||
> Avoid tabindex values above zero
|
||||
|
||||
## 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 <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.
|
||||
> 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.
|
||||
|
||||
## a11y_no_noninteractive_tabindex
|
||||
|
||||
noninteractive element cannot have nonnegative tabIndex value
|
||||
> noninteractive element cannot have nonnegative tabIndex value
|
||||
|
||||
## a11y_role_supports_aria_props
|
||||
|
||||
The attribute '%attribute%' is not supported by the role '%role%'
|
||||
> The attribute '%attribute%' is not supported by the role '%role%'
|
||||
|
||||
## a11y_role_supports_aria_props_implicit
|
||||
|
||||
The attribute '%attribute%' is not supported by the role '%role%'. This role is implicit on the element <%name%>
|
||||
> The attribute '%attribute%' is not supported by the role '%role%'. This role is implicit on the element <%name%>
|
||||
|
||||
## 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
|
||||
|
||||
<%element%> with a %handler% handler must have an ARIA role
|
||||
> <%element%> with a %handler% handler must have an ARIA role
|
||||
|
||||
## a11y_invalid_attribute
|
||||
|
||||
'%href_value%' is not a valid %href_attribute% attribute
|
||||
> '%href_value%' is not a valid %href_attribute% attribute
|
||||
|
||||
## a11y_missing_attribute
|
||||
|
||||
<%name%> element should have %article% %sequence% attribute
|
||||
> <%name%> element should have %article% %sequence% attribute
|
||||
|
||||
## a11y_autocomplete_valid
|
||||
|
||||
The value '%value%' is not supported by the attribute 'autocomplete' on element <input type="%type%">
|
||||
> The value '%value%' is not supported by the attribute 'autocomplete' on element <input type="%type%">
|
||||
|
||||
## a11y_img_redundant_alt
|
||||
|
||||
Screenreaders already announce <img> elements as an image.
|
||||
> Screenreaders already announce <img> elements as an image.
|
||||
|
||||
## a11y_label_has_associated_control
|
||||
|
||||
A form label must be associated with a control.
|
||||
> A form label must be associated with a control.
|
||||
|
||||
## a11y_media_has_caption
|
||||
|
||||
<video> elements must have a <track kind="captions">
|
||||
> <video> elements must have a <track kind="captions">
|
||||
|
||||
## a11y_distracting_elements
|
||||
|
||||
Avoid <%name%> elements
|
||||
> Avoid <%name%> elements
|
||||
|
||||
## a11y_figcaption_parent
|
||||
|
||||
`<figcaption>` must be an immediate child of `<figure>`
|
||||
> `<figcaption>` must be an immediate child of `<figure>`
|
||||
|
||||
## a11y_figcaption_index
|
||||
|
||||
`<figcaption>` must be first or last child of `<figure>`
|
||||
> `<figcaption>` must be first or last child of `<figure>`
|
||||
|
||||
## a11y_mouse_events_have_key_events
|
||||
|
||||
'%event%' event must be accompanied by '%accompanied_by%' event
|
||||
> '%event%' event must be accompanied by '%accompanied_by%' event
|
||||
|
||||
## a11y_missing_content
|
||||
|
||||
<%name%> element should have child content
|
||||
> <%name%> element should have child content
|
@ -1,15 +1,15 @@
|
||||
## avoid_is
|
||||
|
||||
The "is" attribute is not supported cross-browser and should be avoided
|
||||
> The "is" attribute is not supported cross-browser and should be avoided
|
||||
|
||||
## global_event_reference
|
||||
|
||||
You are referencing globalThis.%name%. Did you forget to declare a variable with that name?
|
||||
> You are referencing globalThis.%name%. Did you forget to declare a variable with that name?
|
||||
|
||||
## illegal_attribute_character
|
||||
|
||||
Attributes should not contain ':' characters to prevent ambiguity with Svelte directives
|
||||
> Attributes should not contain ':' characters to prevent ambiguity with Svelte directives
|
||||
|
||||
## 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
|
||||
|
||||
Reactive declarations only exist at the top level of the instance script
|
||||
> Reactive declarations only exist at the top level of the instance script
|
||||
|
||||
## module_script_reactive_declaration
|
||||
|
||||
All dependencies of the reactive declaration are declared in a module script and will not be reactive
|
||||
> All dependencies of the reactive declaration are declared in a module script and will not be reactive
|
||||
|
||||
## unused_export_let
|
||||
|
||||
Component has unused export property '%name%'. If it is for external reference only, please consider using `export const %name%`
|
||||
> Component has unused export property '%name%'. If it is for external reference only, please consider using `export const %name%`
|
||||
|
||||
## deprecated_slot_element
|
||||
|
||||
Using <slot> to render parent content is deprecated. Use {@render ...} tags instead.
|
||||
> Using <slot> to render parent content is deprecated. Use {@render ...} tags instead.
|
||||
|
||||
## deprecated_event_handler
|
||||
|
||||
Using on:%name% to listen to the %name% event is is deprecated. Use the event attribute on%name% instead.
|
||||
> Using on:%name% to listen to the %name% event is is deprecated. Use the event attribute on%name% instead.
|
@ -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% ... />
|
@ -1,23 +1,23 @@
|
||||
## options_deprecated_immutable
|
||||
|
||||
The `immutable` option has been deprecated. It will have no effect in runes mode
|
||||
> The `immutable` option has been deprecated. It will have no effect in runes mode
|
||||
|
||||
## options_missing_custom_element
|
||||
|
||||
The `customElement` option is used when generating a custom element. Did you forget the `customElement: true` compile option?
|
||||
> 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
|
||||
> `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
|
||||
> The `enableSourcemap` option has been removed. Source maps are always generated now, and tooling can choose to ignore them
|
||||
|
||||
## options_removed_hydratable
|
||||
|
||||
The `hydratable` option has been removed. Svelte components are always hydratable now
|
||||
> The `hydratable` option has been removed. Svelte components are always hydratable now
|
||||
|
||||
## options_removed_loop_guard_timeout
|
||||
|
||||
The `loopGuardTimeout` option has been removed
|
||||
> The `loopGuardTimeout` option has been removed
|
@ -1,7 +1,7 @@
|
||||
## avoid_inline_class
|
||||
|
||||
Avoid 'new class' — instead, declare the class at the top level scope
|
||||
> Avoid 'new class' — instead, declare the class at the top level scope
|
||||
|
||||
## 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
|
||||
> 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
|
||||
> `%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((() => {...})())`
|
||||
> Use `$derived.by(() => {...})` instead of `$derived((() => {...})())`
|
||||
|
||||
## 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
|
||||
|
||||
Bindable component properties are declared using `$bindable()` in runes mode. Did you forget to call the function?
|
||||
> Bindable component properties are declared using `$bindable()` in runes mode. Did you forget to call the function?
|
@ -1,7 +1,7 @@
|
||||
## static_state_reference
|
||||
|
||||
State referenced in its own scope will never update. Did you mean to reference it inside a closure?
|
||||
> State referenced in its own scope will never update. Did you mean to reference it inside a closure?
|
||||
|
||||
## invalid_rest_eachblock_binding
|
||||
|
||||
The rest operator (...) will create a new object and binding '%name%' with the original object will not work
|
||||
> The rest operator (...) will create a new object and binding '%name%' with the original object will not work
|
@ -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
|
Loading…
Reference in new issue