-
Notifications
You must be signed in to change notification settings - Fork 31
Configure ESLint #74
Configure ESLint #74
Conversation
83b3637
to
ffa92f3
Compare
Codecov Report
@@ Coverage Diff @@
## master #74 +/- ##
=======================================
Coverage 62.59% 62.59%
=======================================
Files 10 10
Lines 131 131
Branches 26 26
=======================================
Hits 82 82
Misses 45 45
Partials 4 4
Continue to review full report at Codecov.
|
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.
This looks good to me, and it works well with my IDE as well. Nice job @willdurand!
If it's not too crazy, how about squeezing this in? https://github.com/prettier/eslint-config-prettier Otherwise it could be done in a separate PR. Disabling the rules made moot by prettier would be nice and could possibly speed up our linting. |
I pushed a new commit with more types.. The ESLint TS config wanted moaar! |
So upgrading the eslint dependencies did not remove the warnings:
|
rebased again |
I found the issue related to the JSX and false-positives, a fix has been merged < 24h ago: typescript-eslint/typescript-eslint#161 and I confirm it works. |
This is now ready 🚀 |
I added another commit to use the canary release of the plugin. |
I deferred it to #84 |
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.
Here is an incomplete review before the status meeting.
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.
...continuing my review
257ef90
to
b425d0b
Compare
I fixed all the comments, thanks! |
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.
r+wc
Just a few minor things to clean up
Fixes #17
Fixes #75
There are 3 warnings due to JSX not being supported by ESLint anymore: https://eslint.org/blog/2015/03/eslint-0.17.0-released#changes-to-jsxreact-handling.
I think it could maybe be fixed automagically by upgrading some of our dependencies, but it requires some work on https://github.com/mozilla/eslint-config-amo (which is on my todo-list).