-
-
Notifications
You must be signed in to change notification settings - Fork 26.9k
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
Updating ESlint to ^4.15.0 and adding new rules to config #3723
Changes from 4 commits
b4c84bd
6ba1aa8
4e41a7f
e3d44a5
0d12732
2fd903f
472fdf9
27ecdea
b5b7cc0
c03ca16
eace2de
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,7 @@ | |
"precommit": "lint-staged" | ||
}, | ||
"devDependencies": { | ||
"eslint": "^4.4.1", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This version is not very relevant to our users. You want to change the one in |
||
"eslint": "^4.15.0", | ||
"husky": "^0.13.2", | ||
"lerna": "^2.0.0", | ||
"lerna-changelog": "^0.6.0", | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -239,6 +239,7 @@ module.exports = { | |
'Please use import() instead. More info: https://github.com/facebookincubator/create-react-app/blob/master/packages/react-scripts/template/README.md#code-splitting', | ||
}, | ||
], | ||
'getter-return': 'error', | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Let's make this a warning rather than an error? |
||
|
||
// https://github.com/benmosher/eslint-plugin-import/tree/master/docs/rules | ||
'import/first': 'error', | ||
|
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.
Isn't this our own
eslintrc
? To update the rules of our config, you'd need to changeeslint-config-react-app/index.js
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.
Ah good catch, I'll update the config
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.
Is it worth keeping this new rule in the root eslint config for development work?