Skip to content
This repository was archived by the owner on Mar 7, 2019. It is now read-only.

Commit 787b9d6

Browse files
Upgrade ESLint to 4.7.0
1 parent d9af269 commit 787b9d6

File tree

5 files changed

+59
-50
lines changed

5 files changed

+59
-50
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[eslint-url]: http://eslint.org
22
[travis-badge]: https://travis-ci.org/strvcom/eslint-config-javascript.svg
33
[travis-url]: https://travis-ci.org/strvcom/eslint-config-javascript
4-
[eslint-version]: https://img.shields.io/badge/ESLint->=4.6.0-brightgreen.svg
4+
[eslint-version]: https://img.shields.io/badge/ESLint->=4.7.0-brightgreen.svg
55
[eslint-fixing]: http://eslint.org/docs/user-guide/command-line-interface#fix
66
[flow-home]: https://flow.org
77
[react-home]: http://reactjs.com

coding-styles/fixable.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,13 @@ module.exports = {
136136
// This rule aims to ensure having consistent line endings independent of operating system.
137137
'linebreak-style': ['error', 'unix'],
138138

139+
// Newline Per Chained Method Call
140+
// This rule checks and reports the chained calls if there are no new lines after each call or
141+
// deep member access.
142+
'newline-per-chained-call': ['warn', {
143+
ignoreChainWithDepth: 3,
144+
}],
145+
139146
// Require Parens for Constructors
140147
// This rule is aimed at highlighting a lack of convention and increasing code clarity by
141148
// requiring the use of parentheses when invoking a constructor via the new keyword.

coding-styles/recommended.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -93,13 +93,6 @@ module.exports = {
9393
capIsNew: true,
9494
}],
9595

96-
// Newline Per Chained Method Call
97-
// This rule checks and reports the chained calls if there are no new lines after each call or
98-
// deep member access.
99-
'newline-per-chained-call': ['warn', {
100-
ignoreChainWithDepth: 3,
101-
}],
102-
10396
// Disallow duplicate exports/imports
10497
// An ES6/ES2015 import can be spread over multiple lines, but this takes up unneeded
10598
// whitespace. This rules validates that all imports from a single module exists in a single

package-lock.json

Lines changed: 49 additions & 40 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"eslint-plugin-react": "^7.4.0"
2222
},
2323
"devDependencies": {
24-
"eslint": "^4.6.0"
24+
"eslint": "^4.7.0"
2525
},
2626
"engines": {
2727
"node": ">=6"
@@ -37,7 +37,7 @@
3737
"license": "BSD-3-Clause",
3838
"main": "default",
3939
"peerDependencies": {
40-
"eslint": "^4.6.0"
40+
"eslint": "^4.7.0"
4141
},
4242
"repository": {
4343
"type": "git",

0 commit comments

Comments
 (0)