Skip to content

Commit 685a89a

Browse files
committed
chore: enable React correctness safeguards
1 parent 51c4f5a commit 685a89a

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)