Skip to content

Commit

Permalink
fix(errors): clean up and unify
Browse files Browse the repository at this point in the history
  • Loading branch information
LuLaValva committed Jul 10, 2024
1 parent d7d3de6 commit 75e5827
Show file tree
Hide file tree
Showing 110 changed files with 133 additions and 224 deletions.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

at packages/translator-tags/src/__tests__/fixtures/error-const-body-content/template.marko:1:2
> 1 | <const/x=1>
| ^^^^^ The <"const"> tag does not support body content.
| ^^^^^ The `const` tag does not support body content.
2 | Hello!
3 | </const>
4 |
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

at packages/translator-tags/src/__tests__/fixtures/error-const-body-content/template.marko:1:2
> 1 | <const/x=1>
| ^^^^^ The <"const"> tag does not support body content.
| ^^^^^ The `const` tag does not support body content.
2 | Hello!
3 | </const>
4 |
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

at packages/translator-tags/src/__tests__/fixtures/error-const-extra-attr/template.marko:1:2
> 1 | <const/x=1 y=2/>
| ^^^^^ The 'const' tag only supports the default 'value' attribute.
| ^^^^^ The `const` tag only supports the `value` attribute.
2 |
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

at packages/translator-tags/src/__tests__/fixtures/error-const-extra-attr/template.marko:1:2
> 1 | <const/x=1 y=2/>
| ^^^^^ The 'const' tag only supports the default 'value' attribute.
| ^^^^^ The `const` tag only supports the `value` attribute.
2 |
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

at packages/translator-tags/src/__tests__/fixtures/error-const-no-default-value/template.marko:1:2
> 1 | <const/x/>
| ^^^^^ The 'const' tag requires a default 'value' attribute.
| ^^^^^ The `const` tag requires a value.
2 |
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

at packages/translator-tags/src/__tests__/fixtures/error-const-no-default-value/template.marko:1:2
> 1 | <const/x/>
| ^^^^^ The 'const' tag requires a default 'value' attribute.
| ^^^^^ The `const` tag requires a value.
2 |
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

at packages/translator-tags/src/__tests__/fixtures/error-const-no-tag-var/template.marko:1:2
> 1 | <const="Hello"/>
| ^^^^^ The 'const' tag requires a tag variable.
| ^^^^^ The `const` tag requires a tag variable.
2 |
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

at packages/translator-tags/src/__tests__/fixtures/error-const-no-tag-var/template.marko:1:2
> 1 | <const="Hello"/>
| ^^^^^ The 'const' tag requires a tag variable.
| ^^^^^ The `const` tag requires a tag variable.
2 |
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

at packages/translator-tags/src/__tests__/fixtures/error-debug-body-content/template.marko:1:2
> 1 | <debug>Hello</debug>
| ^^^^^ The <"debug"> tag does not support body content.
| ^^^^^ The `debug` tag does not support body content.
2 |
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

at packages/translator-tags/src/__tests__/fixtures/error-debug-body-content/template.marko:1:2
> 1 | <debug>Hello</debug>
| ^^^^^ The <"debug"> tag does not support body content.
| ^^^^^ The `debug` tag does not support body content.
2 |
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
at packages/translator-tags/src/__tests__/fixtures/error-debug-extra-attr/template.marko:2:2
1 | <const/x=0/>
> 2 | <debug=x y=1/>
| ^^^^^ The 'debug' tag only supports the 'value' attribute.
| ^^^^^ The `debug` tag only supports the `value` attribute.
3 |
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
at packages/translator-tags/src/__tests__/fixtures/error-debug-extra-attr/template.marko:2:2
1 | <const/x=0/>
> 2 | <debug=x y=1/>
| ^^^^^ The 'debug' tag only supports the 'value' attribute.
| ^^^^^ The `debug` tag only supports the `value` attribute.
3 |

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

at packages/translator-tags/src/__tests__/fixtures/error-define-no-tag-var/template.marko:1:2
> 1 | <define>Hello!</define>
| ^^^^^^ <define> requires a variable to be specified, eg <define/NAME>.
| ^^^^^^ The `define` tag requires a tag variable.
2 |
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

at packages/translator-tags/src/__tests__/fixtures/error-define-no-tag-var/template.marko:1:2
> 1 | <define>Hello!</define>
| ^^^^^^ <define> requires a variable to be specified, eg <define/NAME>.
| ^^^^^^ The `define` tag requires a tag variable.
2 |
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

at packages/translator-tags/src/__tests__/fixtures/error-do-body-content/template.marko:1:2
> 1 | <do=(() => {})>Hello</do>
| ^^ The <"do"> tag does not support body content.
| ^^ The `do` tag does not support body content.
2 |
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

at packages/translator-tags/src/__tests__/fixtures/error-do-body-content/template.marko:1:2
> 1 | <do=(() => {})>Hello</do>
| ^^ The <"do"> tag does not support body content.
| ^^ The `do` tag does not support body content.
2 |
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

at packages/translator-tags/src/__tests__/fixtures/error-do-extra-attr/template.marko:1:2
> 1 | <do=(() => {}) y=1/>
| ^^ The 'do' tag only supports the 'value' attribute.
| ^^ The `do` tag only supports the `value` attribute.
2 |
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

at packages/translator-tags/src/__tests__/fixtures/error-do-extra-attr/template.marko:1:2
> 1 | <do=(() => {}) y=1/>
| ^^ The 'do' tag only supports the 'value' attribute.
| ^^ The `do` tag only supports the `value` attribute.
2 |
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

at packages/translator-tags/src/__tests__/fixtures/error-do-no-default-value/template.marko:1:2
> 1 | <do/>
| ^^ The 'do' tag requires a 'value' attribute.
| ^^ The `do` tag requires a value.
2 |
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

at packages/translator-tags/src/__tests__/fixtures/error-do-no-default-value/template.marko:1:2
> 1 | <do/>
| ^^ The 'do' tag requires a 'value' attribute.
| ^^ The `do` tag requires a value.
2 |
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

at packages/translator-tags/src/__tests__/fixtures/error-effect-body-content/template.marko:1:2
> 1 | <effect=(() => {})>Hello</effect>
| ^^^^^^ The <"effect"> tag does not support body content.
| ^^^^^^ The `effect` tag does not support body content.
2 |
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

at packages/translator-tags/src/__tests__/fixtures/error-effect-body-content/template.marko:1:2
> 1 | <effect=(() => {})>Hello</effect>
| ^^^^^^ The <"effect"> tag does not support body content.
| ^^^^^^ The `effect` tag does not support body content.
2 |
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

at packages/translator-tags/src/__tests__/fixtures/error-effect-extra-attr/template.marko:1:2
> 1 | <effect=(() => {}) y=1/>
| ^^^^^^ The 'effect' tag only supports the default 'value' attribute.
| ^^^^^^ The `effect` tag only supports the `value` attribute.
2 |
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

at packages/translator-tags/src/__tests__/fixtures/error-effect-extra-attr/template.marko:1:2
> 1 | <effect=(() => {}) y=1/>
| ^^^^^^ The 'effect' tag only supports the default 'value' attribute.
| ^^^^^^ The `effect` tag only supports the `value` attribute.
2 |
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

at packages/translator-tags/src/__tests__/fixtures/error-effect-no-default-value/template.marko:1:2
> 1 | <effect/>
| ^^^^^^ The 'effect' tag requires a default 'value' attribute.
| ^^^^^^ The `effect` tag requires a value.
2 |
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

at packages/translator-tags/src/__tests__/fixtures/error-effect-no-default-value/template.marko:1:2
> 1 | <effect/>
| ^^^^^^ The 'effect' tag requires a default 'value' attribute.
| ^^^^^^ The `effect` tag requires a value.
2 |
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
at packages/translator-tags/src/__tests__/fixtures/error-else-extra-attr/template.marko:2:21
1 | <if=false>Skipped</if>
> 2 | <else if=input.show y=2>Hello World</else>
| ^^^ The '<else>' tag only supports an if attribute.
| ^^^ The `else` tag only supports an `if=` attribute.
3 |
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
at packages/translator-tags/src/__tests__/fixtures/error-else-extra-attr/template.marko:2:21
1 | <if=false>Skipped</if>
> 2 | <else if=input.show y=2>Hello World</else>
| ^^^ The '<else>' tag only supports an if attribute.
| ^^^ The `else` tag only supports an `if=` attribute.
3 |
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
at packages/translator-tags/src/__tests__/fixtures/error-else-no-content/template.marko:2:2
1 | <if=false>Skipped</if>
> 2 | <else />
| ^^^^ The '<else>' tag requires body content.
| ^^^^ The `else` tag requires body content.
3 |
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
at packages/translator-tags/src/__tests__/fixtures/error-else-no-content/template.marko:2:2
1 | <if=false>Skipped</if>
> 2 | <else />
| ^^^^ The '<else>' tag requires body content.
| ^^^^ The `else` tag requires body content.
3 |
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
at packages/translator-tags/src/__tests__/fixtures/error-elseif-extra-attr/template.marko:2:21
1 | <if=false>Skipped</if>
> 2 | <else-if=input.show y=2>Hello World</else-if>
| ^^^ The '<else-if>' tag only supports a default attribute.
| ^^^ The `else-if` tag only supports the `value` attribute.
3 |
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
at packages/translator-tags/src/__tests__/fixtures/error-elseif-extra-attr/template.marko:2:21
1 | <if=false>Skipped</if>
> 2 | <else-if=input.show y=2>Hello World</else-if>
| ^^^ The '<else-if>' tag only supports a default attribute.
| ^^^ The `else-if` tag only supports the `value` attribute.
3 |
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
at packages/translator-tags/src/__tests__/fixtures/error-elseif-no-content/template.marko:2:2
1 | <if=false>Skipped</if>
> 2 | <else-if=input.show />
| ^^^^^^^ The '<else-if>' tag requires body content.
| ^^^^^^^ The `else-if` tag requires body content.
3 |
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
at packages/translator-tags/src/__tests__/fixtures/error-elseif-no-content/template.marko:2:2
1 | <if=false>Skipped</if>
> 2 | <else-if=input.show />
| ^^^^^^^ The '<else-if>' tag requires body content.
| ^^^^^^^ The `else-if` tag requires body content.
3 |
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
at packages/translator-tags/src/__tests__/fixtures/error-elseif-no-default-value/template.marko:2:2
1 | <if=false>Skipped</if>
> 2 | <else-if>Hello World</else-if>
| ^^^^^^^ The '<else-if>' tag requires a default attribute like '<else-if=condition>'.
| ^^^^^^^ The `else-if` tag requires a value.
3 |
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
at packages/translator-tags/src/__tests__/fixtures/error-elseif-no-default-value/template.marko:2:2
1 | <if=false>Skipped</if>
> 2 | <else-if>Hello World</else-if>
| ^^^^^^^ The '<else-if>' tag requires a default attribute like '<else-if=condition>'.
| ^^^^^^^ The `else-if` tag requires a value.
3 |
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

at packages/translator-tags/src/__tests__/fixtures/error-id-destructure/template.marko:1:5
> 1 | <id/{ firstNameId }/>
| ^^^^^^^^^^^^^^^ The 'id' tag cannot be destructured
| ^^^^^^^^^^^^^^^ The `id` tag cannot be destructured
2 |
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

at packages/translator-tags/src/__tests__/fixtures/error-id-destructure/template.marko:1:5
> 1 | <id/{ firstNameId }/>
| ^^^^^^^^^^^^^^^ The 'id' tag cannot be destructured
| ^^^^^^^^^^^^^^^ The `id` tag cannot be destructured
2 |
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

at packages/translator-tags/src/__tests__/fixtures/error-id-no-tag-var/template.marko:1:2
> 1 | <id/>
| ^^ The 'id' tag requires a tag variable.
| ^^ The `id` tag requires a tag variable.
2 |
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

at packages/translator-tags/src/__tests__/fixtures/error-id-no-tag-var/template.marko:1:2
> 1 | <id/>
| ^^ The 'id' tag requires a tag variable.
| ^^ The `id` tag requires a tag variable.
2 |
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

at packages/translator-tags/src/__tests__/fixtures/error-if-extra-attr/template.marko:1:16
> 1 | <if=input.show y=2>Hello World</if>
| ^^^ The '<if>' tag only supports the default 'value' attribute.
| ^^^ The `if` tag only supports the `value` attribute.
2 |
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

at packages/translator-tags/src/__tests__/fixtures/error-if-extra-attr/template.marko:1:16
> 1 | <if=input.show y=2>Hello World</if>
| ^^^ The '<if>' tag only supports the default 'value' attribute.
| ^^^ The `if` tag only supports the `value` attribute.
2 |
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

at packages/translator-tags/src/__tests__/fixtures/error-if-no-content/template.marko:1:2
> 1 | <if=input.show />
| ^^ The '<if>' tag requires body content.
| ^^ The `if` tag requires body content.
2 |
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

at packages/translator-tags/src/__tests__/fixtures/error-if-no-content/template.marko:1:2
> 1 | <if=input.show />
| ^^ The '<if>' tag requires body content.
| ^^ The `if` tag requires body content.
2 |
Loading

0 comments on commit 75e5827

Please sign in to comment.