-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
warn if using svelte:options tag without compile_options.customElement
- Loading branch information
Showing
3 changed files
with
25 additions
and
0 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
1 change: 1 addition & 0 deletions
1
test/validator/samples/missing-custom-element-compile-options/input.svelte
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
<svelte:options tag="custom-element" /> |
17 changes: 17 additions & 0 deletions
17
test/validator/samples/missing-custom-element-compile-options/warnings.json
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
[ | ||
{ | ||
"code": "missing-custom-element-compile-options", | ||
"end": { | ||
"character": 36, | ||
"column": 36, | ||
"line": 1 | ||
}, | ||
"message": "tag name is used when compiling the compenent as a custom element. Did you forgot to add \"customElement\" for compile options?", | ||
"pos": 16, | ||
"start": { | ||
"character": 16, | ||
"column": 16, | ||
"line": 1 | ||
} | ||
} | ||
] |