Skip to content

Commit 22b2c15

Browse files
authored
put messages in blockquotes (#11311)
1 parent f906aa2 commit 22b2c15

File tree

29 files changed

+230
-226
lines changed

29 files changed

+230
-226
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
## effect_update_depth_exceeded
22

3-
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
3+
> 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
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
## lifecycle_outside_component
22

3-
`%name%(...)` can only be used during component initialisation
3+
> `%name%(...)` can only be used during component initialisation
44
55
## lifecycle_legacy_only
66

7-
`%name%(...)` cannot be used in runes mode
7+
> `%name%(...)` cannot be used in runes mode
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
## lifecycle_double_unmount
22

3-
Tried to unmount a component that was not mounted
3+
> Tried to unmount a component that was not mounted
44
55
## ownership_invalid_binding
66

7-
%parent% passed a value to %child% with `bind:`, but the value is owned by %owner%. Consider creating a binding between %owner% and %parent%
7+
> %parent% passed a value to %child% with `bind:`, but the value is owned by %owner%. Consider creating a binding between %owner% and %parent%
Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,59 +1,59 @@
11
## empty_attribute_shorthand
22

3-
Attribute shorthand cannot be empty
3+
> Attribute shorthand cannot be empty
44
55
## duplicate_attribute
66

7-
Attributes need to be unique
7+
> Attributes need to be unique
88
99
## invalid_event_attribute_value
1010

11-
Event attribute must be a JavaScript expression, not a string
11+
> Event attribute must be a JavaScript expression, not a string
1212
1313
## invalid_attribute_name
1414

15-
'%name%' is not a valid attribute name
15+
> '%name%' is not a valid attribute name
1616
1717
## animation_invalid_placement
1818

19-
An element that uses the `animate:` directive must be the only child of a keyed `{#each ...}` block
19+
> An element that uses the `animate:` directive must be the only child of a keyed `{#each ...}` block
2020
2121
## animation_missing_key
2222

23-
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?
23+
> 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?
2424
2525
## animation_duplicate
2626

27-
An element can only have one 'animate' directive
27+
> An element can only have one 'animate' directive
2828
2929
## invalid_event_modifier
3030

31-
Valid event modifiers are %list%
31+
> Valid event modifiers are %list%
3232
3333
## invalid_component_event_modifier
3434

35-
Event modifiers other than 'once' can only be used on DOM elements
35+
> Event modifiers other than 'once' can only be used on DOM elements
3636
3737
## invalid_event_modifier_combination
3838

39-
The '%modifier1%' and '%modifier2%' modifiers cannot be used together
39+
> The '%modifier1%' and '%modifier2%' modifiers cannot be used together
4040
4141
## transition_duplicate
4242

43-
Cannot use multiple `%type%:` directives on a single element
43+
> Cannot use multiple `%type%:` directives on a single element
4444
4545
## transition_conflict
4646

47-
Cannot use `%type%:` alongside existing `%existing%:` directive
47+
> Cannot use `%type%:` alongside existing `%existing%:` directive
4848
4949
## invalid_let_directive_placement
5050

51-
`let:` directive at invalid position
51+
> `let:` directive at invalid position
5252
5353
## invalid_style_directive_modifier
5454

55-
Invalid 'style:' modifier. Valid modifiers are: 'important'
55+
> Invalid 'style:' modifier. Valid modifiers are: 'important'
5656
5757
## invalid_sequence_expression
5858

59-
Sequence expressions are not allowed as attribute/directive values in runes mode, unless wrapped in parentheses
59+
> Sequence expressions are not allowed as attribute/directive values in runes mode, unless wrapped in parentheses
Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,35 @@
11
## invalid_binding_expression
22

3-
Can only bind to an Identifier or MemberExpression
3+
> Can only bind to an Identifier or MemberExpression
44
55
## invalid_binding_value
66

7-
Can only bind to state or props
7+
> Can only bind to state or props
88
99
## bind_invalid_target
1010

11-
`bind:%name%` can only be used with %elements%
11+
> `bind:%name%` can only be used with %elements%
1212
1313
## bind_invalid
1414

15-
`bind:%name%` is not a valid binding
15+
> `bind:%name%` is not a valid binding
1616
1717
## bind_invalid_detailed
1818

19-
`bind:%name%` is not a valid binding. %explanation%
19+
> `bind:%name%` is not a valid binding. %explanation%
2020
2121
## invalid_type_attribute
2222

23-
'type' attribute must be a static text value if input uses two-way binding
23+
> 'type' attribute must be a static text value if input uses two-way binding
2424
2525
## invalid_multiple_attribute
2626

27-
'multiple' attribute must be static if select uses two-way binding
27+
> 'multiple' attribute must be static if select uses two-way binding
2828
2929
## missing_contenteditable_attribute
3030

31-
'contenteditable' attribute is required for textContent, innerHTML and innerText two-way bindings
31+
> 'contenteditable' attribute is required for textContent, innerHTML and innerText two-way bindings
3232
3333
## dynamic_contenteditable_attribute
3434

35-
'contenteditable' attribute cannot be dynamic if element uses two-way binding
35+
> 'contenteditable' attribute cannot be dynamic if element uses two-way binding
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
## invalid_compiler_option
22

3-
Invalid compiler option: %msg%
3+
> Invalid compiler option: %msg%
44
55
## removed_compiler_option
66

7-
Invalid compiler option: %msg%
7+
> Invalid compiler option: %msg%
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
## invalid_component_directive
22

3-
This type of directive is not valid on components
3+
> This type of directive is not valid on components
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
## invalid_const_placement
22

3-
{@const} must be the immediate child of {#snippet}, {#if}, {:else if}, {:else}, {#each}, {:then}, {:catch}, <svelte:fragment> or <Component>
3+
> {@const} must be the immediate child of {#snippet}, {#if}, {:else if}, {:else}, {#each}, {:then}, {:catch}, <svelte:fragment> or <Component>
Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,51 @@
11
## invalid_css_empty_declaration
22

3-
Declaration cannot be empty
3+
> Declaration cannot be empty
44
55
## invalid_css_global_block_list
66

7-
A :global {...} block cannot be part of a selector list with more than one item
7+
> A :global {...} block cannot be part of a selector list with more than one item
88
99
## invalid_css_global_block_modifier
1010

11-
A :global {...} block cannot modify an existing selector
11+
> A :global {...} block cannot modify an existing selector
1212
1313
## invalid_css_global_block_combinator
1414

15-
A :global {...} block cannot follow a %name% combinator
15+
> A :global {...} block cannot follow a %name% combinator
1616
1717
## invalid_css_global_block_declaration
1818

19-
A :global {...} block can only contain rules, not declarations
19+
> A :global {...} block can only contain rules, not declarations
2020
2121
## invalid_css_global_placement
2222

23-
:global(...) can be at the start or end of a selector sequence, but not in the middle
23+
> :global(...) can be at the start or end of a selector sequence, but not in the middle
2424
2525
## invalid_css_global_selector
2626

27-
:global(...) must contain exactly one selector
27+
> :global(...) must contain exactly one selector
2828
2929
## invalid_css_global_selector_list
3030

31-
:global(...) must not contain type or universal selectors when used in a compound selector
31+
> :global(...) must not contain type or universal selectors when used in a compound selector
3232
3333
## invalid_css_type_selector_placement
3434

35-
:global(...) must not be followed with a type selector
35+
> :global(...) must not be followed with a type selector
3636
3737
## invalid_css_selector
3838

39-
Invalid selector
39+
> Invalid selector
4040
4141
## invalid_css_identifier
4242

43-
Expected a valid CSS identifier
43+
> Expected a valid CSS identifier
4444
4545
## invalid_nesting_selector
4646

47-
Nesting selectors can only be used inside a rule
47+
> Nesting selectors can only be used inside a rule
4848
4949
## invalid_css_declaration
5050

51-
Declaration cannot be empty
51+
> Declaration cannot be empty
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
11
## invalid_textarea_content
22

3-
A `<textarea>` can have either a value attribute or (equivalently) child content, but not both
3+
> A `<textarea>` can have either a value attribute or (equivalently) child content, but not both
44
55
## invalid_void_content
66

7-
Void elements cannot have children or closing tags
7+
> Void elements cannot have children or closing tags
88
99
## invalid_element_content
1010

11-
<%name%> cannot have children
11+
> <%name%> cannot have children
1212
1313
## invalid_tag_name
1414

15-
Expected valid tag name
15+
> Expected valid tag name
1616
1717
## invalid_node_placement
1818

19-
%thing% is invalid inside <%parent%>
19+
> %thing% is invalid inside <%parent%>
2020
2121
## illegal_title_attribute
2222

23-
`<title>` cannot have attributes nor directives
23+
> `<title>` cannot have attributes nor directives
2424
2525
## invalid_title_content
2626

27-
`<title>` can only contain text and {tags}
27+
> `<title>` can only contain text and {tags}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
## cyclical_reactive_declaration
22

3-
Cyclical dependency detected: %cycle%
3+
> Cyclical dependency detected: %cycle%

0 commit comments

Comments
 (0)