Linting of convex TS files is very slow - 7 seconds per file
Get this in VSCode:
Output of eslint with --debug:
...
eslint:eslint Lint /home/den/work/convex-test1/convex/db/users.ts +3ms
eslint:linter Linting code for /home/den/work/convex-test1/convex/db/users.ts (pass 1) +0ms
eslint:linter Verify +0ms
eslint:linter With flat config: /home/den/work/convex-test1/convex/db/users.ts +0ms
eslint:languages:js Parsing: /home/den/work/convex-test1/convex/db/users.ts +0ms
eslint:languages:js Parsing successful: /home/den/work/convex-test1/convex/db/users.ts +2s (!!!!)
eslint:languages:js Scope analysis: /home/den/work/convex-test1/convex/db/users.ts +1ms
eslint:languages:js Scope analysis successful: /home/den/work/convex-test1/convex/db/users.ts +0ms
eslint:linter Generating fixed text for /home/den/work/convex-test1/convex/db/users.ts (pass 1) +4s (!!!!)
eslint:source-code-fixer Applying fixes +0ms
eslint:source-code-fixer shouldFix parameter was false, not attempting fixes +1ms
...
Is it possible to improve linting speed for convex TS files?
Code: https://playcode.io/2379520
PlayCode.io
TypeScript Playground
Try this online TypeScript Playground playground with instant live preview and console. Easy & Fast. Experiment yourself.
3 Replies
Thanks for posting in <#1088161997662724167>.
Reminder: If you have a Convex Pro account, use the Convex Dashboard to file support tickets.
- Provide context: What are you trying to achieve, what is the end-user interaction, what are you seeing? (full error message, command output, etc.)
- Use search.convex.dev to search Docs, Stack, and Discord all at once.
- Additionally, you can post your questions in the Convex Community's <#1228095053885476985> channel to receive a response from AI.
- Avoid tagging staff unless specifically instructed.
Thank you!
hi. how many LOC in that file, out of curiosity?
only 45 lines. You can check the code using the link at the bottom of my first message.