-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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 eslint with react-hooks plugin #371
base: master
Are you sure you want to change the base?
Conversation
Great 👏 We should probably remove tslint at the same time? |
@wardoost Yes, it should be removed. The teams behind tslint and eslint for TypeScript are collaborating. |
Some thoughts on linter situation (in general, not related to this PR):
|
Check https://github.com/este/este/blob/master/.eslintrc.js for inspiration. |
@streamich Wouldn't it be better to integrate Prettier in ESLint to avoid conflicting rules/autofixes? Are there any specific TSLint rules that you think of now that are too strict? |
There is one or more rules that require you to sort stuff in alphabetical order, don't remember if it was object keys or imports. Also, there was something else [don't remember now] ... Why I would like to see Prettier outside of ESLint is so that commit or push never fails because of some code style problem. Prettier can be run any time on the whole project to fix all style "errors", I don't see necessity to fail a commit because of it, or for syntax highlighter to highlight all Prettier things as "errors".
|
Sounds perf 👌I also like the suggested config from @steida as a starting point, minus prettier and relay plugins |
8558b58
to
21b01a7
Compare
4baf4c2
to
7e57723
Compare
Hi @streamich , I have done some local
I was thinking of adding |
@ayush987goyal I think
Sounds good to me. |
@streamich Here is #948 to start this. |
react-hooks plugin with the exhaustive check is the must.
Just check how many weird things and errors the code base contains: #370
Try VSCode cmd . to show available fixes. There are some cases where the rule must be ignored, for passed deps for example.