Skip to content

Commit

Permalink
style: clippy + cargo fmt + update .typos.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
DonIsaac committed Jul 11, 2024
1 parent ade9630 commit cb896d9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .typos.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ extend-exclude = [
"**/*.snap",
"**/*/CHANGELOG.md",
"crates/oxc_linter/fixtures",
"crates/oxc_linter/src/rules/jsx_a11y/aria_props.rs",
"crates/oxc_linter/src/rules/jsx_a11y/img_redundant_alt.rs",
"crates/oxc_linter/src/rules/react/no_unknown_property.rs",
"crates/oxc_parser/src/lexer/byte_handlers.rs",
Expand Down
4 changes: 2 additions & 2 deletions crates/oxc_linter/src/rules/jsx_a11y/aria_props.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ declare_oxc_lint!(
/// Using invalid ARIA attributes can mislead screen readers and other assistive technologies.
/// It may cause the accessibility features of the website to fail, making it difficult
/// for users with disabilities to use the site effectively.
///
///
/// This rule includes fixes for some common typos.
///
/// ### Example
Expand All @@ -57,7 +57,7 @@ impl Rule for AriaProps {
if let Some(suggestion) = suggestion {
ctx.diagnostic_with_fix(diagnostic, |fixer| {
fixer.replace(attr.name.span(), suggestion)
})
});
} else {
ctx.diagnostic(diagnostic);
}
Expand Down

0 comments on commit cb896d9

Please sign in to comment.