oxc/tasks/rulegen/src
Trevor Manz 8f5e9831df
feat(rulegen): Add jsx-a11y rulegen (#1119)
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.
2023-10-31 13:18:48 +08:00
..
json.rs feat(formatter): add "Quote Props" option (#652) 2023-08-15 11:40:38 +08:00
main.rs feat(rulegen): Add jsx-a11y rulegen (#1119) 2023-10-31 13:18:48 +08:00
template.rs feat(rulegen): Add jsx-a11y rulegen (#1119) 2023-10-31 13:18:48 +08:00