summaryrefslogtreecommitdiff
path: root/cli
diff options
context:
space:
mode:
Diffstat (limited to 'cli')
-rw-r--r--cli/Cargo.toml12
-rw-r--r--cli/lsp/analysis.rs2
-rw-r--r--cli/tests/unit/timers_test.ts1
-rw-r--r--cli/tools/lint.rs4
4 files changed, 9 insertions, 10 deletions
diff --git a/cli/Cargo.toml b/cli/Cargo.toml
index f561b74e2..2c5213675 100644
--- a/cli/Cargo.toml
+++ b/cli/Cargo.toml
@@ -31,8 +31,8 @@ winres = "0.1.11"
[dependencies]
deno_core = { path = "../core", version = "0.86.0" }
-deno_doc = "0.3.0"
-deno_lint = "0.4.0"
+deno_doc = "0.4.0"
+deno_lint = "0.5.0"
deno_runtime = { path = "../runtime", version = "0.13.0" }
atty = "0.2.14"
@@ -43,7 +43,7 @@ data-url = "0.1.0"
dissimilar = "1.0.2"
dprint-plugin-json = "0.10.2"
dprint-plugin-markdown = "0.7.1"
-dprint-plugin-typescript = "0.44.2"
+dprint-plugin-typescript = "0.45.0"
encoding_rs = "0.8.28"
env_logger = "0.8.3"
fancy-regex = "0.5.0"
@@ -67,9 +67,9 @@ semver-parser = "0.10.2"
serde = { version = "1.0.125", features = ["derive"] }
shell-escape = "0.1.5"
sourcemap = "6.0.1"
-swc_bundler = "0.32.5"
-swc_common = { version = "0.10.17", features = ["sourcemap"] }
-swc_ecmascript = { version = "0.31.3", features = ["codegen", "dep_graph", "parser", "proposal", "react", "transforms", "typescript", "visit"] }
+swc_bundler = "0.34.0"
+swc_common = { version = "0.10.18", features = ["sourcemap"] }
+swc_ecmascript = { version = "0.33.0", features = ["codegen", "dep_graph", "parser", "proposal", "react", "transforms", "typescript", "visit"] }
tempfile = "3.2.0"
termcolor = "1.1.2"
text-size = "1.1.0"
diff --git a/cli/lsp/analysis.rs b/cli/lsp/analysis.rs
index 103a9c810..fd848c564 100644
--- a/cli/lsp/analysis.rs
+++ b/cli/lsp/analysis.rs
@@ -95,7 +95,7 @@ pub fn get_lint_references(
) -> Result<Vec<Reference>, AnyError> {
let syntax = ast::get_syntax(media_type);
let lint_rules = rules::get_recommended_rules();
- let mut linter = create_linter(syntax, lint_rules);
+ let linter = create_linter(syntax, lint_rules);
// TODO(@kitsonk) we should consider caching the swc source file versions for
// reuse by other processes
let (_, lint_diagnostics) =
diff --git a/cli/tests/unit/timers_test.ts b/cli/tests/unit/timers_test.ts
index f04793afe..7e974d060 100644
--- a/cli/tests/unit/timers_test.ts
+++ b/cli/tests/unit/timers_test.ts
@@ -144,7 +144,6 @@ unitTest(async function timeoutCancelInvalidSilentFail(): Promise<void> {
// Expect no panic
const promise = deferred();
let count = 0;
- // deno-lint-ignore no-unused-vars
const id = setTimeout((): void => {
count++;
// Should have no effect
diff --git a/cli/tools/lint.rs b/cli/tools/lint.rs
index e2897b72e..f9444c497 100644
--- a/cli/tools/lint.rs
+++ b/cli/tools/lint.rs
@@ -152,7 +152,7 @@ fn lint_file(
let syntax = ast::get_syntax(&media_type);
let lint_rules = rules::get_recommended_rules();
- let mut linter = create_linter(syntax, lint_rules);
+ let linter = create_linter(syntax, lint_rules);
let (_, file_diagnostics) = linter.lint(file_name, source_code.clone())?;
@@ -176,7 +176,7 @@ fn lint_stdin(json: bool) -> Result<(), AnyError> {
let mut reporter = create_reporter(reporter_kind);
let lint_rules = rules::get_recommended_rules();
let syntax = ast::get_syntax(&MediaType::TypeScript);
- let mut linter = create_linter(syntax, lint_rules);
+ let linter = create_linter(syntax, lint_rules);
let mut has_error = false;
let pseudo_file_name = "_stdin.ts";
match linter