We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
unicorn/no-array-callback-reference
this rule is not reported when optional chaining
function isString(arg) { return typeof arg === 'string'; } const obj = { a: [], b: [] }; obj.a.filter(isString); obj.b?.filter(isString);
only the first filter report an error.
The text was updated successfully, but these errors were encountered:
Remove this line should fix this
eslint-plugin-unicorn/rules/no-array-callback-reference.js
Line 238 in 231529a
PR welcome.
Sorry, something went wrong.
no-array-callback-reference
Successfully merging a pull request may close this issue.
this rule is not reported when optional chaining
unicorn/no-array-callback-reference
only the first filter report an error.
The text was updated successfully, but these errors were encountered: