-
-
Notifications
You must be signed in to change notification settings - Fork 4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f906aa2
commit e89c290
Showing
29 changed files
with
230 additions
and
226 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
## cyclical_reactive_declaration | ||
|
||
Cyclical dependency detected: %cycle% | ||
> Cyclical dependency detected: %cycle% |
Oops, something went wrong.