mirror of https://github.com/sveltejs/svelte
put nested class warning on the declaration, not the usage site (#9592)
Co-authored-by: Rich Harris <rich.harris@vercel.com>pull/9593/head
parent
fe9c0bc19d
commit
13aef5245b
@ -1,14 +1,14 @@
|
|||||||
[
|
[
|
||||||
{
|
{
|
||||||
"code": "inline-new-class",
|
"code": "avoid-nested-class",
|
||||||
"message": "Creating inline classes will likely cause performance issues. Instead, declare the class at the module-level and create new instances from the class reference.",
|
"message": "Avoid declaring classes below the top level scope",
|
||||||
"start": {
|
"start": {
|
||||||
"column": 12,
|
"column": 2,
|
||||||
"line": 6
|
"line": 3
|
||||||
},
|
},
|
||||||
"end": {
|
"end": {
|
||||||
"column": 21,
|
"column": 3,
|
||||||
"line": 6
|
"line": 5
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
Loading…
Reference in new issue