diff options
Diffstat (limited to 'cli')
-rw-r--r-- | cli/Cargo.toml | 10 | ||||
-rw-r--r-- | cli/tests/lint/expected_from_stdin_json.out | 6 | ||||
-rw-r--r-- | cli/tests/lint/expected_json.out | 22 | ||||
-rw-r--r-- | cli/tests/lint/expected_quiet.out | 2 | ||||
-rw-r--r-- | cli/tests/unit/console_test.ts | 1 |
5 files changed, 24 insertions, 17 deletions
diff --git a/cli/Cargo.toml b/cli/Cargo.toml index b5fc5ba4b..efe815dc5 100644 --- a/cli/Cargo.toml +++ b/cli/Cargo.toml @@ -30,8 +30,8 @@ winapi = "0.3.9" [dependencies] deno_core = { path = "../core", version = "0.63.0" } -deno_doc = "0.1.11" -deno_lint = { version = "0.2.3", features = ["json"] } +deno_doc = "0.1.12" +deno_lint = "0.2.4" deno_web = { path = "../op_crates/web", version = "0.15.0" } deno_fetch = { path = "../op_crates/fetch", version = "0.7.0" } @@ -43,7 +43,7 @@ clap = "2.33.3" dissimilar = "1.0.2" dlopen = "0.1.8" encoding_rs = "0.8.24" -dprint-plugin-typescript = "0.32.4" +dprint-plugin-typescript = "0.32.5" filetime = "0.2.12" http = "0.2.1" indexmap = "1.6.0" @@ -61,8 +61,8 @@ rustyline-derive = "0.3.1" serde = { version = "1.0.116", features = ["derive"] } sys-info = "0.7.0" sourcemap = "6.0.1" -swc_common = { version = "=0.10.3", features = ["sourcemap"] } -swc_ecmascript = { version = "=0.9.1", features = ["codegen", "dep_graph", "parser", "react", "transforms", "visit"] } +swc_common = { version = "=0.10.4", features = ["sourcemap"] } +swc_ecmascript = { version = "=0.10.1", features = ["codegen", "dep_graph", "parser", "react", "transforms", "visit"] } tempfile = "3.1.0" termcolor = "1.1.0" tokio = { version = "0.2.22", features = ["full"] } diff --git a/cli/tests/lint/expected_from_stdin_json.out b/cli/tests/lint/expected_from_stdin_json.out index 148ee6cdd..611b95d08 100644 --- a/cli/tests/lint/expected_from_stdin_json.out +++ b/cli/tests/lint/expected_from_stdin_json.out @@ -4,11 +4,13 @@ "range": { "start": { "line": 1, - "col": 7 + "col": 7, + "bytePos": 7 }, "end": { "line": 1, - "col": 10 + "col": 10, + "bytePos": 10 } }, "filename": "_stdin.ts", diff --git a/cli/tests/lint/expected_json.out b/cli/tests/lint/expected_json.out index a49818a3b..20dd47d8c 100644 --- a/cli/tests/lint/expected_json.out +++ b/cli/tests/lint/expected_json.out @@ -4,27 +4,31 @@ "range": { "start": { "line": 1, - "col": 0 + "col": 0, + "bytePos": 0 }, "end": { "line": 1, - "col": 19 + "col": 19, + "bytePos": 19 } }, "filename": "[WILDCARD]file1.js", - "message": "Ignore directive requires lint rule code", + "message": "Ignore directive requires lint rule name(s)", "code": "ban-untagged-ignore", - "hint": null + "hint": [WILDCARD] }, { "range": { "start": { "line": 2, - "col": 14 + "col": 14, + "bytePos": 34 }, "end": { "line": 2, - "col": 16 + "col": 16, + "bytePos": 36 } }, "filename": "[WILDCARD]file1.js", @@ -36,11 +40,13 @@ "range": { "start": { "line": 3, - "col": 12 + "col": 12, + "bytePos": 56 }, "end": { "line": 3, - "col": 14 + "col": 14, + "bytePos": 58 } }, "filename": "[WILDCARD]file2.ts", diff --git a/cli/tests/lint/expected_quiet.out b/cli/tests/lint/expected_quiet.out index a7f269efa..45a308344 100644 --- a/cli/tests/lint/expected_quiet.out +++ b/cli/tests/lint/expected_quiet.out @@ -1,4 +1,4 @@ -(ban-untagged-ignore) Ignore directive requires lint rule code +(ban-untagged-ignore) Ignore directive requires lint rule name(s) // deno-lint-ignore ^^^^^^^^^^^^^^^^^^^ at [WILDCARD]file1.js:1:0 diff --git a/cli/tests/unit/console_test.ts b/cli/tests/unit/console_test.ts index ee9f86366..11cefda27 100644 --- a/cli/tests/unit/console_test.ts +++ b/cli/tests/unit/console_test.ts @@ -1530,7 +1530,6 @@ unitTest(function inspectGetters(): void { assertEquals( Deno.inspect({ - // deno-lint-ignore getter-return get foo() { throw new Error("bar"); }, |