Open czizzy opened 8 months ago
this rule is not reported when optional chaining
unicorn/no-array-callback-reference
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.
Remove this line should fix this
https://github.com/sindresorhus/eslint-plugin-unicorn/blob/231529aee793251f30416b93dc3d5f9bfa27ee47/rules/no-array-callback-reference.js#L238
PR welcome.
this rule is not reported when optional chaining
unicorn/no-array-callback-reference
only the first filter report an error.