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
The code reports error even though emptyCollection is already boolean value. I understand that the plugin does not take into account actual types that TS provides.
Running lint command reports an issue unless I convert the code to this 👇
Is there a way to prevent this from being "fixed" since it's already a boolean value?
Expected Behavior
eslint-plugin-react version
v7.37.4
eslint version
v9.18.0
node version
v22.13.0
The text was updated successfully, but these errors were encountered:
Is there an existing issue for this?
Description Overview
Using following setup:
The code reports error even though
emptyCollection
is already boolean value. I understand that the plugin does not take into account actual types that TS provides.Running lint command reports an issue unless I convert the code to this 👇
Is there a way to prevent this from being "fixed" since it's already a boolean value?
Expected Behavior
eslint-plugin-react version
v7.37.4
eslint version
v9.18.0
node version
v22.13.0
The text was updated successfully, but these errors were encountered: