-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
suggested various refactors #136
Comments
💯 I was a fan of this bind operator but don't use it these days either due to what you described 😊 |
yeah, somebody should work on that bind operator. would be useful. alas... |
My two cents on the bind operator: As someone with Node experience but in no way an Node expert the barrier of entry for me to contribute is way higher. I also may be doing something wrong but debugging issues with node-brk is harder as well. |
(notes to self about TS refactoring)
|
Taking a look at the state of the codebase, I'd like to recommend the following changes:
::
). We shouldn't use any JS that isn't guaranteed to one day actually be valid syntax.babel-env
to useshippedProposals: true
, which should replace most of the one-off babel plugins.prettier
,eslint-plugin-prettier
,husky
andlint-staged
to perform automatic formatting and fixing as a pre-commit hook. This should eliminate any further fussing about formatting in future discussions or code reviews.tsc
as a type-checker. This will give us the types from TypeScript and DefinitelyTyped, but does not demand we rewrite the project in TS. We're taking this approach in Appium and I've found it works well. This shouldn't conflict with what we're doing to generate typings, as much of the API seems to be automatically generated from a swagger doc. However, this will likely require a few refactors to keep TS happy (e.g., you cannot return anything from a constructor other thanthis
, so we'll need to find a different way to accomplish the same thing).The text was updated successfully, but these errors were encountered: