-
-
Notifications
You must be signed in to change notification settings - Fork 763
Open
Labels
A-linterArea - LinterArea - LinterE-Help WantedExperience level - For the experienced collaboratorsExperience level - For the experienced collaborators
Description
Warning
This comment is maintained by CI. Do not edit this comment directly.
To update comment template, see https://github.com/oxc-project/oxc/tree/main/tasks/lint_rules
This is the tracking issue for eslint-plugin-react, eslint-plugin-react-hooks.
There are 130(+ 2 deprecated) rules.
- 20/38 recommended rules are remaining as TODO
- 1 of which have pending fixes
- 55/92 not recommended rules are remaining as TODO
- 3 of which have pending fixes
To get started, run the following command:
just new-react-rule <RULE_NAME>Then register the rule in crates/oxc_linter/src/rules.rs and also declare_all_lint_rules at the bottom.
Recommended rules
✅: 18, 🚫: 0, ⏳: 1 / total: 38
| Status | Name |
|---|---|
| react/component-hook-factories | |
| react/config | |
| react/display-name | |
| react/error-boundaries | |
| ✅ | react/exhaustive-deps |
| react/gating | |
| react/globals | |
| react/immutability | |
| react/incompatible-library | |
| ✅ | react/jsx-key |
| ✅ | react/jsx-no-comment-textnodes |
| ✅ | react/jsx-no-duplicate-props |
| ✅ | react/jsx-no-target-blank |
| ✅ | react/jsx-no-undef |
| react/jsx-uses-react | |
| react/jsx-uses-vars | |
| ✅ | react/no-children-prop |
| ✅ | react/no-danger-with-children |
| react/no-deprecated | |
| ✅ | react/no-direct-mutation-state |
| ✅ | react/no-find-dom-node |
| ✅ | react/no-is-mounted |
| ✅ | react/no-render-return-value |
| ✅ | react/no-string-refs |
| ✅ | react/no-unescaped-entities |
| ✅⏳ | react/no-unknown-property |
| react/preserve-manual-memoization | |
| react/prop-types | |
| react/purity | |
| ✅ | react/react-in-jsx-scope |
| react/refs | |
| ✅ | react/require-render-return |
| ✅ | react/rules-of-hooks |
| react/set-state-in-effect | |
| react/set-state-in-render | |
| react/static-components | |
| react/unsupported-syntax | |
| react/use-memo |
✅ = Implemented, 🚫 = No need to implement, ⏳ = Fix pending
Not recommended rules
✅: 29, 🚫: 8, ⏳: 3 / total: 92
✅ = Implemented, 🚫 = No need to implement, ⏳ = Fix pending
Deprecated rules
✅: 0, 🚫: 2, ⏳: 0 / total: 2
| Status | Name |
|---|---|
| 🚫 | react/jsx-sort-default-props |
| 🚫 | react/jsx-space-before-closing |
✅ = Implemented, 🚫 = No need to implement, ⏳ = Fix pending
Rel1cx, ild0tt0re, sadeghbarati, yossydev, zhangrunzhao and 3 more
Metadata
Metadata
Assignees
Labels
A-linterArea - LinterArea - LinterE-Help WantedExperience level - For the experienced collaboratorsExperience level - For the experienced collaborators