Skip to content

Commit 7fca39c

Browse files
authored
chore: enable React correctness safeguards (#4679)
## Summary Enable React correctness rules that catch invalid DOM attributes, unsafe legacy APIs, and malformed component contracts before they reach users. Base: [#4678](#4678)
1 parent e0d96c3 commit 7fca39c

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

.oxlintrc.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,22 @@
5858
"react/jsx-fragments": "error",
5959
"react/self-closing-comp": "error",
6060
"react/jsx-no-constructed-context-values": "error",
61+
"react/no-children-prop": "error",
62+
"react/no-danger-with-children": "error",
63+
"react/no-direct-mutation-state": "error",
64+
"react/no-find-dom-node": "error",
65+
"react/no-is-mounted": "error",
66+
"react/no-render-return-value": "error",
67+
"react/no-string-refs": "error",
68+
"react/no-unsafe": "error",
69+
"react/no-will-update-set-state": "error",
70+
"react/require-render-return": "error",
71+
"react/style-prop-object": "error",
72+
"react/void-dom-elements-no-children": "error",
73+
"react/checked-requires-onchange-or-readonly": "error",
74+
"react/forward-ref-uses-ref": "error",
75+
"react/iframe-missing-sandbox": "error",
76+
"react/no-unknown-property": "error",
6177
"no-lone-blocks": "error",
6278
"typescript/prefer-function-type": "error",
6379
"typescript/prefer-for-of": "error",

0 commit comments

Comments
 (0)