0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-10-30 09:08:00 -04:00
denoland-deno/cli/tests/lint/expected_json.out
souldzin d6cee70695
feat: Add "--json" flag to deno lint (#6940)
Co-authored-by: JackSkylark <jdslaughter44@gmail.com>
2020-08-13 17:30:46 +02:00

43 lines
944 B
Text

{
"diagnostics": [
{
"location": {
"filename": "[WILDCARD]",
"line": 1,
"col": 0
},
"message": "Ignore directive requires lint rule code",
"code": "ban-untagged-ignore",
"line_src": "// deno-lint-ignore",
"snippet_length": 19
},
{
"location": {
"filename": "[WILDCARD]",
"line": 2,
"col": 14
},
"message": "Empty block statement",
"code": "no-empty",
"line_src": "while (false) {}",
"snippet_length": 2
},
{
"location": {
"filename": "[WILDCARD]",
"line": 3,
"col": 12
},
"message": "Empty block statement",
"code": "no-empty",
"line_src": "} catch (e) {}",
"snippet_length": 2
}
],
"errors": [
{
"file_path": "[WILDCARD]malformed.js",
"message": "Expected RBrace, got None at [WILDCARD]malformed.js:4:15"
}
]
}