From 7fca39c91dd3ff4241d75aeaf96868415e0c11da Mon Sep 17 00:00:00 2001 From: Chris Arderne Date: Wed, 19 Aug 2026 08:28:59 +0100 Subject: [PATCH] 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](https://github.com/triggerdotdev/trigger.dev/pull/4678) --- .oxlintrc.json | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.oxlintrc.json b/.oxlintrc.json index d59205f7e..e0e7dd843 100644 --- a/.oxlintrc.json +++ b/.oxlintrc.json @@ -58,6 +58,22 @@ "react/jsx-fragments": "error", "react/self-closing-comp": "error", "react/jsx-no-constructed-context-values": "error", + "react/no-children-prop": "error", + "react/no-danger-with-children": "error", + "react/no-direct-mutation-state": "error", + "react/no-find-dom-node": "error", + "react/no-is-mounted": "error", + "react/no-render-return-value": "error", + "react/no-string-refs": "error", + "react/no-unsafe": "error", + "react/no-will-update-set-state": "error", + "react/require-render-return": "error", + "react/style-prop-object": "error", + "react/void-dom-elements-no-children": "error", + "react/checked-requires-onchange-or-readonly": "error", + "react/forward-ref-uses-ref": "error", + "react/iframe-missing-sandbox": "error", + "react/no-unknown-property": "error", "no-lone-blocks": "error", "typescript/prefer-function-type": "error", "typescript/prefer-for-of": "error",