-
Notifications
You must be signed in to change notification settings - Fork 36
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
Add CI for 2.x #405
Add CI for 2.x #405
Conversation
@dodmi This is my proposal for a first step to improve the development experience for the 2.x branch. I personally think this checks are useful. But it does mean sometimes one has to put a little more work into it. To have code that does not just functions, but there the checkers are also happy. Please let me know what you thing about this. Also what IDE are you using? This all works nicely together with VS Code and a local Node.JS installation. Getting type hints (and errors) directly in the IDE. |
As always, thank you :) |
That is not a problem as long as you are willing to learn. With the help of JSDoc comments and the Type Script compiler you can make Java Script feel more like a statically typed language. The advantages are:
See also https://www.typescriptlang.org/docs/handbook/intro-to-js-ts.html and https://code.visualstudio.com/Docs/languages/javascript#_type-checking. ESLint (https://eslint.org/) statically analyzes the code to:
As you don't seem to have any objections I will merge this now.
|
Well, I'm really interested and would like to learn. So, I'll give it a try. I'm not using "VS Code". As I'm no developer, I have no full blown IDE, but only Notepad++, which provides syntax highlighting and a function list. So, I'll need some time to get into it (thank you for the links and quick steps to get it working) |
Yesterday I found some errors then I wanted to merge it, fixed it now (and force pushed this branch). |
This adds a ESLint and Type Check for the 2.x branch.
Enabling and fixing strict type checking is left for a follow up.