Skip to content

Commit

Permalink
upgrade: swc, deno_doc, deno_lint, dprint
Browse files Browse the repository at this point in the history
  • Loading branch information
bartlomieju committed Oct 2, 2020
1 parent 454de99 commit 490381e
Show file tree
Hide file tree
Showing 6 changed files with 43 additions and 39 deletions.
56 changes: 27 additions & 29 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 = { version = "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" }

Expand All @@ -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"
Expand All @@ -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"] }
Expand Down
3 changes: 2 additions & 1 deletion cli/tests/lint/expected_from_stdin_json.out
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
},
"filename": "_stdin.ts",
"message": "`any` type is not allowed",
"code": "no-explicit-any"
"code": "no-explicit-any",
"hint": null
}
],
"errors": []
Expand Down
9 changes: 6 additions & 3 deletions cli/tests/lint/expected_json.out
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand All @@ -28,7 +29,8 @@
},
"filename": "[WILDCARD]file1.js",
"message": "Empty block statement",
"code": "no-empty"
"code": "no-empty",
"hint": null
},
{
"range": {
Expand All @@ -43,7 +45,8 @@
},
"filename": "[WILDCARD]file2.ts",
"message": "Empty block statement",
"code": "no-empty"
"code": "no-empty",
"hint": null
}
],
"errors": [
Expand Down
1 change: 1 addition & 0 deletions cli/tests/unit/console_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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");
},
Expand Down
3 changes: 2 additions & 1 deletion std/fmt/printf.ts
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ class Printf {
this.handleWidthOrPrecisionRef(WorP.WIDTH);
// force . or flag at this point
break;
default:
default: {
const val = parseInt(c);
// most likely parseInt does something stupid that makes
// it unusable for this scenario ...
Expand All @@ -220,6 +220,7 @@ class Printf {
flags.width = flags.width == -1 ? 0 : flags.width;
flags.width *= 10;
flags.width += val;
}
} // switch c
break;
case State.PRECISION: {
Expand Down

0 comments on commit 490381e

Please sign in to comment.