Skip to content

Commit

Permalink
upgrade: deno_doc, deno_lint, dprint, swc (#8009)
Browse files Browse the repository at this point in the history
  • Loading branch information
bartlomieju authored Oct 17, 2020
1 parent 46b892a commit c1c7601
Show file tree
Hide file tree
Showing 7 changed files with 52 additions and 43 deletions.
52 changes: 26 additions & 26 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.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" }

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.4"
dprint-plugin-typescript = "0.32.5"
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.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"] }
Expand Down
6 changes: 4 additions & 2 deletions cli/tests/lint/expected_from_stdin_json.out
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
22 changes: 14 additions & 8 deletions cli/tests/lint/expected_json.out
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion cli/tests/lint/expected_quiet.out
Original file line number Diff line number Diff line change
@@ -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
Expand Down
1 change: 0 additions & 1 deletion cli/tests/unit/console_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1530,7 +1530,6 @@ unitTest(function inspectGetters(): void {

assertEquals(
Deno.inspect({
// deno-lint-ignore getter-return
get foo() {
throw new Error("bar");
},
Expand Down
2 changes: 2 additions & 0 deletions std/archive/tar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -493,6 +493,8 @@ class TarEntry implements Reader {

this.#read += n || 0;
if (n === null || bytesLeft <= 0) {
// FIXME(bartlomieju): this condition makes no sense
// deno-lint-ignore no-constant-condition
if (null) this.#consumed = true;
return null;
}
Expand Down

0 comments on commit c1c7601

Please sign in to comment.