-
Notifications
You must be signed in to change notification settings - Fork 787
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
chore: Upgrade eslint config #875
Conversation
Move to prettier-eslint in lint-staged. Upgrade eslint, babel-eslint dependencies. Rename .eslintrc -> .eslintrc.js
Reformat files using updated eslint, babel-eslint, prettier-eslint
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.
Good enhancement. And I have few questions.
Rename .eslintrc -> .eslintrc.js so it can be automatically formatted too.
Is it depend on your IDE? I don't know why .eslintrc.js can work, but .eslintrc doesn't.
Edit: I found .eslintrc was deprecated, https://dev.to/ohbarye/eslintrc-without-file-extension-is-deprecated-3ngg. Is it the reason?
<CommitListItem commit={item} navigation={this.props.navigation} />; | ||
renderItem = ({ item }) => ( | ||
<CommitListItem commit={item} navigation={this.props.navigation} /> | ||
); |
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.
Can we do some prettier/eslint configurations so that these changes will not be made? As well as the space after async
and extra empty line between every let/const.
Updates,
|
@G2Jose Can you update this PR or would you mind me taking over it? |
Description
Changes
Updated the following packages related to linting:
Adds the following packages:
Reformat files that do not comply with linting configuration.
async
functions too - Example here.Rename
.eslintrc
->.eslintrc.js
so it can be automatically formatted too.Motivation
prettier-eslint
was created exactly to solve this problem. See https://github.com/prettier/prettier-eslint