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)
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user