Skip to content

Commit

Permalink
typos
Browse files Browse the repository at this point in the history
  • Loading branch information
camc314 committed Nov 25, 2024
1 parent f014a82 commit 98648aa
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 29 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down
56 changes: 28 additions & 28 deletions crates/oxc_linter/src/snapshots/anchor_ambiguous_text.snap
Original file line number Diff line number Diff line change
@@ -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 │ <a>here</a>;
· ───────────
╰────

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>HERE</a>;
· ───────────
╰────

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>click here</a>;
· ─────────────────
╰────

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>learn more</a>;
· ─────────────────
╰────

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>learn more</a>;
· ──────────────────────
╰────

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>learn more.</a>;
· ──────────────────
╰────

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>learn more?</a>;
· ──────────────────
╰────

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>learn more,</a>;
· ──────────────────
╰────

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>learn more!</a>;
· ──────────────────
╰────

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>learn more;</a>;
· ──────────────────
╰────

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>learn more:</a>;
· ──────────────────
╰────

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</a>;
· ───────────
╰────

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>a link</a>;
· ─────────────
╰────

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 aria-label="click here">something</a>;
· ────────────────────────────────────────
╰────

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> a link </a>;
· ───────────────
╰────

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>a<i></i> link</a>;
· ────────────────────
╰────

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><i></i>a link</a>;
· ────────────────────
╰────

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><span>click</span> here</a>;
· ──────────────────────────────
╰────

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><span> click </span> here</a>;
· ────────────────────────────────
╰────

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><span aria-hidden>more text</span>learn more</a>;
· ───────────────────────────────────────────────────
╰────

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><span aria-hidden="true">more text</span>learn more</a>;
· ──────────────────────────────────────────────────────────
╰────

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><img alt="click here"/></a>;
· ──────────────────────────────
╰────

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 alt="tutorial on using eslint-plugin-jsx-a11y">click here</a>;
· ────────────────────────────────────────────────────────────────
╰────

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><span alt="tutorial on using eslint-plugin-jsx-a11y">click here</span></a>;
· ─────────────────────────────────────────────────────────────────────────────
╰────

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><CustomElement>click</CustomElement> here</a>;
· ────────────────────────────────────────────────
╰────

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>here</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><Image alt="click here" /></a>
· ─────────────────────────────────
╰────

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>a disallowed word</a>
· ────────────────────────
Expand Down

0 comments on commit 98648aa

Please sign in to comment.