mirror of
https://github.com/oxc-project/oxc.git
synced 2026-11-04 10:29:58 +00:00
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:
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'
|
||||
|
||||
@@ -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'
|
||||
|
||||
Reference in new issue
Block a user