fix: adjust unknown code warning offset (#11621)

They were the wrong way around
fixes #11612
pull/11629/head
Simon H 1 year ago committed by GitHub
parent 7ef686f8ee
commit 573b9f1d74
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -1110,7 +1110,7 @@ const common_visitors = {
if (prev.type === 'Comment') {
ignores.push(
...extract_svelte_ignore(
prev.start + 2 /* '//'.length */,
prev.start + 4 /* '<!--'.length */,
prev.data,
state.analysis.runes
)
@ -1133,7 +1133,7 @@ const common_visitors = {
for (const comment of comments) {
ignores.push(
...extract_svelte_ignore(
comment.start + 4 /* '<!--'.length */,
comment.start + 2 /* '//'.length */,
comment.value,
state.analysis.runes
)

@ -4,11 +4,11 @@
"message": "`a11y-missing-attribute` is no longer valid — please use `a11y_missing_attribute` instead",
"start": {
"line": 3,
"column": 17
"column": 19
},
"end": {
"line": 3,
"column": 39
"column": 41
}
},
{
@ -28,11 +28,11 @@
"message": "`ally_missing_attribute` is not a recognised code (did you mean `a11y_missing_attribute`?)",
"start": {
"line": 8,
"column": 17
"column": 19
},
"end": {
"line": 8,
"column": 39
"column": 41
}
},
{
@ -52,11 +52,11 @@
"message": "`a11y-misplaced-scope` is no longer valid — please use `a11y_misplaced_scope` instead",
"start": {
"line": 13,
"column": 17
"column": 19
},
"end": {
"line": 13,
"column": 37
"column": 39
}
},
{

Loading…
Cancel
Save