Skip to content
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

Merged
merged 11 commits into from
Jan 13, 2018
5 changes: 4 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
"rules": {
"no-console": "off",
"strict": ["error", "global"],
"curly": "warn"
"curly": "warn",
"getter-return": "error",
"function-paren-newline": ["error", "multiline"],
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As far as I can see this is a style rule. We don't enable any style rules in this preset.

"implicit-arrow-linebreak": ["error", "beside"]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like another style rule?

}
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"precommit": "lint-staged"
},
"devDependencies": {
"eslint": "^4.4.1",
Copy link
Contributor

Choose a reason for hiding this comment

The 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 packages/react-scripts/package.json instead.

"eslint": "^4.15.0",
"husky": "^0.13.2",
"lerna": "^2.0.0",
"lerna-changelog": "^0.6.0",
Expand Down