Commit graph

6 commits

Author SHA1 Message Date
Remco Haszing
9739d143d3
Apply various stylistic fixes
- ESLint config `remcohaszing/typechecking` is extended.
- Various previously disabled ESLint rules have now been enabled.
- Various `any` types have been fixed.
- Removed useless type check of diagnostic code.
- The diagnostics adapter listener has been turned into an actual map.
2021-09-02 22:11:00 +02:00
Remco Haszing
8fa3ca4252
Convert classes to factory functions
TypeScript is better at inferring types when using simple functions and
objects instead of classes. As a result many type annotations have now
been removed without impacting type safety.

Some other benefits are this can be minified better and private fields
are now truly private variables.
2021-08-19 17:06:42 +02:00
Remco Haszing
ac7b6fe307
Introduce ESLint
The ESLint preset `eslint-config-remcohaszing` is used.
2021-07-17 17:12:17 +02:00
Egor Gorbachev
766edb0be4 Fix the code to generate a proper ESM output 2019-09-19 20:57:50 +02:00
Peng Xiao
0229f023b0 test: add jest for testing 2018-12-14 18:00:45 +08:00
Peng Xiao
a0db642717 chore: align with pengx17/master branch 2018-10-25 10:12:07 +08:00