-
Notifications
You must be signed in to change notification settings - Fork 10
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
commitlint,docs: start using FP patterns #174
Conversation
@webwarrior-ws hey Taras can you investigate why the 2nd commit of this PR breaks tests please? I'm very confused. |
@knocte you've used class |
Thanks |
And make use of it in one of the plugins already. See my SO post about this: https://stackoverflow.com/a/78937127/544947 Co-authored-by: webwarrior <[email protected]>
65ac82d
to
00f6eef
Compare
Empty classes result in strange issues that turn the TS compiler into not very helpful. E.g.: https://stackoverflow.com/questions/78953267/why-is-typescript-not-throwing-a-compile-time-error-when-constructor-is-not-used NOTE: we still mark the new methods as deprecated to give a hint that `instanceof` usage is better. These tooltips will be properly shown by IDEs and linters according to: https://stackoverflow.com/a/62991642/544947
05ef34b
to
ef4ddb9
Compare
The keyword `instanceof` is a footgun in JS/TS because it only works for classes, but not primitive types. This was taken from: https://stackoverflow.com/a/58184883/544947
There was a bug in |
73e0062
to
ef97226
Compare
8576978
to
bcffbc8
Compare
6807c3d
to
2100e2c
Compare
No description provided.