web-infra-dev / web-infra-dev/rslint

[Tracking]: eslint-plugin-react-hooks

Open
#226 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
Go
Stars
459
Forks
33
Avg merge
1d 2h
Merged PRs (30d)
376

Description

This is a tracking issue for porting the existing rules from [`eslint-plugin-react-hooks`](https://github.com/facebook/react/tree/main/packages/eslint-plugin-react-hooks).

There are **31** rules.

| Category | ✅ Done | 🚫 Won't | Total |
| :--- | :---: | :---: | :---: |
| Recommended | 2 | 0 | 18 |
| Not recommended | 0 | 0 | 13 |
| Deprecated | 0 | 0 | 0 |
| **Total** | **2** | **0** | **31** |

> ✅ = Implemented  |  🚫 = Not intending to implement

---

## Recommended rules

✅ 2  |  🚫 0  /  Total: 18

| Status | Name |
| :----: | :--- |
| ✅ | [react-hooks/rules-of-hooks](https://react.dev/reference/eslint-plugin-react-hooks/lints/rules-of-hooks) |
| ✅ | [react-hooks/exhaustive-deps](https://react.dev/reference/eslint-plugin-react-hooks/lints/exhaustive-deps) |
| | [react-hooks/component-hook-factories](https://react.dev/reference/eslint-plugin-react-hooks/lints/component-hook-factories) |
| | [react-hooks/config](https://react.dev/reference/eslint-plugin-react-hooks/lints/config) |
| | [react-hooks/error-boundaries](https://react.dev/reference/eslint-plugin-react-hooks/lints/error-boundaries) |
| | [react-hooks/gating](https://react.dev/reference/eslint-plugin-react-hooks/lints/gating) |
| | [react-hooks/globals](https://react.dev/reference/eslint-plugin-react-hooks/lints/globals) |
| | [react-hooks/immutability](https://react.dev/reference/eslint-plugin-react-hooks/lints/immutability) |
| | [react-hooks/incompatible-library](https://react.dev/reference/eslint-plugin-react-hooks/lints/incompatible-library) |
| | [react-hooks/preserve-manual-memoization](https://react.dev/reference/eslint-plugin-react-hooks/lints/preserve-manual-memoization) |
| | [react-hooks/purity](https://react.dev/reference/eslint-plugin-react-hooks/lints/purity) |
| | [react-hooks/refs](https://react.dev/reference/eslint-plugin-react-hooks/lints/refs) |
| | [react-hooks/set-state-in-effect](https://react.dev/reference/eslint-plugin-react-hooks/lints/set-state-in-effect) |
| | [react-hooks/set-state-in-render](https://react.dev/reference/eslint-plugin-react-hooks/lints/set-state-in-render) |
| | [react-hooks/static-components](https://react.dev/reference/eslint-plugin-react-hooks/lints/static-components) |
| | [react-hooks/unsupported-syntax](https://react.dev/reference/eslint-plugin-react-hooks/lints/unsupported-syntax) |
| | [react-hooks/use-memo](https://react.dev/reference/eslint-plugin-react-hooks/lints/use-memo) |
| | [react-hooks/void-use-memo](https://github.com/facebook/react/blob/main/compiler/packages/babel-plugin-react-compiler/src/CompilerError.ts) |

---

## Not recommended rules

✅ 0  |  🚫 0  /  Total: 13

| Status | Name |
| :----: | :--- |
| | [react-hooks/automatic-effect-dependencies](https://github.com/facebook/react/blob/main/compiler/packages/babel-plugin-react-compiler/src/CompilerError.ts) |
| | [react-hooks/capitalized-calls](https://github.com/facebook/react/blob/main/compiler/packages/babel-plugin-react-compiler/src/CompilerError.ts) |
| | [react-hooks/exhaustive-effect-dependencies](https://github.com/facebook/react/blob/main/compiler/packages/babel-plugin-react-compiler/src/CompilerError.ts) |
| | [react-hooks/fbt](https://github.com/facebook/react/blob/main/compiler/packages/babel-plugin-react-compiler/src/CompilerError.ts) |
| | [react-hooks/fire](https://github.com/facebook/react/blob/main/compiler/packages/babel-plugin-react-compiler/src/CompilerError.ts) |
| | [react-hooks/hooks](https://github.com/facebook/react/blob/main/compiler/packages/babel-plugin-react-compiler/src/CompilerError.ts) |
| | [react-hooks/invariant](https://github.com/facebook/react/blob/main/compiler/packages/babel-plugin-react-compiler/src/CompilerError.ts) |
| | [react-hooks/memo-dependencies](https://github.com/facebook/react/blob/main/compiler/packages/babel-plugin-react-compiler/src/CompilerError.ts) |
| | [react-hooks/memoized-effect-dependencies](https://github.com/facebook/react/blob/main/compiler/packages/babel-plugin-react-compiler/src/CompilerError.ts) |
| | [react-hooks/no-deriving-state-in-effects](https://github.com/facebook/react/blob/main/compiler/packages/babel-plugin-react-compiler/src/CompilerError.ts) |
| | [react-hooks/rule-suppression](https://github.com/facebook/react/blob/main/compiler/packages/babel-plugin-react-compiler/src/CompilerError.ts) |
| | [react-hooks/syntax](https://github.com/facebook/react/blob/main/compiler/packages/babel-plugin-react-compiler/src/CompilerError.ts) |
| | [react-hooks/todo](https://github.com/facebook/react/blob/main/compiler/packages/babel-plugin-react-compiler/src/CompilerError.ts) |

---

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.