-
Notifications
You must be signed in to change notification settings - Fork 217
Start TypeScript migration & new formatting and tooling #308
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
Conversation
Co-authored-by: ts-migrate <>
Co-authored-by: ts-migrate <>
|
Did you consider using ts-standard for formater and static code checker (https://standardjs.com/)? Should we also look at PNPM as package manager? |
I'm personally quite happy with how Prettier formats and how many file types it supports. I went for eslint to keep things minimal for now and not drown in warnings. If there are particular reasons you prefer standard over these two, I'm open to arguments.
I was thinking of switching to corepack, which we also successfully use in Uppy, combined with Yarn V3 (with normal node_modules). Corepack ships with Node.js >= 14.20 (or can be installed globally) and lets all users install modules without installing a package manager. How do you feel about that? Bonus points for yarn: auto install types if needed |
* 1.x: 0.8.1 Fix validation of upload-length header in patch handler (#303) Bump @google-cloud/storage from 6.4.1 to 6.5.2 (#304) Bump aws-sdk from 2.1206.0 to 2.1227.0 (#305) Revert "Bump tus-js-client from 2.3.1 to 3.0.0" (#302) Emit upload complete event when using creation-with-upload extension (#301) GCS: fix error handling when checking for bucket existence (#299)
|
I don't have any strong reasons to use standardjs over prettier and eslint. I like that it is single tool that does multiple things and is without configuration and has (at least for my taste) reasonable defaults. |
I've been trying it locally in this branch with We could as an alternative use Another alternative is trying What do you think? |
|
Update: I implemented
Note that I won't be fixing all the eslint errors in this PR but in a follow up PR which also does the types properly. Tests still run successfully locally and have been running successfully up until this last commit. |
|
Also switched to Corepack + Yarn V3. Setup caching for yarn dependencies in CI, and added the typescript yarn plugin. README as been updated for this. That's it for this PR. Final call for comments :) |
|
Just a heads up. |
This is on purpose. I figured we want to keep the example demo in JS to make it as accessible as possible for everyone. It just references the build output now instead of the source. |
|
Merged :) Tackling proper types and eslint errors now. Properly best to hold off a bit more with big changes till the next PR is merged. |
ts-migrate@types/*dependenciescjstoesm.eslintrc.json.editorconfigprettiernpx sort-package.json@types/*packages when needed