-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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 rules and fix errors #3726
Conversation
I changed the title to note that this is ESLint as opposed to PyLint. |
Firstly, thank you for the first time contribution. ✨ This looks well thought through and well done and I'm happy to see this make it into I do think your suggestions (especially |
Thank you @davidfischer!
Shall I make a separate PR for that? |
Hi @davidfischer, is there anything else I need to do here? |
I believe this is just waiting for @ericholscher to merge. :) |
I'll let @davidfischer do the honors! |
I'll plan to merge this in the next hour or so today. @bansalnitish, sure a separate PR would be great. |
Sure @davidfischer, I will make a separate PR! |
For indentation, I ideally let's stick to 4 spaces similar to Python. https://eslint.org/docs/rules/indent |
This PR Fixes #2909.
I have tested for all the rules mentioned in the issue. I have set the rules to
error
level when there are no false positives otherwise it is set towarning
level.There were 106 errors and warnings. Now we have 0 errors and 31 warnings. All these warnings are false positives.
I would also like to suggest to enforce the following rules: