From 21e8260cc9a8124c57e0bf7e829f07984f1de1ff Mon Sep 17 00:00:00 2001 From: Marvin Hagemeister Date: Mon, 27 Jan 2025 17:54:35 +0100 Subject: [PATCH] fix(lint): update jsx/react related rules and names (#27836) This PR updates `deno_lint` which contains a couple of bug fixes for JSX/React related rules. The react rules now have all a `react-*` prefix in the name as well. --- Cargo.lock | 4 ++-- cli/Cargo.toml | 2 +- cli/schemas/lint-rules.v1.json | 8 +++---- tests/specs/lint/bom/mod.out | 2 +- tests/specs/lint/gitignore/expected.out | 2 +- tests/specs/lint/jsr_tag/package.out | 2 +- tests/specs/lint/jsx/react-jsx.out | 2 +- .../lint.out | 4 ++-- .../main_unix.out | 4 ++-- .../main_windows.out | 4 ++-- tests/specs/lint/quiet/expected_quiet.out | 4 ++-- .../specs/lint/stdin/expected_from_stdin.out | 2 +- .../lint/syntax_error_reporting/lint.out | 2 +- tests/specs/lint/with_config/with_config.out | 4 ++-- .../with_config_and_flags.out | 4 ++-- .../with_config_without_tags.out | 4 ++-- .../with_glob_config_unix.out | 18 +++++++-------- .../with_glob_config_windows.out | 18 +++++++-------- .../with_glob_config_and_flags_unix.out | 22 +++++++++---------- .../with_glob_config_and_flags_windows.out | 22 +++++++++---------- tests/specs/lint/workspace/a.out | 6 ++--- tests/specs/lint/workspace/root.out | 16 +++++++------- 22 files changed, 78 insertions(+), 78 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 030af392b4..9f287ecfc7 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1945,9 +1945,9 @@ dependencies = [ [[package]] name = "deno_lint" -version = "0.69.0" +version = "0.70.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "802583d3ca6c7063e14cafa02ddc206fb34e804e095d52032baf375c56a99515" +checksum = "ac94db8d8597b96c92d30a68b11d4bec6822dcbb3e8675ab1e0136816a301a34" dependencies = [ "anyhow", "deno_ast", diff --git a/cli/Cargo.toml b/cli/Cargo.toml index 580420ede1..32bf639250 100644 --- a/cli/Cargo.toml +++ b/cli/Cargo.toml @@ -74,7 +74,7 @@ deno_doc = { version = "=0.164.0", features = ["rust", "comrak"] } deno_error.workspace = true deno_graph = { version = "=0.87.0" } deno_lib.workspace = true -deno_lint = { version = "0.69.0" } +deno_lint = { version = "0.70.0" } deno_lockfile.workspace = true deno_media_type = { workspace = true, features = ["data_url", "decoding", "module_specifier"] } deno_npm.workspace = true diff --git a/cli/schemas/lint-rules.v1.json b/cli/schemas/lint-rules.v1.json index cfec281952..87bd4e2600 100644 --- a/cli/schemas/lint-rules.v1.json +++ b/cli/schemas/lint-rules.v1.json @@ -8,7 +8,6 @@ "ban-untagged-ignore", "ban-untagged-todo", "ban-unused-ignore", - "button-has-type", "camelcase", "constructor-super", "default-param-last", @@ -21,11 +20,11 @@ "getter-return", "guard-for-in", "jsx-boolean-value", + "jsx-button-has-type", "jsx-curly-braces", "jsx-key", "jsx-no-children-prop", "jsx-no-comment-text-nodes", - "jsx-no-danger-with-children", "jsx-no-duplicate-props", "jsx-no-unescaped-entities", "jsx-no-useless-fragment", @@ -44,7 +43,6 @@ "no-const-assign", "no-constant-condition", "no-control-regex", - "no-danger", "no-debugger", "no-delete-var", "no-deprecated-deno-api", @@ -115,9 +113,11 @@ "prefer-const", "prefer-namespace-keyword", "prefer-primordials", + "react-no-danger", + "react-no-danger-with-children", + "react-rules-of-hooks", "require-await", "require-yield", - "rules-of-hooks", "single-var-declarator", "triple-slash-reference", "use-isnan", diff --git a/tests/specs/lint/bom/mod.out b/tests/specs/lint/bom/mod.out index eea1e531d7..18d9927958 100644 --- a/tests/specs/lint/bom/mod.out +++ b/tests/specs/lint/bom/mod.out @@ -5,7 +5,7 @@ error[no-unused-vars]: `t` is never used | ^ = hint: If this is intentional, prefix it with an underscore like `_t` - docs: https://lint.deno.land/rules/no-unused-vars + docs: https://docs.deno.com/lint/rules/no-unused-vars Found 1 problem diff --git a/tests/specs/lint/gitignore/expected.out b/tests/specs/lint/gitignore/expected.out index 8024b51d19..ac982926bd 100644 --- a/tests/specs/lint/gitignore/expected.out +++ b/tests/specs/lint/gitignore/expected.out @@ -5,7 +5,7 @@ error[no-empty]: Empty block statement | ^^ = hint: Add code or comment to the empty block - docs: https://lint.deno.land/rules/no-empty + docs: https://docs.deno.com/lint/rules/no-empty Found 1 problem diff --git a/tests/specs/lint/jsr_tag/package.out b/tests/specs/lint/jsr_tag/package.out index 5169d9815f..ff26e5104f 100644 --- a/tests/specs/lint/jsr_tag/package.out +++ b/tests/specs/lint/jsr_tag/package.out @@ -5,7 +5,7 @@ error[verbatim-module-syntax]: All import identifiers are used in types | ^^^^^^ = hint: Change `import` to `import type` and optionally add an explicit side effect import - docs: https://lint.deno.land/rules/verbatim-module-syntax + docs: https://docs.deno.com/lint/rules/verbatim-module-syntax Found 1 problem (1 fixable via --fix) diff --git a/tests/specs/lint/jsx/react-jsx.out b/tests/specs/lint/jsx/react-jsx.out index c8c7007791..3aba846e67 100644 --- a/tests/specs/lint/jsx/react-jsx.out +++ b/tests/specs/lint/jsx/react-jsx.out @@ -5,7 +5,7 @@ error[no-unused-vars]: `React` is never used | ^^^^^ = hint: If this is intentional, prefix it with an underscore like `_React` - docs: https://lint.deno.land/rules/no-unused-vars + docs: https://docs.deno.com/lint/rules/no-unused-vars Found 1 problem diff --git a/tests/specs/lint/node_globals_no_duplicate_imports/lint.out b/tests/specs/lint/node_globals_no_duplicate_imports/lint.out index d9ff7f77e2..7f2fcf7860 100644 --- a/tests/specs/lint/node_globals_no_duplicate_imports/lint.out +++ b/tests/specs/lint/node_globals_no_duplicate_imports/lint.out @@ -5,7 +5,7 @@ error[no-node-globals]: NodeJS globals are not available in Deno | ^^^^^^^^^^^^ = hint: Add `import { setImmediate } from "node:timers";` - docs: https://lint.deno.land/rules/no-node-globals + docs: https://docs.deno.com/lint/rules/no-node-globals error[no-node-globals]: NodeJS globals are not available in Deno @@ -15,7 +15,7 @@ error[no-node-globals]: NodeJS globals are not available in Deno | ^^^^^^^^^^^^ = hint: Add `import { setImmediate } from "node:timers";` - docs: https://lint.deno.land/rules/no-node-globals + docs: https://docs.deno.com/lint/rules/no-node-globals Found 2 problems (2 fixable via --fix) diff --git a/tests/specs/lint/opt_out_top_level_exclude_via_lint_inexclude/main_unix.out b/tests/specs/lint/opt_out_top_level_exclude_via_lint_inexclude/main_unix.out index 39a3e7746c..c603aab53a 100644 --- a/tests/specs/lint/opt_out_top_level_exclude_via_lint_inexclude/main_unix.out +++ b/tests/specs/lint/opt_out_top_level_exclude_via_lint_inexclude/main_unix.out @@ -6,7 +6,7 @@ error[no-unused-vars]: `a` is never used | ^ = hint: If this is intentional, prefix it with an underscore like `_a` - docs: https://lint.deno.land/rules/no-unused-vars + docs: https://docs.deno.com/lint/rules/no-unused-vars error[no-unused-vars]: `a` is never used @@ -16,7 +16,7 @@ error[no-unused-vars]: `a` is never used | ^ = hint: If this is intentional, prefix it with an underscore like `_a` - docs: https://lint.deno.land/rules/no-unused-vars + docs: https://docs.deno.com/lint/rules/no-unused-vars [UNORDERED_END] diff --git a/tests/specs/lint/opt_out_top_level_exclude_via_lint_inexclude/main_windows.out b/tests/specs/lint/opt_out_top_level_exclude_via_lint_inexclude/main_windows.out index 8edf1133ea..ccd4faaad7 100644 --- a/tests/specs/lint/opt_out_top_level_exclude_via_lint_inexclude/main_windows.out +++ b/tests/specs/lint/opt_out_top_level_exclude_via_lint_inexclude/main_windows.out @@ -6,7 +6,7 @@ error[no-unused-vars]: `a` is never used | ^ = hint: If this is intentional, prefix it with an underscore like `_a` - docs: https://lint.deno.land/rules/no-unused-vars + docs: https://docs.deno.com/lint/rules/no-unused-vars error[no-unused-vars]: `a` is never used @@ -16,7 +16,7 @@ error[no-unused-vars]: `a` is never used | ^ = hint: If this is intentional, prefix it with an underscore like `_a` - docs: https://lint.deno.land/rules/no-unused-vars + docs: https://docs.deno.com/lint/rules/no-unused-vars [UNORDERED_END] diff --git a/tests/specs/lint/quiet/expected_quiet.out b/tests/specs/lint/quiet/expected_quiet.out index 91c1a29cf1..3e154a49fd 100644 --- a/tests/specs/lint/quiet/expected_quiet.out +++ b/tests/specs/lint/quiet/expected_quiet.out @@ -5,7 +5,7 @@ error[ban-untagged-ignore]: Ignore directive requires lint rule name(s) | ^^^^^^^^^^^^^^^^^^^ = hint: Add one or more lint rule names. E.g. // deno-lint-ignore adjacent-overload-signatures - docs: https://lint.deno.land/rules/ban-untagged-ignore + docs: https://docs.deno.com/lint/rules/ban-untagged-ignore error[no-empty]: Empty block statement @@ -15,6 +15,6 @@ error[no-empty]: Empty block statement | ^^ = hint: Add code or comment to the empty block - docs: https://lint.deno.land/rules/no-empty + docs: https://docs.deno.com/lint/rules/no-empty diff --git a/tests/specs/lint/stdin/expected_from_stdin.out b/tests/specs/lint/stdin/expected_from_stdin.out index f65331ebd9..58f0804481 100644 --- a/tests/specs/lint/stdin/expected_from_stdin.out +++ b/tests/specs/lint/stdin/expected_from_stdin.out @@ -5,7 +5,7 @@ error[no-explicit-any]: `any` type is not allowed | ^^^ = hint: Use a specific type other than `any` - docs: https://lint.deno.land/rules/no-explicit-any + docs: https://docs.deno.com/lint/rules/no-explicit-any Found 1 problem diff --git a/tests/specs/lint/syntax_error_reporting/lint.out b/tests/specs/lint/syntax_error_reporting/lint.out index 31e4c576b6..c317faa205 100644 --- a/tests/specs/lint/syntax_error_reporting/lint.out +++ b/tests/specs/lint/syntax_error_reporting/lint.out @@ -9,7 +9,7 @@ error[no-unused-vars]: `foo` is never used | ^^^ = hint: If this is intentional, prefix it with an underscore like `_foo` - docs: https://lint.deno.land/rules/no-unused-vars + docs: https://docs.deno.com/lint/rules/no-unused-vars Found 1 problem diff --git a/tests/specs/lint/with_config/with_config.out b/tests/specs/lint/with_config/with_config.out index f527bb7121..caccc81aba 100644 --- a/tests/specs/lint/with_config/with_config.out +++ b/tests/specs/lint/with_config/with_config.out @@ -5,7 +5,7 @@ error[ban-untagged-todo]: TODO should be tagged with (@username) or (#issue) | ^^^^^^^^^^^^ = hint: Add a user tag or issue reference to the TODO comment, e.g. TODO(@djones), TODO(djones), TODO(#123) - docs: https://lint.deno.land/rules/ban-untagged-todo + docs: https://docs.deno.com/lint/rules/ban-untagged-todo error[no-unused-vars]: `add` is never used @@ -15,7 +15,7 @@ error[no-unused-vars]: `add` is never used | ^^^ = hint: If this is intentional, prefix it with an underscore like `_add` - docs: https://lint.deno.land/rules/no-unused-vars + docs: https://docs.deno.com/lint/rules/no-unused-vars Found 2 problems diff --git a/tests/specs/lint/with_config_and_flags/with_config_and_flags.out b/tests/specs/lint/with_config_and_flags/with_config_and_flags.out index 78e21ef8d8..c42ecbe3d8 100644 --- a/tests/specs/lint/with_config_and_flags/with_config_and_flags.out +++ b/tests/specs/lint/with_config_and_flags/with_config_and_flags.out @@ -5,7 +5,7 @@ error[ban-untagged-todo]: TODO should be tagged with (@username) or (#issue) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ = hint: Add a user tag or issue reference to the TODO comment, e.g. TODO(@djones), TODO(djones), TODO(#123) - docs: https://lint.deno.land/rules/ban-untagged-todo + docs: https://docs.deno.com/lint/rules/ban-untagged-todo error[no-unused-vars]: `subtract` is never used @@ -15,7 +15,7 @@ error[no-unused-vars]: `subtract` is never used | ^^^^^^^^ = hint: If this is intentional, prefix it with an underscore like `_subtract` - docs: https://lint.deno.land/rules/no-unused-vars + docs: https://docs.deno.com/lint/rules/no-unused-vars Found 2 problems diff --git a/tests/specs/lint/with_config_without_args/with_config_without_tags.out b/tests/specs/lint/with_config_without_args/with_config_without_tags.out index f527bb7121..caccc81aba 100644 --- a/tests/specs/lint/with_config_without_args/with_config_without_tags.out +++ b/tests/specs/lint/with_config_without_args/with_config_without_tags.out @@ -5,7 +5,7 @@ error[ban-untagged-todo]: TODO should be tagged with (@username) or (#issue) | ^^^^^^^^^^^^ = hint: Add a user tag or issue reference to the TODO comment, e.g. TODO(@djones), TODO(djones), TODO(#123) - docs: https://lint.deno.land/rules/ban-untagged-todo + docs: https://docs.deno.com/lint/rules/ban-untagged-todo error[no-unused-vars]: `add` is never used @@ -15,7 +15,7 @@ error[no-unused-vars]: `add` is never used | ^^^ = hint: If this is intentional, prefix it with an underscore like `_add` - docs: https://lint.deno.land/rules/no-unused-vars + docs: https://docs.deno.com/lint/rules/no-unused-vars Found 2 problems diff --git a/tests/specs/lint/with_glob_config/with_glob_config_unix.out b/tests/specs/lint/with_glob_config/with_glob_config_unix.out index fad285cbe7..1224bd5f90 100644 --- a/tests/specs/lint/with_glob_config/with_glob_config_unix.out +++ b/tests/specs/lint/with_glob_config/with_glob_config_unix.out @@ -6,7 +6,7 @@ error[no-unused-vars]: `foo` is never used | ^^^ = hint: If this is intentional, prefix it with an underscore like `_foo` - docs: https://lint.deno.land/rules/no-unused-vars + docs: https://docs.deno.com/lint/rules/no-unused-vars error[no-unused-vars]: `foo` is never used @@ -16,7 +16,7 @@ error[no-unused-vars]: `foo` is never used | ^^^ = hint: If this is intentional, prefix it with an underscore like `_foo` - docs: https://lint.deno.land/rules/no-unused-vars + docs: https://docs.deno.com/lint/rules/no-unused-vars error[no-unused-vars]: `foo` is never used @@ -26,7 +26,7 @@ error[no-unused-vars]: `foo` is never used | ^^^ = hint: If this is intentional, prefix it with an underscore like `_foo` - docs: https://lint.deno.land/rules/no-unused-vars + docs: https://docs.deno.com/lint/rules/no-unused-vars error[no-unused-vars]: `foo` is never used @@ -36,7 +36,7 @@ error[no-unused-vars]: `foo` is never used | ^^^ = hint: If this is intentional, prefix it with an underscore like `_foo` - docs: https://lint.deno.land/rules/no-unused-vars + docs: https://docs.deno.com/lint/rules/no-unused-vars error[no-unused-vars]: `foo` is never used @@ -46,7 +46,7 @@ error[no-unused-vars]: `foo` is never used | ^^^ = hint: If this is intentional, prefix it with an underscore like `_foo` - docs: https://lint.deno.land/rules/no-unused-vars + docs: https://docs.deno.com/lint/rules/no-unused-vars error[no-unused-vars]: `foo` is never used @@ -56,7 +56,7 @@ error[no-unused-vars]: `foo` is never used | ^^^ = hint: If this is intentional, prefix it with an underscore like `_foo` - docs: https://lint.deno.land/rules/no-unused-vars + docs: https://docs.deno.com/lint/rules/no-unused-vars error[no-unused-vars]: `foo` is never used @@ -66,7 +66,7 @@ error[no-unused-vars]: `foo` is never used | ^^^ = hint: If this is intentional, prefix it with an underscore like `_foo` - docs: https://lint.deno.land/rules/no-unused-vars + docs: https://docs.deno.com/lint/rules/no-unused-vars error[no-unused-vars]: `foo` is never used @@ -76,7 +76,7 @@ error[no-unused-vars]: `foo` is never used | ^^^ = hint: If this is intentional, prefix it with an underscore like `_foo` - docs: https://lint.deno.land/rules/no-unused-vars + docs: https://docs.deno.com/lint/rules/no-unused-vars error[no-unused-vars]: `foo` is never used @@ -86,7 +86,7 @@ error[no-unused-vars]: `foo` is never used | ^^^ = hint: If this is intentional, prefix it with an underscore like `_foo` - docs: https://lint.deno.land/rules/no-unused-vars + docs: https://docs.deno.com/lint/rules/no-unused-vars [UNORDERED_END] diff --git a/tests/specs/lint/with_glob_config/with_glob_config_windows.out b/tests/specs/lint/with_glob_config/with_glob_config_windows.out index 2ba0787912..a09ac13155 100644 --- a/tests/specs/lint/with_glob_config/with_glob_config_windows.out +++ b/tests/specs/lint/with_glob_config/with_glob_config_windows.out @@ -6,7 +6,7 @@ error[no-unused-vars]: `foo` is never used | ^^^ = hint: If this is intentional, prefix it with an underscore like `_foo` - docs: https://lint.deno.land/rules/no-unused-vars + docs: https://docs.deno.com/lint/rules/no-unused-vars error[no-unused-vars]: `foo` is never used @@ -16,7 +16,7 @@ error[no-unused-vars]: `foo` is never used | ^^^ = hint: If this is intentional, prefix it with an underscore like `_foo` - docs: https://lint.deno.land/rules/no-unused-vars + docs: https://docs.deno.com/lint/rules/no-unused-vars error[no-unused-vars]: `foo` is never used @@ -26,7 +26,7 @@ error[no-unused-vars]: `foo` is never used | ^^^ = hint: If this is intentional, prefix it with an underscore like `_foo` - docs: https://lint.deno.land/rules/no-unused-vars + docs: https://docs.deno.com/lint/rules/no-unused-vars error[no-unused-vars]: `foo` is never used @@ -36,7 +36,7 @@ error[no-unused-vars]: `foo` is never used | ^^^ = hint: If this is intentional, prefix it with an underscore like `_foo` - docs: https://lint.deno.land/rules/no-unused-vars + docs: https://docs.deno.com/lint/rules/no-unused-vars error[no-unused-vars]: `foo` is never used @@ -46,7 +46,7 @@ error[no-unused-vars]: `foo` is never used | ^^^ = hint: If this is intentional, prefix it with an underscore like `_foo` - docs: https://lint.deno.land/rules/no-unused-vars + docs: https://docs.deno.com/lint/rules/no-unused-vars error[no-unused-vars]: `foo` is never used @@ -56,7 +56,7 @@ error[no-unused-vars]: `foo` is never used | ^^^ = hint: If this is intentional, prefix it with an underscore like `_foo` - docs: https://lint.deno.land/rules/no-unused-vars + docs: https://docs.deno.com/lint/rules/no-unused-vars error[no-unused-vars]: `foo` is never used @@ -66,7 +66,7 @@ error[no-unused-vars]: `foo` is never used | ^^^ = hint: If this is intentional, prefix it with an underscore like `_foo` - docs: https://lint.deno.land/rules/no-unused-vars + docs: https://docs.deno.com/lint/rules/no-unused-vars error[no-unused-vars]: `foo` is never used @@ -76,7 +76,7 @@ error[no-unused-vars]: `foo` is never used | ^^^ = hint: If this is intentional, prefix it with an underscore like `_foo` - docs: https://lint.deno.land/rules/no-unused-vars + docs: https://docs.deno.com/lint/rules/no-unused-vars error[no-unused-vars]: `foo` is never used @@ -86,7 +86,7 @@ error[no-unused-vars]: `foo` is never used | ^^^ = hint: If this is intentional, prefix it with an underscore like `_foo` - docs: https://lint.deno.land/rules/no-unused-vars + docs: https://docs.deno.com/lint/rules/no-unused-vars [UNORDERED_END] diff --git a/tests/specs/lint/with_glob_config_and_flags/with_glob_config_and_flags_unix.out b/tests/specs/lint/with_glob_config_and_flags/with_glob_config_and_flags_unix.out index 9afca955ba..7e8cb919eb 100644 --- a/tests/specs/lint/with_glob_config_and_flags/with_glob_config_and_flags_unix.out +++ b/tests/specs/lint/with_glob_config_and_flags/with_glob_config_and_flags_unix.out @@ -6,7 +6,7 @@ error[no-unused-vars]: `foo` is never used | ^^^ = hint: If this is intentional, prefix it with an underscore like `_foo` - docs: https://lint.deno.land/rules/no-unused-vars + docs: https://docs.deno.com/lint/rules/no-unused-vars error[no-unused-vars]: `foo` is never used @@ -16,7 +16,7 @@ error[no-unused-vars]: `foo` is never used | ^^^ = hint: If this is intentional, prefix it with an underscore like `_foo` - docs: https://lint.deno.land/rules/no-unused-vars + docs: https://docs.deno.com/lint/rules/no-unused-vars error[no-unused-vars]: `foo` is never used @@ -26,7 +26,7 @@ error[no-unused-vars]: `foo` is never used | ^^^ = hint: If this is intentional, prefix it with an underscore like `_foo` - docs: https://lint.deno.land/rules/no-unused-vars + docs: https://docs.deno.com/lint/rules/no-unused-vars error[no-unused-vars]: `foo` is never used @@ -36,7 +36,7 @@ error[no-unused-vars]: `foo` is never used | ^^^ = hint: If this is intentional, prefix it with an underscore like `_foo` - docs: https://lint.deno.land/rules/no-unused-vars + docs: https://docs.deno.com/lint/rules/no-unused-vars error[no-unused-vars]: `foo` is never used @@ -46,7 +46,7 @@ error[no-unused-vars]: `foo` is never used | ^^^ = hint: If this is intentional, prefix it with an underscore like `_foo` - docs: https://lint.deno.land/rules/no-unused-vars + docs: https://docs.deno.com/lint/rules/no-unused-vars error[no-unused-vars]: `foo` is never used @@ -56,7 +56,7 @@ error[no-unused-vars]: `foo` is never used | ^^^ = hint: If this is intentional, prefix it with an underscore like `_foo` - docs: https://lint.deno.land/rules/no-unused-vars + docs: https://docs.deno.com/lint/rules/no-unused-vars error[no-unused-vars]: `foo` is never used @@ -66,7 +66,7 @@ error[no-unused-vars]: `foo` is never used | ^^^ = hint: If this is intentional, prefix it with an underscore like `_foo` - docs: https://lint.deno.land/rules/no-unused-vars + docs: https://docs.deno.com/lint/rules/no-unused-vars error[no-unused-vars]: `foo` is never used @@ -76,7 +76,7 @@ error[no-unused-vars]: `foo` is never used | ^^^ = hint: If this is intentional, prefix it with an underscore like `_foo` - docs: https://lint.deno.land/rules/no-unused-vars + docs: https://docs.deno.com/lint/rules/no-unused-vars error[no-unused-vars]: `foo` is never used @@ -86,7 +86,7 @@ error[no-unused-vars]: `foo` is never used | ^^^ = hint: If this is intentional, prefix it with an underscore like `_foo` - docs: https://lint.deno.land/rules/no-unused-vars + docs: https://docs.deno.com/lint/rules/no-unused-vars error[no-unused-vars]: `foo` is never used @@ -96,7 +96,7 @@ error[no-unused-vars]: `foo` is never used | ^^^ = hint: If this is intentional, prefix it with an underscore like `_foo` - docs: https://lint.deno.land/rules/no-unused-vars + docs: https://docs.deno.com/lint/rules/no-unused-vars error[no-unused-vars]: `foo` is never used @@ -106,7 +106,7 @@ error[no-unused-vars]: `foo` is never used | ^^^ = hint: If this is intentional, prefix it with an underscore like `_foo` - docs: https://lint.deno.land/rules/no-unused-vars + docs: https://docs.deno.com/lint/rules/no-unused-vars [UNORDERED_END] diff --git a/tests/specs/lint/with_glob_config_and_flags/with_glob_config_and_flags_windows.out b/tests/specs/lint/with_glob_config_and_flags/with_glob_config_and_flags_windows.out index 9446796ab9..3832a4a65c 100644 --- a/tests/specs/lint/with_glob_config_and_flags/with_glob_config_and_flags_windows.out +++ b/tests/specs/lint/with_glob_config_and_flags/with_glob_config_and_flags_windows.out @@ -6,7 +6,7 @@ error[no-unused-vars]: `foo` is never used | ^^^ = hint: If this is intentional, prefix it with an underscore like `_foo` - docs: https://lint.deno.land/rules/no-unused-vars + docs: https://docs.deno.com/lint/rules/no-unused-vars error[no-unused-vars]: `foo` is never used @@ -16,7 +16,7 @@ error[no-unused-vars]: `foo` is never used | ^^^ = hint: If this is intentional, prefix it with an underscore like `_foo` - docs: https://lint.deno.land/rules/no-unused-vars + docs: https://docs.deno.com/lint/rules/no-unused-vars error[no-unused-vars]: `foo` is never used @@ -26,7 +26,7 @@ error[no-unused-vars]: `foo` is never used | ^^^ = hint: If this is intentional, prefix it with an underscore like `_foo` - docs: https://lint.deno.land/rules/no-unused-vars + docs: https://docs.deno.com/lint/rules/no-unused-vars error[no-unused-vars]: `foo` is never used @@ -36,7 +36,7 @@ error[no-unused-vars]: `foo` is never used | ^^^ = hint: If this is intentional, prefix it with an underscore like `_foo` - docs: https://lint.deno.land/rules/no-unused-vars + docs: https://docs.deno.com/lint/rules/no-unused-vars error[no-unused-vars]: `foo` is never used @@ -46,7 +46,7 @@ error[no-unused-vars]: `foo` is never used | ^^^ = hint: If this is intentional, prefix it with an underscore like `_foo` - docs: https://lint.deno.land/rules/no-unused-vars + docs: https://docs.deno.com/lint/rules/no-unused-vars error[no-unused-vars]: `foo` is never used @@ -56,7 +56,7 @@ error[no-unused-vars]: `foo` is never used | ^^^ = hint: If this is intentional, prefix it with an underscore like `_foo` - docs: https://lint.deno.land/rules/no-unused-vars + docs: https://docs.deno.com/lint/rules/no-unused-vars error[no-unused-vars]: `foo` is never used @@ -66,7 +66,7 @@ error[no-unused-vars]: `foo` is never used | ^^^ = hint: If this is intentional, prefix it with an underscore like `_foo` - docs: https://lint.deno.land/rules/no-unused-vars + docs: https://docs.deno.com/lint/rules/no-unused-vars error[no-unused-vars]: `foo` is never used @@ -76,7 +76,7 @@ error[no-unused-vars]: `foo` is never used | ^^^ = hint: If this is intentional, prefix it with an underscore like `_foo` - docs: https://lint.deno.land/rules/no-unused-vars + docs: https://docs.deno.com/lint/rules/no-unused-vars error[no-unused-vars]: `foo` is never used @@ -86,7 +86,7 @@ error[no-unused-vars]: `foo` is never used | ^^^ = hint: If this is intentional, prefix it with an underscore like `_foo` - docs: https://lint.deno.land/rules/no-unused-vars + docs: https://docs.deno.com/lint/rules/no-unused-vars error[no-unused-vars]: `foo` is never used @@ -96,7 +96,7 @@ error[no-unused-vars]: `foo` is never used | ^^^ = hint: If this is intentional, prefix it with an underscore like `_foo` - docs: https://lint.deno.land/rules/no-unused-vars + docs: https://docs.deno.com/lint/rules/no-unused-vars error[no-unused-vars]: `foo` is never used @@ -106,7 +106,7 @@ error[no-unused-vars]: `foo` is never used | ^^^ = hint: If this is intentional, prefix it with an underscore like `_foo` - docs: https://lint.deno.land/rules/no-unused-vars + docs: https://docs.deno.com/lint/rules/no-unused-vars [UNORDERED_END] diff --git a/tests/specs/lint/workspace/a.out b/tests/specs/lint/workspace/a.out index 52f05af990..002fc886c3 100644 --- a/tests/specs/lint/workspace/a.out +++ b/tests/specs/lint/workspace/a.out @@ -5,7 +5,7 @@ error[no-eval]: `eval` call is not allowed | ^^^^^^^^ = hint: Remove the use of `eval` - docs: https://lint.deno.land/rules/no-eval + docs: https://docs.deno.com/lint/rules/no-eval error[no-await-in-loop]: Unexpected `await` inside a loop. @@ -15,7 +15,7 @@ error[no-await-in-loop]: Unexpected `await` inside a loop. | ^^^^^^^^^^^^^^^^^^^^^^^ = hint: Remove `await` in loop body, store all promises generated and then `await Promise.all(storedPromises)` after the loop - docs: https://lint.deno.land/rules/no-await-in-loop + docs: https://docs.deno.com/lint/rules/no-await-in-loop error[no-explicit-any]: `any` type is not allowed @@ -25,7 +25,7 @@ error[no-explicit-any]: `any` type is not allowed | ^^^ = hint: Use a specific type other than `any` - docs: https://lint.deno.land/rules/no-explicit-any + docs: https://docs.deno.com/lint/rules/no-explicit-any Found 3 problems diff --git a/tests/specs/lint/workspace/root.out b/tests/specs/lint/workspace/root.out index 1d892a93f0..e2db1a6e09 100644 --- a/tests/specs/lint/workspace/root.out +++ b/tests/specs/lint/workspace/root.out @@ -5,7 +5,7 @@ error[no-eval]: `eval` call is not allowed | ^^^^^^^^ = hint: Remove the use of `eval` - docs: https://lint.deno.land/rules/no-eval + docs: https://docs.deno.com/lint/rules/no-eval error[no-unused-vars]: `unused` is never used @@ -15,7 +15,7 @@ error[no-unused-vars]: `unused` is never used | ^^^^^^ = hint: If this is intentional, prefix it with an underscore like `_unused` - docs: https://lint.deno.land/rules/no-unused-vars + docs: https://docs.deno.com/lint/rules/no-unused-vars error[no-explicit-any]: `any` type is not allowed @@ -25,7 +25,7 @@ error[no-explicit-any]: `any` type is not allowed | ^^^ = hint: Use a specific type other than `any` - docs: https://lint.deno.land/rules/no-explicit-any + docs: https://docs.deno.com/lint/rules/no-explicit-any error[no-eval]: `eval` call is not allowed @@ -35,7 +35,7 @@ error[no-eval]: `eval` call is not allowed | ^^^^^^^^ = hint: Remove the use of `eval` - docs: https://lint.deno.land/rules/no-eval + docs: https://docs.deno.com/lint/rules/no-eval error[no-await-in-loop]: Unexpected `await` inside a loop. @@ -45,7 +45,7 @@ error[no-await-in-loop]: Unexpected `await` inside a loop. | ^^^^^^^^^^^^^^^^^^^^^^^ = hint: Remove `await` in loop body, store all promises generated and then `await Promise.all(storedPromises)` after the loop - docs: https://lint.deno.land/rules/no-await-in-loop + docs: https://docs.deno.com/lint/rules/no-await-in-loop error[no-explicit-any]: `any` type is not allowed @@ -55,7 +55,7 @@ error[no-explicit-any]: `any` type is not allowed | ^^^ = hint: Use a specific type other than `any` - docs: https://lint.deno.land/rules/no-explicit-any + docs: https://docs.deno.com/lint/rules/no-explicit-any error[no-eval]: `eval` call is not allowed @@ -65,7 +65,7 @@ error[no-eval]: `eval` call is not allowed | ^^^^^^^^ = hint: Remove the use of `eval` - docs: https://lint.deno.land/rules/no-eval + docs: https://docs.deno.com/lint/rules/no-eval error[no-unused-vars]: `unused` is never used @@ -75,7 +75,7 @@ error[no-unused-vars]: `unused` is never used | ^^^^^^ = hint: If this is intentional, prefix it with an underscore like `_unused` - docs: https://lint.deno.land/rules/no-unused-vars + docs: https://docs.deno.com/lint/rules/no-unused-vars Found 8 problems