1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-25 00:29:09 -05:00
denoland-deno/cli/tests/testdata/lint/expected_json.out
David Sherret e5e2c45998
fix: upgrade to deno_ast 0.33 (#22341)
* Uses diagnostics from deno_ast
* Real fix for https://github.com/denoland/deno/pull/22310
* Moves `deno lint --json` code here
* Upgrades swc
   
 Closes #22117
 Closes #22109
 Closes #21927
 Closes #20993
2024-02-09 01:40:26 +00:00

64 lines
1.3 KiB
Text

{
"diagnostics": [
{
"filename": "[WILDCARD]file1.js",
"range": {
"start": {
"line": 1,
"col": 0,
"bytePos": 0
},
"end": {
"line": 1,
"col": 19,
"bytePos": 19
}
},
"message": "Ignore directive requires lint rule name(s)",
"code": "ban-untagged-ignore",
"hint": [WILDCARD]
},
{
"filename": "[WILDCARD]file1.js",
"range": {
"start": {
"line": 2,
"col": 14,
"bytePos": 34
},
"end": {
"line": 2,
"col": 16,
"bytePos": 36
}
},
"message": "Empty block statement",
"code": "no-empty",
"hint": [WILDCARD]
},
{
"filename": "[WILDCARD]file2.ts",
"range": {
"start": {
"line": 3,
"col": 13,
"bytePos": 57
},
"end": {
"line": 3,
"col": 15,
"bytePos": 59
}
},
"message": "Empty block statement",
"code": "no-empty",
"hint": [WILDCARD]
}
],
"errors": [
{
"file_path": "[WILDCARD]malformed.js",
"message": "Expected '{', got 'B' at [WILDCARD]malformed.js:4:16\n\n export class A B C\n ~"
}
]
}