From e5e2c45998d3a655c4b2d78c0a1fcb61e09c1982 Mon Sep 17 00:00:00 2001 From: David Sherret Date: Thu, 8 Feb 2024 20:40:26 -0500 Subject: 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 --- cli/tests/testdata/lint/expected_json.out | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'cli/tests/testdata/lint/expected_json.out') diff --git a/cli/tests/testdata/lint/expected_json.out b/cli/tests/testdata/lint/expected_json.out index 08ea0d3e0..95c3d30ba 100644 --- a/cli/tests/testdata/lint/expected_json.out +++ b/cli/tests/testdata/lint/expected_json.out @@ -1,6 +1,7 @@ { "diagnostics": [ { + "filename": "[WILDCARD]file1.js", "range": { "start": { "line": 1, @@ -13,12 +14,12 @@ "bytePos": 19 } }, - "filename": "[WILDCARD]file1.js", "message": "Ignore directive requires lint rule name(s)", "code": "ban-untagged-ignore", "hint": [WILDCARD] }, { + "filename": "[WILDCARD]file1.js", "range": { "start": { "line": 2, @@ -31,12 +32,12 @@ "bytePos": 36 } }, - "filename": "[WILDCARD]file1.js", "message": "Empty block statement", "code": "no-empty", "hint": [WILDCARD] }, { + "filename": "[WILDCARD]file2.ts", "range": { "start": { "line": 3, @@ -49,7 +50,6 @@ "bytePos": 59 } }, - "filename": "[WILDCARD]file2.ts", "message": "Empty block statement", "code": "no-empty", "hint": [WILDCARD] -- cgit v1.2.3