mirror of https://github.com/sveltejs/svelte
disallow simultaneous foo / {foo} / bind:foo (#4343)
* disallow matching attributes/shorthands/bindings (#4325) * add tests * update changelogpull/4344/head
parent
9e7df1e41a
commit
5076613256
@ -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