-
-
Notifications
You must be signed in to change notification settings - Fork 188
Typescript migration #145
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
Typescript migration #145
Conversation
…it is used in a test to not affect others (MongoBinary tests)
…ther more info on why the CI tests are failling but are passing locally
…f MongoClient warnings in our test suite by replacing deprecated methods
… fixes MongoClient open access error on the /tmp dir created
…ed asychronous operations
…asychronous operations
4b31a07 to
553bda5
Compare
…yReplSet class to avoid the unfinshed async operation in the test suite
|
@nodkz I finally fixed the last tests failing in CI due to changes regarding types that I've done. I have some questions and suggestions for you that I will comment on the code of this PR, when you have some time I'd love to have your feedback and of course your global feedback on this migration 😉 While going through the code I also thought of adding some more tests to the existing test suites, should I make them in another PR or should I add them directly in this PR ? |
|
@AJRdev Did you already migrate your internal projects to Eslint blog post: https://eslint.org/blog/2019/01/future-typescript-eslint |
Amazing work!!! 👍👍👍
You may add tests to this PR. We will publish a new major version after making all changes. PS. I'll add some todos assigned to me in the first message. |
@nodkz Not really, first time I'm reading this post about the Typescript team going for ESLint instead of TSLint ! From this post of the ESLint team (https://eslint.org/blog/2019/01/future-typescript-eslint), this repo seems to centralize all the packages needed to enable a full Typescript support in ESLint : https://github.com/typescript-eslint/typescript-eslint
You're welcome, I'm happy to help this package grow 😃
Ok I'll add them ASAP.
Ok perfect 👍 |
@nodkz I'm actually using WebStorm because I'm bit more used to the shortcuts, but I'll switch to VSCode for this project to enable a bit more easily the tooling around the project 😉 |
…ing after test logs
901c146 to
b5f629a
Compare
b5f629a to
c362ab7
Compare
Manual merge with #148
|
@nodkz Last cleanup and changes done, looks to good to me for release 😈 |
|
Great! 👍 |
BREAKING CHANGE: migrate codebase from Flowtype to TypeScript
|
🎉 This PR is included in version 4.0.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
|
@nodkz Thanks for the help, review, merge and release ! 😄 PS : Maybe I should've squashed the commits a bit before merging in master 🤕 |
I did it on purpose of too big changes about 11k lines. So I decided to merge them as is. It will be easy to review for the community, commit by commit. But cons are bad commit messages, but honestly not so bad. After a month or two the jump to the second page. So don't worry 😉 |
|
@nodkz Fair enough 😉 |
|
@AJRdev found the problem in package.json with CI coverage. |



Description
So here is my first draft of a full typescript migration regarding the issue #142
I still have a couple of tests that are failing to fix but all the migration from Flow is pretty done 😃
I am still improving some stuff and I will have a couple of questions & suggestions on the actual code that raised while typing everything with pretty strict ts-lint rules.
These issues should be fixed by this PR as well : #125 #86
To-do list :
eslintfromtslint(@nodkz)debugwith port prefixMongo[${data.port}]inMongoInstance