diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d8c716495f4bb..3425708525f3c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -142,7 +142,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: taiki-e/checkout-action@v1 - - uses: crate-ci/typos@v1.24.5 + - uses: crate-ci/typos@v1.25.0 with: files: . diff --git a/crates/oxc_linter/src/rules/eslint/no_script_url.rs b/crates/oxc_linter/src/rules/eslint/no_script_url.rs index edbfee0c7f366..29220cc6c06cc 100644 --- a/crates/oxc_linter/src/rules/eslint/no_script_url.rs +++ b/crates/oxc_linter/src/rules/eslint/no_script_url.rs @@ -7,7 +7,7 @@ use oxc_span::Span; use crate::{context::LintContext, rule::Rule, AstNode}; fn no_script_url_diagnostic(span: Span) -> OxcDiagnostic { - OxcDiagnostic::warn("Unexpeced `javascript:` url") + OxcDiagnostic::warn("Unexpected `javascript:` url") .with_help("Execute the code directly instead.") .with_label(span) } diff --git a/crates/oxc_linter/src/snapshots/no_script_url.snap b/crates/oxc_linter/src/snapshots/no_script_url.snap index fba81b9706836..4376cbf7d3517 100644 --- a/crates/oxc_linter/src/snapshots/no_script_url.snap +++ b/crates/oxc_linter/src/snapshots/no_script_url.snap @@ -1,28 +1,28 @@ --- source: crates/oxc_linter/src/tester.rs --- - ⚠ eslint(no-script-url): Unexpeced `javascript:` url + ⚠ eslint(no-script-url): Unexpected `javascript:` url ╭─[no_script_url.tsx:1:9] 1 │ var a = 'javascript:void(0);'; · ───────────────────── ╰──── help: Execute the code directly instead. - ⚠ eslint(no-script-url): Unexpeced `javascript:` url + ⚠ eslint(no-script-url): Unexpected `javascript:` url ╭─[no_script_url.tsx:1:9] 1 │ var a = 'javascript:'; · ───────────── ╰──── help: Execute the code directly instead. - ⚠ eslint(no-script-url): Unexpeced `javascript:` url + ⚠ eslint(no-script-url): Unexpected `javascript:` url ╭─[no_script_url.tsx:1:9] 1 │ var a = `javascript:`; · ───────────── ╰──── help: Execute the code directly instead. - ⚠ eslint(no-script-url): Unexpeced `javascript:` url + ⚠ eslint(no-script-url): Unexpected `javascript:` url ╭─[no_script_url.tsx:1:9] 1 │ var a = `JavaScript:`; · ─────────────