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: docs/react.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,7 +24,7 @@ Config for **React** projects.
24
24
25
25
> 🔧 Automatically fixable by the [`--fix` CLI option](https://eslint.org/docs/user-guide/command-line-interface#--fix).<br>💡 Manually fixable by [editor suggestions](https://eslint.org/docs/developer-guide/working-with-rules#providing-suggestions).<br>🧪🚫 Disabled for [test files](../README.md#🧪-test-overrides).<br>🧪⚠️ Severity lessened to warning for [test files](../README.md#🧪-test-overrides).
|[](https://github.com/jsx-eslint/eslint-plugin-react#readme)|[jsx-no-comment-textnodes](https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/jsx-no-comment-textnodes.md)<br />Disallow comments from being inserted as text nodes ||||
39
39
|[](https://github.com/jsx-eslint/eslint-plugin-react#readme)|[jsx-no-constructed-context-values](https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/jsx-no-constructed-context-values.md)<br />Disallows JSX context provider values from taking values that will cause needless rerenders ||||
40
40
|[](https://github.com/jsx-eslint/eslint-plugin-react#readme)|[jsx-no-duplicate-props](https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/jsx-no-duplicate-props.md)<br />Disallow duplicate properties in JSX ||||
41
-
|[](https://github.com/jsx-eslint/eslint-plugin-react#readme)|[jsx-no-leaked-render](https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/jsx-no-leaked-render.md)<br />Disallow problematic leaked values from being rendered || 🔧 ||
42
41
|[](https://github.com/jsx-eslint/eslint-plugin-react#readme)|[jsx-no-script-url](https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/jsx-no-script-url.md)<br />Disallow usage of `javascript:` URLs ||||
43
42
|[](https://github.com/jsx-eslint/eslint-plugin-react#readme)|[jsx-no-target-blank](https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/jsx-no-target-blank.md)<br />Disallow `target="_blank"` attribute without `rel="noreferrer"`|| 🔧 ||
44
43
|[](https://github.com/jsx-eslint/eslint-plugin-react#readme)|[jsx-no-undef](https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/jsx-no-undef.md)<br />Disallow undeclared variables in JSX ||||
@@ -73,7 +72,7 @@ Config for **React** projects.
73
72
|[](https://github.com/facebook/react/tree/main/packages/eslint-plugin-react-hooks#readme)|[exhaustive-deps](https://github.com/facebook/react/issues/14920)<br />verifies the list of dependencies for Hooks like useEffect and similar || 🔧, 💡 ||
74
73
|[](https://github.com/facebook/react/tree/main/packages/eslint-plugin-react-hooks#readme)|[rules-of-hooks](https://reactjs.org/docs/hooks-rules.html)<br />enforces the Rules of Hooks ||||
|[](https://github.com/jsx-eslint/eslint-plugin-react#readme)|[jsx-fragments](https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/jsx-fragments.md)<br />Enforce shorthand or standard form for React fragments || 🔧 ||
88
87
|[](https://github.com/jsx-eslint/eslint-plugin-react#readme)|[jsx-handler-names](https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/jsx-handler-names.md)<br />Enforce event handler naming conventions in JSX ||||
|[](https://github.com/jsx-eslint/eslint-plugin-react#readme)|[jsx-pascal-case](https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/jsx-pascal-case.md)<br />Enforce PascalCase for user-defined JSX components ||||
92
92
|[](https://github.com/jsx-eslint/eslint-plugin-react#readme)|[jsx-props-no-spread-multi](https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/jsx-props-no-spread-multi.md)<br />Disallow JSX prop spreading the same identifier multiple times ||||
// jsx-no-leaked-render produces false positives because it doesn't check for safe types: https://github.com/jsx-eslint/eslint-plugin-react/issues/3292
60
+
// eslint-plugin-jsx-expressions is more accurate, but blocked by v9 support: https://github.com/hluisson/eslint-plugin-jsx-expressions/pull/19
0 commit comments