summaryrefslogtreecommitdiff
path: root/cli
diff options
context:
space:
mode:
Diffstat (limited to 'cli')
-rw-r--r--cli/Cargo.toml10
-rw-r--r--cli/graph.rs3
-rw-r--r--cli/tests/lint/expected_from_stdin_json.out3
-rw-r--r--cli/tests/lint/expected_json.out9
-rw-r--r--cli/tests/unit/console_test.ts1
5 files changed, 16 insertions, 10 deletions
diff --git a/cli/Cargo.toml b/cli/Cargo.toml
index 3666b8e51..12eb70e06 100644
--- a/cli/Cargo.toml
+++ b/cli/Cargo.toml
@@ -30,8 +30,8 @@ winapi = "0.3.9"
[dependencies]
deno_core = { path = "../core", version = "0.59.0" }
-deno_doc = "0.1.9"
-deno_lint = { version = "0.2.0", features = ["json"] }
+deno_doc = "0.1.10"
+deno_lint = { version = "0.2.2", features = ["json"] }
deno_web = { path = "../op_crates/web", version = "0.11.0" }
deno_fetch = { path = "../op_crates/fetch", version = "0.3.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.1"
+dprint-plugin-typescript = "0.32.2"
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.2", features = ["sourcemap"] }
-swc_ecmascript = { version = "=0.7.7", features = ["codegen", "dep_graph", "parser", "react", "transforms", "visit"] }
+swc_common = { version = "=0.10.3", features = ["sourcemap"] }
+swc_ecmascript = { version = "=0.8.3", 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/graph.rs b/cli/graph.rs
index d3f05c5f4..ed8f5cad7 100644
--- a/cli/graph.rs
+++ b/cli/graph.rs
@@ -1030,12 +1030,13 @@ mod tests {
);
let h = handler.borrow();
assert_eq!(h.cache_calls.len(), 1, "only one file should be emitted");
+ // FIXME(bartlomieju): had to add space in `<div>`, probably a quirk in swc_ecma_codegen
assert!(
h.cache_calls[0]
.2
.to_string()
.unwrap()
- .contains("<div>Hello world!</div>"),
+ .contains("<div >Hello world!</div>"),
"jsx should have been preserved"
);
}
diff --git a/cli/tests/lint/expected_from_stdin_json.out b/cli/tests/lint/expected_from_stdin_json.out
index ed5a0c5dc..148ee6cdd 100644
--- a/cli/tests/lint/expected_from_stdin_json.out
+++ b/cli/tests/lint/expected_from_stdin_json.out
@@ -13,7 +13,8 @@
},
"filename": "_stdin.ts",
"message": "`any` type is not allowed",
- "code": "no-explicit-any"
+ "code": "no-explicit-any",
+ "hint": null
}
],
"errors": []
diff --git a/cli/tests/lint/expected_json.out b/cli/tests/lint/expected_json.out
index 71340578e..a49818a3b 100644
--- a/cli/tests/lint/expected_json.out
+++ b/cli/tests/lint/expected_json.out
@@ -13,7 +13,8 @@
},
"filename": "[WILDCARD]file1.js",
"message": "Ignore directive requires lint rule code",
- "code": "ban-untagged-ignore"
+ "code": "ban-untagged-ignore",
+ "hint": null
},
{
"range": {
@@ -28,7 +29,8 @@
},
"filename": "[WILDCARD]file1.js",
"message": "Empty block statement",
- "code": "no-empty"
+ "code": "no-empty",
+ "hint": null
},
{
"range": {
@@ -43,7 +45,8 @@
},
"filename": "[WILDCARD]file2.ts",
"message": "Empty block statement",
- "code": "no-empty"
+ "code": "no-empty",
+ "hint": null
}
],
"errors": [
diff --git a/cli/tests/unit/console_test.ts b/cli/tests/unit/console_test.ts
index c9cbcc313..caee51a31 100644
--- a/cli/tests/unit/console_test.ts
+++ b/cli/tests/unit/console_test.ts
@@ -1501,6 +1501,7 @@ unitTest(function inspectString(): void {
unitTest(function inspectGetterError(): void {
assertEquals(
Deno.inspect({
+ // deno-lint-ignore getter-return
get foo() {
throw new Error("bar");
},