mirror of
https://github.com/danbulant/oxc
synced 2026-05-24 20:32:10 +00:00
Adds the `just new-jsx-a11y-rule` for bootstrapping `eslint-plugin-jsx-a11y` linting rules. One tricky thing about the tests in that repo is that the aren't provided as array expressions (e.g., `[case0, case1, case2, ...]`) but rather separate arguments to `[].concat()` (e.g., `[].concat(case0, case1, case2, ...)`). There is probably a more elegant way to match these expressions, but this is what I came up with. The other thing I introduced in this PR is prefer Rust's raw strings (`r#`) when generating the test cases. Sometimes running `just new-*` spit out unescaped back quotes, which caused issues. |
||
|---|---|---|
| .. | ||
| json.rs | ||
| main.rs | ||
| template.rs | ||