mirror of
https://github.com/denoland/deno.git
synced 2024-12-29 02:29:06 -05:00
63 lines
1.5 KiB
JSON
63 lines
1.5 KiB
JSON
|
[
|
||
|
{
|
||
|
"title": "Disable prefer-const for this line",
|
||
|
"kind": "quickfix",
|
||
|
"diagnostics": [
|
||
|
{
|
||
|
"range": {
|
||
|
"start": { "line": 1, "character": 5 },
|
||
|
"end": { "line": 1, "character": 12 }
|
||
|
},
|
||
|
"severity": 1,
|
||
|
"code": "prefer-const",
|
||
|
"source": "deno-lint",
|
||
|
"message": "'message' is never reassigned\nUse 'const' instead",
|
||
|
"relatedInformation": []
|
||
|
}
|
||
|
],
|
||
|
"edit": {
|
||
|
"changes": {
|
||
|
"file:///a/file.ts": [
|
||
|
{
|
||
|
"range": {
|
||
|
"start": { "line": 1, "character": 0 },
|
||
|
"end": { "line": 1, "character": 0 }
|
||
|
},
|
||
|
"newText": "// deno-lint-ignore prefer-const\n"
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"title": "Ignore lint errors for the entire file",
|
||
|
"kind": "quickfix",
|
||
|
"diagnostics": [
|
||
|
{
|
||
|
"range": {
|
||
|
"start": { "line": 1, "character": 5 },
|
||
|
"end": { "line": 1, "character": 12 }
|
||
|
},
|
||
|
"severity": 1,
|
||
|
"code": "prefer-const",
|
||
|
"source": "deno-lint",
|
||
|
"message": "'message' is never reassigned\nUse 'const' instead",
|
||
|
"relatedInformation": []
|
||
|
}
|
||
|
],
|
||
|
"edit": {
|
||
|
"changes": {
|
||
|
"file:///a/file.ts": [
|
||
|
{
|
||
|
"range": {
|
||
|
"start": { "line": 0, "character": 0 },
|
||
|
"end": { "line": 0, "character": 0 }
|
||
|
},
|
||
|
"newText": "// deno-lint-ignore-file\n"
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
]
|