no-extra-arguments not working with imported functions
I want to report a bug.
Reproducer
// minimal reproducer if relevant
// file A.js
export const createStatus = (params) => UserStatus.create(params);
// file B.js
const userStatusDao = require('./A');
await userStatusDao.createStatus(data, { transaction: t });
Expected behavior I need error for this case, but it's ignored.
eslint-plugin-sonarjs version: 0.23
eslint version: 8.53.0
Node.js version: 16.20.2
Rule key: no-extra-arguments
Hello @brightsider,
Thanks for reporting this. Indeed, the rule is not currently able to do that.
We'll discuss this improvement internally.
Any updates on the plans for this feature? I see it's milestoned as 0.23.0, and 0.23.0 is released without that feature.
Hi @frederikprijck,
sorry for the late response. I moved this ticket to 0.25, since 0.23 and 0.24 did not contain rules hardening.
This issue has been migrated to Jira. ESLINTJS-28