You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: apps/website/content/docs/rules/overview.md
+9-9Lines changed: 9 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -33,16 +33,16 @@ full: true
33
33
|[`no-clone-element`](./no-clone-element)| 1️⃣ |`🔍`| Prevents using `cloneElement`. ||
34
34
|[`no-comment-textnodes`](./no-comment-textnodes)| 1️⃣ |`🔍`| Prevents comments from being inserted as text nodes. ||
35
35
|[`no-complex-conditional-rendering`](./no-complex-conditional-rendering)| 0️⃣ |`🔍`| Prevents complex conditional rendering in JSX. ||
36
-
|[`no-component-will-mount`](./no-component-will-mount)| 2️⃣ |`🔍``🔄`|Prevents using `componentWillMount`. | >=16.3.0 |
37
-
|[`no-component-will-receive-props`](./no-component-will-receive-props)| 2️⃣ |`🔍``🔄`|Prevents using `componentWillReceiveProps`. | >=16.3.0 |
38
-
|[`no-component-will-update`](./no-component-will-update)| 2️⃣ |`🔍``🔄`|Prevents using `componentWillUpdate`. | >=16.3.0 |
39
-
|[`no-context-provider`](./no-context-provider)| 1️⃣ |`🔍``🔄`|Prevents using `<Context.Provider>`. | >=19.0.0 |
36
+
|[`no-component-will-mount`](./no-component-will-mount)| 2️⃣ |`🔍``🔄`|Replaces `componentWillMount` with `UNSAFE_componentWillMount`.| >=16.3.0 |
37
+
|[`no-component-will-receive-props`](./no-component-will-receive-props)| 2️⃣ |`🔍``🔄`|Replaces `componentWillReceiveProps` with `UNSAFE_componentWillReceiveProps`.| >=16.3.0 |
38
+
|[`no-component-will-update`](./no-component-will-update)| 2️⃣ |`🔍``🔄`|Replaces `componentWillUpdate` with `UNSAFE_componentWillUpdate`.| >=16.3.0 |
39
+
|[`no-context-provider`](./no-context-provider)| 1️⃣ |`🔍``🔄`|Replaces `<Context.Provider>` with `<Context>`.| >=19.0.0 |
40
40
|[`no-create-ref`](./no-create-ref)| 2️⃣ |`🔍`| Prevents using `createRef`. ||
41
41
|[`no-default-props`](./no-default-props)| 2️⃣ |`🔍`| Prevents using `defaultProps` property in favor of ES6 default parameters. ||
42
42
|[`no-direct-mutation-state`](./no-direct-mutation-state)| 2️⃣ |`🔍`| Prevents direct mutation of `this.state`. ||
43
43
|[`no-duplicate-jsx-props`](./no-duplicate-jsx-props)| 1️⃣ |`🔍`| Prevents duplicate props in JSX. ||
44
44
|[`no-duplicate-key`](./no-duplicate-key)| 2️⃣ |`🔍`| Prevents duplicate `key` on elements in the same array or a list of `children`. ||
45
-
|[`no-forward-ref`](./no-forward-ref)| 1️⃣ |`🔍``🔄`|Prevents using `React.forwardRef`. | >=19.0.0 |
45
+
|[`no-forward-ref`](./no-forward-ref)| 1️⃣ |`🔍``🔄`|Replaces `forwardRef` with passing `ref` as a prop.| >=19.0.0 |
46
46
|[`no-implicit-key`](./no-implicit-key)| 1️⃣ |`🔍`| Prevents `key` from not being explicitly specified (e.g. spreading `key` from objects). ||
47
47
|[`no-leaked-conditional-rendering`](./no-leaked-conditional-rendering)| 1️⃣ |`🔍``💭`| Prevents problematic leaked values from being rendered. ||
48
48
|[`no-missing-component-display-name`](./no-missing-component-display-name)| 0️⃣ |`🔍`| Enforces that all components have a `displayName` which can be used in devtools. ||
@@ -62,13 +62,13 @@ full: true
62
62
|[`no-unstable-default-props`](./no-unstable-default-props)| 1️⃣ |`🔍`| Prevents using referential-type values as default props in object destructuring. ||
63
63
|[`no-unused-class-component-members`](./no-unused-class-component-members)| 0️⃣ |`🔍`| Warns unused class component methods and properties. ||
64
64
|[`no-unused-state`](./no-unused-state)| 1️⃣ |`🔍`| Warns unused class component state. ||
65
-
|[`no-use-context`](./no-use-context)| 1️⃣ |`🔍``🔄`|Prevents using `useContext`in favor of `use`. | >=19.0.0 |
This API has been renamed from `componentWillMount` to `UNSAFE_componentWillMount`. The old name has been deprecated. In a future major version of React, only the new name will work.
This API has been renamed from `componentWillReceiveProps` to `UNSAFE_componentWillReceiveProps`. The old name has been deprecated. In a future major version of React, only the new name will work.
This API has been renamed from `componentWillUpdate` to `UNSAFE_componentWillUpdate`. The old name has been deprecated. In a future major version of React, only the new name will work.
0 commit comments