mirror of https://github.com/sveltejs/svelte
Co-authored-by: Oscar Dominguez <dominguez.celada@gmail.com>pull/12752/head
parent
1942f87ed9
commit
01165a224e
@ -0,0 +1,5 @@
|
||||
---
|
||||
'svelte': patch
|
||||
---
|
||||
|
||||
feat: warn for lowercase `object.component` rendering
|
||||
@ -0,0 +1,7 @@
|
||||
<script>
|
||||
const component = $state({});
|
||||
</script>
|
||||
|
||||
<component.component></component.component>
|
||||
|
||||
<weird.element></weird.element>
|
||||
@ -0,0 +1,14 @@
|
||||
[
|
||||
{
|
||||
"code": "lowercase_component_rendering",
|
||||
"message": "Are you trying to render `component.component`? Component names should be uppercase.",
|
||||
"start": {
|
||||
"line": 5,
|
||||
"column": 0
|
||||
},
|
||||
"end": {
|
||||
"line": 5,
|
||||
"column": 43
|
||||
}
|
||||
}
|
||||
]
|
||||
Loading…
Reference in new issue