-
Notifications
You must be signed in to change notification settings - Fork 454
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
Migrate from tslint to eslint #2415
Migrate from tslint to eslint #2415
Conversation
1bffe4c
to
94df177
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like a promising start, thanks for the contribution! I just have a few suggestions that might make the eslint setup a bit more helpful. As well, I found a few linting errors in the codebase after I rebased this PR.
I'm going to push a commit onto this PR in order to address the conflicts and the feedback I had... |
94df177
to
9560b1e
Compare
9560b1e
to
91c4150
Compare
Sorry for not giving feedback @datho7561. I didn't really have time to check what my reasoning was :D As far as I can remember including the custom arrow plugin and not including the recommended rules was to recreate the tslint status-quo as close as possible. |
No worries!
Okay. That makes sense. Using the recommended rules meant that I needed to refactor a large portion of the codebase to fix lint errors, so it might make sense to stick with what you had. @rgrunber, what do you think about this? |
91c4150
to
c04efd2
Compare
I removed the part where I inherited the default eslint configuration and the refactoring I did to adapt to this, but left in switching from the extension for arrow functions to the default eslint arrow function functionality. |
Taking a look at it, I don't think |
13d4e3f
to
f73c7f8
Compare
Signed-off-by: Fiete Ostkamp <[email protected]>
Signed-off-by: Fiete Ostkamp <[email protected]>
Signed-off-by: David Thompson <[email protected]>
Signed-off-by: David Thompson <[email protected]>
7ca67cc
to
b7ebbef
Compare
@rgrunber I just pushed a commit that makes sure that the |
b7ebbef
to
3f5893b
Compare
3f5893b
to
b094ade
Compare
Signed-off-by: David Thompson <[email protected]>
b094ade
to
3b5898a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've tested this out and it works for me. With the installed recommended problem matchers we even wait for the compilation to complete, which is nice.
The linting is quite a bit more strict, but that may be for the best.
* Add eslint * Remove tslint references, replace tslint ignores with eslint ignores * Ignore node_modules, use eslint arrow function, add webpack plugin * Lint ts files, address lint errors in ts files * Fix problem matcher Signed-off-by: Fiete Ostkamp <[email protected]> Co-authored-by: David Thompson <[email protected]>
This PR aims to replace tslint with eslint, since the former is deprecated since 2019.