-
Notifications
You must be signed in to change notification settings - Fork 19
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
Eslint Config #20
Eslint Config #20
Conversation
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.
Thanks a lot for this @benschinn !
This is looking great, I wonder if we could add some "globals" for eslint to ignore them: https://eslint.org/docs/user-guide/configuring#specifying-globals
And eslint-disable-line
statements in the existing JavaScript files, so we start from a "zero warnings" state and then move on from there? :)
… no-unused-vars rules improved
@jchavarri hey thanks for the review! I pushed up some changes that addresses most things I think. Now getting just one warning from lint. And it might actually be a bug. It looks like |
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 is awesome @benschinn ! There is just a global joo_global_objec
that I think could be removed, but I can do it in a few hours. I'll merge this in at that time as well :)
I will also take a look at that unused var, definitely looks like a bug 🐛
Thanks again! 🚀
@jchavarri should we use something like husky for linting on a pre commit hook? |
Oops @jchavarri. I misunderstood your comment above and committed the |
@benschinn Husky is cool! Although, I would only add it if we run into linting issues pretty often, for now I'd feel inclined to keep things leaner, especially considering we'll have soon CI integration when #4 is done.
Ah! yes please 🙏 There's no rush though, I can do it later otherwise :) |
Sounds good!
Done! e41bcf8 |
Thanks @benschinn ! ✨ |
Fixes #14. In reference to conversation with @jchavarri in PR #18:
A lightweight eslint config!
In
lib
directory run:P.S.- sorry for the misspelled branch name meant to name it
js-lint