-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Update ESLint Config #407 #540
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
Conversation
Thanks, I have put in a few comments. I appreciate you taking a stab at this. 👍 |
.eslintrc.json
Outdated
@@ -0,0 +1,28 @@ | |||
{ |
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 believe we still want the config to live in package.json
. This was done intentionally to reduce errors when the project was copied. See #405
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.
Ok no prob)
.eslintrc.json
Outdated
"extends": [ | ||
"eslint:recommended", | ||
"plugin:import/errors", | ||
"plugin:import/warnings" |
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 would expect the import plugin to be listed in plugs. Is it inherited by another?
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.
Could not trace where exactly it is inherited from but, it is.
.eslintrc.json
Outdated
"plugin:import/warnings" | ||
], | ||
"plugins": [ | ||
"react" |
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 like that we are importing this, I do believe we should find a export preset of rules we can extend here to cover (most or all) of the rules we had previously set.
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.
Then what is the point of removing custom rules and creating dependency on other packages? The very last comment section of the issue #407 suggests a PR that removes custom rules, imports default, or am i wrong?
643a67c
to
637d83b
Compare
@coryhouse & @nickytonline What do you think? I still want to pull it down and run lint a few times and fix to see if it causes any changes. |
I'm OK with you testing it locally to see if any other changes are required. It's using recommended/defaults for linting, so unless you see something glaring after you test it, I'd say we're probably good to go if Cory's OK with the changes. |
Linting runs clean for me so PR looks 👍 |
Thanks for the PR @Mottoweb! |
Glad to be of help! |
Hey,
I stumbled upon #407, so i thought i could give it a go for a first good PR.
Let me know if i missed anything.
Things were done: