mirror of https://github.com/sveltejs/svelte
warn for possible use of component without uppercase tag name (#5302)
parent
99e2cfca11
commit
2d88dc460e
@ -0,0 +1,7 @@
|
|||||||
|
<script>
|
||||||
|
import thisShouldWarnMe from './MyComponent.svelte';
|
||||||
|
let i;
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<thisShouldWarnMe />
|
||||||
|
<i />
|
@ -0,0 +1,17 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
"code": "component-name-lowercase",
|
||||||
|
"message": "<thisShouldWarnMe> will be treated as an HTML element unless it begins with a capital letter",
|
||||||
|
"pos": 82,
|
||||||
|
"start": {
|
||||||
|
"character": 82,
|
||||||
|
"column": 0,
|
||||||
|
"line": 6
|
||||||
|
},
|
||||||
|
"end": {
|
||||||
|
"character": 102,
|
||||||
|
"column": 20,
|
||||||
|
"line": 6
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
Loading…
Reference in new issue