chore(linter): add recommended to rulegen template (#27669)

Adding a TODO comment to the rule template in case a rule is
recommended. Open to ideas on improvement on surfacing this, but this
works for now.
This commit is contained in:
Cam McHenry authored and GitHub committed 2026-10-14 12:25:33 -04:00
1 parent c44a355261
commit fa9926794a
2 files changed
+4

No files matched your search

@@ -58,6 +58,8 @@ declare_oxc_lint!(
eslint,
nursery, // TODO: change category to `correctness`, `suspicious`, `pedantic`, `perf`, `restriction`, or `style`
// See <https://oxc.rs/docs/contribute/linter.html#rule-category> for details
// TODO: Uncomment the line below if the rule is recommended by default, or remove it if not.
// recommended,
pending, // TODO: describe fix capabilities. Remove or set to `none` if no fix can be done,
// keep at 'pending' if you think one could be added but don't know how.
// Options are 'fix', 'fix_dangerous', 'suggestion', and 'conditional_fix_suggestion'
+2
View File
@@ -57,6 +57,8 @@ declare_oxc_lint!(
{{mod_name}},
nursery, // TODO: change category to `correctness`, `suspicious`, `pedantic`, `perf`, `restriction`, or `style`
// See <https://oxc.rs/docs/contribute/linter.html#rule-category> for details
// TODO: Uncomment the line below if the rule is recommended by default, or remove it if not.
// recommended,
pending, // TODO: describe fix capabilities. Remove or set to `none` if no fix can be done,
// keep at 'pending' if you think one could be added but don't know how.
// Options are 'fix', 'fix_dangerous', 'suggestion', and 'conditional_fix_suggestion'