diff --git a/crates/oxc_linter/src/rules/jsx_a11y/anchor_ambiguous_text.rs b/crates/oxc_linter/src/rules/jsx_a11y/anchor_ambiguous_text.rs index ef2cd7c59fa55d..941a2ecf0bbfea 100644 --- a/crates/oxc_linter/src/rules/jsx_a11y/anchor_ambiguous_text.rs +++ b/crates/oxc_linter/src/rules/jsx_a11y/anchor_ambiguous_text.rs @@ -19,7 +19,7 @@ use crate::{ }; fn anchor_has_ambiguous_text(span: Span) -> OxcDiagnostic { - OxcDiagnostic::warn("Unexpected ambigious anchor link text.").with_label(span) + OxcDiagnostic::warn("Unexpected ambagious anchor link text.").with_label(span) } #[derive(Debug, Default, Clone)] diff --git a/crates/oxc_linter/src/snapshots/anchor_ambiguous_text.snap b/crates/oxc_linter/src/snapshots/anchor_ambiguous_text.snap index 7c72f45f5146ac..91bd6b1b715f47 100644 --- a/crates/oxc_linter/src/snapshots/anchor_ambiguous_text.snap +++ b/crates/oxc_linter/src/snapshots/anchor_ambiguous_text.snap @@ -1,169 +1,169 @@ --- source: crates/oxc_linter/src/tester.rs --- - ⚠ eslint-plugin-jsx-a11y(anchor-ambiguous-text): Unexpected ambigious anchor link text. + ⚠ eslint-plugin-jsx-a11y(anchor-ambiguous-text): Unexpected ambagious anchor link text. ╭─[anchor_ambiguous_text.tsx:1:1] 1 │ here; · ─────────── ╰──── - ⚠ eslint-plugin-jsx-a11y(anchor-ambiguous-text): Unexpected ambigious anchor link text. + ⚠ eslint-plugin-jsx-a11y(anchor-ambiguous-text): Unexpected ambagious anchor link text. ╭─[anchor_ambiguous_text.tsx:1:1] 1 │ HERE; · ─────────── ╰──── - ⚠ eslint-plugin-jsx-a11y(anchor-ambiguous-text): Unexpected ambigious anchor link text. + ⚠ eslint-plugin-jsx-a11y(anchor-ambiguous-text): Unexpected ambagious anchor link text. ╭─[anchor_ambiguous_text.tsx:1:1] 1 │ click here; · ───────────────── ╰──── - ⚠ eslint-plugin-jsx-a11y(anchor-ambiguous-text): Unexpected ambigious anchor link text. + ⚠ eslint-plugin-jsx-a11y(anchor-ambiguous-text): Unexpected ambagious anchor link text. ╭─[anchor_ambiguous_text.tsx:1:1] 1 │ learn more; · ───────────────── ╰──── - ⚠ eslint-plugin-jsx-a11y(anchor-ambiguous-text): Unexpected ambigious anchor link text. + ⚠ eslint-plugin-jsx-a11y(anchor-ambiguous-text): Unexpected ambagious anchor link text. ╭─[anchor_ambiguous_text.tsx:1:1] 1 │ learn more; · ────────────────────── ╰──── - ⚠ eslint-plugin-jsx-a11y(anchor-ambiguous-text): Unexpected ambigious anchor link text. + ⚠ eslint-plugin-jsx-a11y(anchor-ambiguous-text): Unexpected ambagious anchor link text. ╭─[anchor_ambiguous_text.tsx:1:1] 1 │ learn more.; · ────────────────── ╰──── - ⚠ eslint-plugin-jsx-a11y(anchor-ambiguous-text): Unexpected ambigious anchor link text. + ⚠ eslint-plugin-jsx-a11y(anchor-ambiguous-text): Unexpected ambagious anchor link text. ╭─[anchor_ambiguous_text.tsx:1:1] 1 │ learn more?; · ────────────────── ╰──── - ⚠ eslint-plugin-jsx-a11y(anchor-ambiguous-text): Unexpected ambigious anchor link text. + ⚠ eslint-plugin-jsx-a11y(anchor-ambiguous-text): Unexpected ambagious anchor link text. ╭─[anchor_ambiguous_text.tsx:1:1] 1 │ learn more,; · ────────────────── ╰──── - ⚠ eslint-plugin-jsx-a11y(anchor-ambiguous-text): Unexpected ambigious anchor link text. + ⚠ eslint-plugin-jsx-a11y(anchor-ambiguous-text): Unexpected ambagious anchor link text. ╭─[anchor_ambiguous_text.tsx:1:1] 1 │ learn more!; · ────────────────── ╰──── - ⚠ eslint-plugin-jsx-a11y(anchor-ambiguous-text): Unexpected ambigious anchor link text. + ⚠ eslint-plugin-jsx-a11y(anchor-ambiguous-text): Unexpected ambagious anchor link text. ╭─[anchor_ambiguous_text.tsx:1:1] 1 │ learn more;; · ────────────────── ╰──── - ⚠ eslint-plugin-jsx-a11y(anchor-ambiguous-text): Unexpected ambigious anchor link text. + ⚠ eslint-plugin-jsx-a11y(anchor-ambiguous-text): Unexpected ambagious anchor link text. ╭─[anchor_ambiguous_text.tsx:1:1] 1 │ learn more:; · ────────────────── ╰──── - ⚠ eslint-plugin-jsx-a11y(anchor-ambiguous-text): Unexpected ambigious anchor link text. + ⚠ eslint-plugin-jsx-a11y(anchor-ambiguous-text): Unexpected ambagious anchor link text. ╭─[anchor_ambiguous_text.tsx:1:1] 1 │ link; · ─────────── ╰──── - ⚠ eslint-plugin-jsx-a11y(anchor-ambiguous-text): Unexpected ambigious anchor link text. + ⚠ eslint-plugin-jsx-a11y(anchor-ambiguous-text): Unexpected ambagious anchor link text. ╭─[anchor_ambiguous_text.tsx:1:1] 1 │ a link; · ───────────── ╰──── - ⚠ eslint-plugin-jsx-a11y(anchor-ambiguous-text): Unexpected ambigious anchor link text. + ⚠ eslint-plugin-jsx-a11y(anchor-ambiguous-text): Unexpected ambagious anchor link text. ╭─[anchor_ambiguous_text.tsx:1:1] 1 │ something; · ──────────────────────────────────────── ╰──── - ⚠ eslint-plugin-jsx-a11y(anchor-ambiguous-text): Unexpected ambigious anchor link text. + ⚠ eslint-plugin-jsx-a11y(anchor-ambiguous-text): Unexpected ambagious anchor link text. ╭─[anchor_ambiguous_text.tsx:1:1] 1 │ a link ; · ─────────────── ╰──── - ⚠ eslint-plugin-jsx-a11y(anchor-ambiguous-text): Unexpected ambigious anchor link text. + ⚠ eslint-plugin-jsx-a11y(anchor-ambiguous-text): Unexpected ambagious anchor link text. ╭─[anchor_ambiguous_text.tsx:1:1] 1 │ a link; · ──────────────────── ╰──── - ⚠ eslint-plugin-jsx-a11y(anchor-ambiguous-text): Unexpected ambigious anchor link text. + ⚠ eslint-plugin-jsx-a11y(anchor-ambiguous-text): Unexpected ambagious anchor link text. ╭─[anchor_ambiguous_text.tsx:1:1] 1 │ a link; · ──────────────────── ╰──── - ⚠ eslint-plugin-jsx-a11y(anchor-ambiguous-text): Unexpected ambigious anchor link text. + ⚠ eslint-plugin-jsx-a11y(anchor-ambiguous-text): Unexpected ambagious anchor link text. ╭─[anchor_ambiguous_text.tsx:1:1] 1 │ click here; · ────────────────────────────── ╰──── - ⚠ eslint-plugin-jsx-a11y(anchor-ambiguous-text): Unexpected ambigious anchor link text. + ⚠ eslint-plugin-jsx-a11y(anchor-ambiguous-text): Unexpected ambagious anchor link text. ╭─[anchor_ambiguous_text.tsx:1:1] 1 │ click here; · ──────────────────────────────── ╰──── - ⚠ eslint-plugin-jsx-a11y(anchor-ambiguous-text): Unexpected ambigious anchor link text. + ⚠ eslint-plugin-jsx-a11y(anchor-ambiguous-text): Unexpected ambagious anchor link text. ╭─[anchor_ambiguous_text.tsx:1:1] 1 │ more textlearn more; · ─────────────────────────────────────────────────── ╰──── - ⚠ eslint-plugin-jsx-a11y(anchor-ambiguous-text): Unexpected ambigious anchor link text. + ⚠ eslint-plugin-jsx-a11y(anchor-ambiguous-text): Unexpected ambagious anchor link text. ╭─[anchor_ambiguous_text.tsx:1:1] 1 │ learn more; · ────────────────────────────────────────────────────────── ╰──── - ⚠ eslint-plugin-jsx-a11y(anchor-ambiguous-text): Unexpected ambigious anchor link text. + ⚠ eslint-plugin-jsx-a11y(anchor-ambiguous-text): Unexpected ambagious anchor link text. ╭─[anchor_ambiguous_text.tsx:1:1] 1 │ click here; · ────────────────────────────── ╰──── - ⚠ eslint-plugin-jsx-a11y(anchor-ambiguous-text): Unexpected ambigious anchor link text. + ⚠ eslint-plugin-jsx-a11y(anchor-ambiguous-text): Unexpected ambagious anchor link text. ╭─[anchor_ambiguous_text.tsx:1:1] 1 │ click here; · ──────────────────────────────────────────────────────────────── ╰──── - ⚠ eslint-plugin-jsx-a11y(anchor-ambiguous-text): Unexpected ambigious anchor link text. + ⚠ eslint-plugin-jsx-a11y(anchor-ambiguous-text): Unexpected ambagious anchor link text. ╭─[anchor_ambiguous_text.tsx:1:1] 1 │ click here; · ───────────────────────────────────────────────────────────────────────────── ╰──── - ⚠ eslint-plugin-jsx-a11y(anchor-ambiguous-text): Unexpected ambigious anchor link text. + ⚠ eslint-plugin-jsx-a11y(anchor-ambiguous-text): Unexpected ambagious anchor link text. ╭─[anchor_ambiguous_text.tsx:1:1] 1 │ click here; · ──────────────────────────────────────────────── ╰──── - ⚠ eslint-plugin-jsx-a11y(anchor-ambiguous-text): Unexpected ambigious anchor link text. + ⚠ eslint-plugin-jsx-a11y(anchor-ambiguous-text): Unexpected ambagious anchor link text. ╭─[anchor_ambiguous_text.tsx:1:1] 1 │ here · ───────────────── ╰──── - ⚠ eslint-plugin-jsx-a11y(anchor-ambiguous-text): Unexpected ambigious anchor link text. + ⚠ eslint-plugin-jsx-a11y(anchor-ambiguous-text): Unexpected ambagious anchor link text. ╭─[anchor_ambiguous_text.tsx:1:1] 1 │ click here · ───────────────────────────────── ╰──── - ⚠ eslint-plugin-jsx-a11y(anchor-ambiguous-text): Unexpected ambigious anchor link text. + ⚠ eslint-plugin-jsx-a11y(anchor-ambiguous-text): Unexpected ambagious anchor link text. ╭─[anchor_ambiguous_text.tsx:1:1] 1 │ a disallowed word · ────────────────────────