summaryrefslogtreecommitdiff
path: root/cli
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2020-08-26 20:43:24 +0200
committerGitHub <noreply@github.com>2020-08-26 20:43:24 +0200
commit4a0bc747dd043e6f02e744dd1bb256ac9027c7c0 (patch)
treea405f9f758d5933068f8caacda11ebc07472f150 /cli
parent80111e57e61c22a3cb5b3d17136bface9e6f931b (diff)
upgrade: swc, deno_doc, deno_lint, dprint (#7194)
Diffstat (limited to 'cli')
-rw-r--r--cli/Cargo.toml10
-rw-r--r--cli/lint.rs4
-rw-r--r--cli/tests/lint/expected_json.out6
3 files changed, 10 insertions, 10 deletions
diff --git a/cli/Cargo.toml b/cli/Cargo.toml
index 631b74b89..d7149b79c 100644
--- a/cli/Cargo.toml
+++ b/cli/Cargo.toml
@@ -24,8 +24,8 @@ winapi = "0.3.9"
[dependencies]
deno_core = { path = "../core", version = "0.54.0" }
-deno_doc = { version = "0.1.1" }
-deno_lint = { version = "0.1.24", features = ["json"] }
+deno_doc = { version = "0.1.2" }
+deno_lint = { version = "0.1.25", features = ["json"] }
atty = "0.2.14"
base64 = "0.12.3"
@@ -35,7 +35,7 @@ clap = "2.33.2"
dissimilar = "1.0.2"
dlopen = "0.1.8"
encoding_rs = "0.8.23"
-dprint-plugin-typescript = "0.30.0"
+dprint-plugin-typescript = "0.30.1"
futures = "0.3.5"
http = "0.2.1"
idna = "0.2.0"
@@ -54,8 +54,8 @@ serde_derive = "1.0.115"
serde_json = { version = "1.0.57", features = [ "preserve_order" ] }
sys-info = "0.7.0"
sourcemap = "6.0.1"
-swc_common = { version = "=0.9.1", features = ["sourcemap"] }
-swc_ecmascript = { version = "=0.5.0", features = ["codegen", "parser", "transforms", "visit"] }
+swc_common = { version = "=0.10.0", features = ["sourcemap"] }
+swc_ecmascript = { version = "=0.6.1", features = ["codegen", "parser", "transforms", "visit"] }
tempfile = "3.1.0"
termcolor = "1.1.0"
tokio = { version = "0.2.22", features = ["full"] }
diff --git a/cli/lint.rs b/cli/lint.rs
index 4e12d582c..ec5ee7ba8 100644
--- a/cli/lint.rs
+++ b/cli/lint.rs
@@ -225,7 +225,7 @@ impl LintReporter for PrettyLintReporter {
Some(d.location.col as i64),
Some((d.location.col + d.snippet_length) as i64),
&[fmt_errors::format_location(
- &d.location.filename,
+ &d.filename,
d.location.line as i64,
d.location.col as i64,
)],
@@ -288,5 +288,5 @@ impl LintReporter for JsonLintReporter {
pub fn get_sort_key(a: &LintDiagnostic) -> String {
let location = &a.location;
- return format!("{}:{}:{}", location.filename, location.line, location.col);
+ return format!("{}:{}:{}", a.filename, location.line, location.col);
}
diff --git a/cli/tests/lint/expected_json.out b/cli/tests/lint/expected_json.out
index 8d2e83bb7..8c5a16f72 100644
--- a/cli/tests/lint/expected_json.out
+++ b/cli/tests/lint/expected_json.out
@@ -2,10 +2,10 @@
"diagnostics": [
{
"location": {
- "filename": "[WILDCARD]",
"line": 1,
"col": 0
},
+ "filename": "[WILDCARD]",
"message": "Ignore directive requires lint rule code",
"code": "ban-untagged-ignore",
"line_src": "// deno-lint-ignore",
@@ -13,10 +13,10 @@
},
{
"location": {
- "filename": "[WILDCARD]",
"line": 2,
"col": 14
},
+ "filename": "[WILDCARD]",
"message": "Empty block statement",
"code": "no-empty",
"line_src": "while (false) {}",
@@ -24,10 +24,10 @@
},
{
"location": {
- "filename": "[WILDCARD]",
"line": 3,
"col": 12
},
+ "filename": "[WILDCARD]",
"message": "Empty block statement",
"code": "no-empty",
"line_src": "} catch (e) {}",