-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improved jsdoc/type-checking setup #120
Conversation
b9ef70b
to
5b65bc4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good, added some prefixMap conversions you forgot :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, given the need to disable TS on so many files to avoid strict
mode errors, I think it would make sense for us to try https://github.com/allegro/typescript-strict-plugin , which should allow us to toggle strict mode per file, and so still get limited typechecking in those files.
This indeed sounds like a good idea. I'll check it out and see what impact it has on performance of the language server. There's also a draft PR open to add support for this in typescript: microsoft/TypeScript#49886 |
24bfa5f
to
234b951
Compare
4b366f3
to
0f6d1f6
Compare
0f6d1f6
to
7d41932
Compare
@piemonkey I added the plugin and was able to replace most |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great :)
Overview
This PR improves the jsdoc/type-checking setup of this javascript service.
Specifically it sets up:
tsconfig.json
typescript
dev-dependency@ts-nocheck
in files with missing/incorrect typesHow to test/reproduce
Challenges/uncertainties
I included two logic changes:
prefixMap
from aMap
to areadonly Record
to get better typesChecks PR readiness