mirror of https://github.com/sveltejs/svelte
disallow simultaneous foo / {foo} / bind:foo (#4343)
* disallow matching attributes/shorthands/bindings (#4325) * add tests * update changelogpull/4460/head
parent
dcb3031961
commit
168c29a0fa
@ -0,0 +1,10 @@
|
||||
{
|
||||
"code": "duplicate-attribute",
|
||||
"message": "Attributes need to be unique",
|
||||
"start": {
|
||||
"line": 1,
|
||||
"column": 17,
|
||||
"character": 17
|
||||
},
|
||||
"pos": 17
|
||||
}
|
@ -0,0 +1 @@
|
||||
<Widget foo={42} bind:foo/>
|
@ -0,0 +1,10 @@
|
||||
{
|
||||
"code": "duplicate-attribute",
|
||||
"message": "Attributes need to be unique",
|
||||
"start": {
|
||||
"line": 1,
|
||||
"column": 17,
|
||||
"character": 17
|
||||
},
|
||||
"pos": 17
|
||||
}
|
@ -0,0 +1 @@
|
||||
<div title='foo' {title}></div>
|
Loading…
Reference in new issue