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
I just discover your lint plugin and it is really powerful.
The issue I have is I already have a giant project where I want to introduce your rules. But I have too much error returned.
We may need a more configurable rule to let us progressively fix everything
in a 1st time we want to detect missing useMemo on Objects and Arrays. We don't want to check the JSX props.
Is it possible to enhance this rule to define the property types we want to lint ?
supportedPropTypes: ["object", "array", "function", "JSX"] for example.
The text was updated successfully, but these errors were encountered:
Function definition should be wrapped in useCallback() or be static when used as a prop => this is already catch with eslint-react/jsx-no-bind rule. So it is a doucle check that is expansive in term of cost. we need to be able to disable the checks ofr functions
JSX should be wrapped in useMemo() when used as a prop => we can disable the JSX cases if we want
An error was identified inside this expression, but it can't be fixed because it'd break the rule of hooks. JSX logic should be extracted into a separate component => same
I just discover your lint plugin and it is really powerful.
The issue I have is I already have a giant project where I want to introduce your rules. But I have too much error returned.
We may need a more configurable rule to let us progressively fix everything
in a 1st time we want to detect missing useMemo on Objects and Arrays. We don't want to check the JSX props.
Is it possible to enhance this rule to define the property types we want to lint ?
supportedPropTypes: ["object", "array", "function", "JSX"] for example.
The text was updated successfully, but these errors were encountered: