mirror of https://github.com/sveltejs/svelte
warn if React attributes are used (#5836)
parent
662d9b44e6
commit
2d5d6b05ed
@ -0,0 +1,2 @@
|
||||
<div className="abc"></div>
|
||||
<label htmlFor="i"><input /></label>
|
@ -0,0 +1,32 @@
|
||||
[
|
||||
{
|
||||
"code": "invalid-html-attribute",
|
||||
"message": "'className' is not a valid HTML attribute. Did you mean 'class'?",
|
||||
"pos": 5,
|
||||
"start": {
|
||||
"character": 5,
|
||||
"column": 5,
|
||||
"line": 1
|
||||
},
|
||||
"end": {
|
||||
"character": 20,
|
||||
"column": 20,
|
||||
"line": 1
|
||||
}
|
||||
},
|
||||
{
|
||||
"code": "invalid-html-attribute",
|
||||
"message": "'htmlFor' is not a valid HTML attribute. Did you mean 'for'?",
|
||||
"pos": 35,
|
||||
"start": {
|
||||
"character": 35,
|
||||
"column": 7,
|
||||
"line": 2
|
||||
},
|
||||
"end": {
|
||||
"character": 46,
|
||||
"column": 18,
|
||||
"line": 2
|
||||
}
|
||||
}
|
||||
]
|
Loading…
Reference in new issue