Hi folks I am trying to setup the convex
Hi folks I am trying to setup the convex eslint rules. For some reason the rules are not applying on custom convex queries.. Any idea on what I am doing wrong here? I am using the ESLint 9 flat config. Any help is appreciated Thanks.


14 Replies
ESlint Config:

My issue is not the error.. I know how to get rid of the error. I am just trying to understand why the custom query did not trigger the eslint rule.. I should have 2 errors in the original code snippet I posted.
@Sara ☝️
very simple
its not 'query'
its 'customQuery'
So Eslint rules won't apply to any custom queries?
I'm reading the code, give me like 5 min?
Sure. Thanks for giving your time.
https://www.npmjs.com/package/@convex-dev/eslint-plugin?activeTab=code
if you read line 4, it confirms my theory

okay.. Got it. So this is true. Thanks.. So I guess we can say that the eslint plugin is not compatible with the convex-helpers yet.
I wouldn't say so
it's still compatable, just not for these line
yeah, fair enough. I think I should rather say, "Any custom query / mutation / function which are not named exactly those are not compatible". I guess I can do this in that case:


for args I wouldn't bother with it too much, but you are on the right track
Thanks @Sara . Appreciate the help.
you're most welcome!