oxc/crates
Yuji Sugiura 6a2586490b
fix(linter/jsx_a11y): Refactor jsx-a11y related utils and its usage (#2389)
Fixes #2360 

To make `jsx-a11y/anchor-has-content` test pass,

- [x] Use `utils::get_element_type(ctx, el)` in
`utils::is_hidden_from_screen_reader` and
`utils::object_has_accessible_child`
- [x] `utils::object_has_accessible_child` should handle both `null` and
`undefined`

and on the way...,

- [x] `utils::get_element_type` should be used only in `jsx_a11y/*`
rules
- [x] Use those utils everywhere(remove manual implementation)
2024-02-13 23:13:43 +08:00
..
oxc Publish crates v0.7.0 2024-02-09 23:01:12 +08:00
oxc_allocator Publish crates v0.7.0 2024-02-09 23:01:12 +08:00
oxc_ast chore(ast): add some documentation links (#2399) 2024-02-12 13:20:45 +08:00
oxc_cli feat(cli): add --version (#2182) 2024-01-26 19:13:17 +08:00
oxc_codegen fix(codegen): when async is on the left-hand side of a for-of, wrap it in parentheses (#2407) 2024-02-13 22:42:23 +08:00
oxc_diagnostics chore(deps): update rust crates (#2396) 2024-02-12 11:42:57 +08:00
oxc_index Publish crates v0.7.0 2024-02-09 23:01:12 +08:00
oxc_js_regex Initialize JS Regex crates and def AST. (#1500) 2023-11-23 00:22:17 +08:00
oxc_language_server chore(deps): update cargo (#2191) 2024-01-29 11:38:47 +08:00
oxc_linter fix(linter/jsx_a11y): Refactor jsx-a11y related utils and its usage (#2389) 2024-02-13 23:13:43 +08:00
oxc_macros feat(linter): remove the --timings feature (#2049) 2024-01-16 14:21:04 +08:00
oxc_minifier refactor: remove global allocator from non-user facing apps (#2401) 2024-02-12 14:09:05 +08:00
oxc_parser fix(parser): incorrect parsing of class accessor property name (#2386) 2024-02-11 22:57:13 +08:00
oxc_prettier feat(coverage): add prettier idempotency test (#2402) 2024-02-12 15:30:16 +08:00
oxc_semantic Publish crates v0.7.0 2024-02-09 23:01:12 +08:00
oxc_span Publish crates v0.7.0 2024-02-09 23:01:12 +08:00
oxc_syntax Publish crates v0.7.0 2024-02-09 23:01:12 +08:00
oxc_transformer Publish crates v0.7.0 2024-02-09 23:01:12 +08:00
oxc_wasm fix(playground): only lint when there are no syntax errors (#2400) 2024-02-12 13:44:44 +08:00