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
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Is there a way to disable the lint/correctness/noChildrenProp linting rule for a certain JSX-Element?
I'm using TanStack Form and there you need to use the children-prop:
form.Field comes from TanStack Form -
const form = useForm(…)
Here's the Quickstart Guide to TanStack Form: https://tanstack.com/form/latest/docs/framework/react/quick-start
Maybe the
noChildrenProp
rule could also be so smart that it doesn't apply when a function is passed - like here: https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/no-children-prop.md#allowfunctionsBeta Was this translation helpful? Give feedback.
All reactions