A Rogue Otaku
A Rogue Otaku2mo ago

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.
No description
No description
14 Replies
A Rogue Otaku
A Rogue OtakuOP2mo ago
ESlint Config:
No description
A Rogue Otaku
A Rogue OtakuOP2mo ago
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 ☝️
Sara
Sara2mo ago
very simple its not 'query' its 'customQuery'
A Rogue Otaku
A Rogue OtakuOP2mo ago
So Eslint rules won't apply to any custom queries?
Sara
Sara2mo ago
I'm reading the code, give me like 5 min?
A Rogue Otaku
A Rogue OtakuOP2mo ago
Sure. Thanks for giving your time.
Sara
Sara2mo ago
Sara
Sara2mo ago
No description
A Rogue Otaku
A Rogue OtakuOP2mo ago
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.
Sara
Sara2mo ago
I wouldn't say so it's still compatable, just not for these line
A Rogue Otaku
A Rogue OtakuOP2mo ago
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:
No description
No description
Sara
Sara2mo ago
for args I wouldn't bother with it too much, but you are on the right track
A Rogue Otaku
A Rogue OtakuOP2mo ago
Thanks @Sara . Appreciate the help.
Sara
Sara2mo ago
you're most welcome!

Did you find this page helpful?