Closed
Description
Environment
Node version: 20.12.1
npm version: pnpm 9
ESLint version: 8.57.0
eslint-plugin-n version: 17.11.1
Operating System: Ubuntu
What rule do you want to report?
n/no-sync
Link to Minimal Reproducible Example
What did you expect to happen?
The following code does not do any synchronous calls, but it does define two methods that end in Sync
:
const a = {
resolvers: {
Mutation: {
async thingsSync(_, args, context) {
/* ... */
},
stuffSync: async (_, args, context) => {
/* ... */
}
}
}
}
The validation rule should only fire for function calls / method execution, not definition.
Participation
- I am willing to submit a pull request for this issue.
Additional comments
No response