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",
|
||||
"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.",
|
||||
"code": "avoid-nested-class",
|
||||
"message": "Avoid declaring classes below the top level scope",
|
||||
"start": {
|
||||
"column": 12,
|
||||
"line": 6
|
||||
"column": 2,
|
||||
"line": 3
|
||||
},
|
||||
"end": {
|
||||
"column": 21,
|
||||
"line": 6
|
||||
"column": 3,
|
||||
"line": 5
|
||||
}
|
||||
}
|
||||
]
|
||||
|
Loading…
Reference in new issue