summaryrefslogtreecommitdiff
path: root/cli/tests/lint/expected_json.out
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tests/lint/expected_json.out')
-rw-r--r--cli/tests/lint/expected_json.out54
1 files changed, 33 insertions, 21 deletions
diff --git a/cli/tests/lint/expected_json.out b/cli/tests/lint/expected_json.out
index 8c5a16f72..71340578e 100644
--- a/cli/tests/lint/expected_json.out
+++ b/cli/tests/lint/expected_json.out
@@ -1,37 +1,49 @@
{
"diagnostics": [
{
- "location": {
- "line": 1,
- "col": 0
+ "range": {
+ "start": {
+ "line": 1,
+ "col": 0
+ },
+ "end": {
+ "line": 1,
+ "col": 19
+ }
},
- "filename": "[WILDCARD]",
+ "filename": "[WILDCARD]file1.js",
"message": "Ignore directive requires lint rule code",
- "code": "ban-untagged-ignore",
- "line_src": "// deno-lint-ignore",
- "snippet_length": 19
+ "code": "ban-untagged-ignore"
},
{
- "location": {
- "line": 2,
- "col": 14
+ "range": {
+ "start": {
+ "line": 2,
+ "col": 14
+ },
+ "end": {
+ "line": 2,
+ "col": 16
+ }
},
- "filename": "[WILDCARD]",
+ "filename": "[WILDCARD]file1.js",
"message": "Empty block statement",
- "code": "no-empty",
- "line_src": "while (false) {}",
- "snippet_length": 2
+ "code": "no-empty"
},
{
- "location": {
- "line": 3,
- "col": 12
+ "range": {
+ "start": {
+ "line": 3,
+ "col": 12
+ },
+ "end": {
+ "line": 3,
+ "col": 14
+ }
},
- "filename": "[WILDCARD]",
+ "filename": "[WILDCARD]file2.ts",
"message": "Empty block statement",
- "code": "no-empty",
- "line_src": "} catch (e) {}",
- "snippet_length": 2
+ "code": "no-empty"
}
],
"errors": [