Skip to content

Commit a1eabbb

Browse files
greenkeeperio-botglebec
authored andcommitted
Update eslint to version 3.12.1 🚀 (#22)
* chore(package): update eslint to version 3.12.1 https://greenkeeper.io/ * perf(base): no yaml, ~30% faster (#23) * 2.1.0 * feat(eslint): support 3.12.1 * feat(eslint): support versions btw 3.9.0 and 3.12.1
1 parent 4fe7a80 commit a1eabbb

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.eslintrc.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ module.exports = {
2828
rules: { // http://eslint.org/docs/rules/
2929

3030
// Possible Errors
31-
'comma-dangle': [2, 'only-multiline'], // require or disallow trailing commas
31+
'no-await-in-loop': 0, // disallow `await` inside of loops
3232
'no-cond-assign': 2, // disallow assignment operators in conditional expressions
3333
'no-console': 0, // disallow the use of `console`
3434
'no-constant-condition': 2, // disallow constant expressions in conditions
@@ -111,6 +111,7 @@ module.exports = {
111111
'no-redeclare': [1, {builtinGlobals: true}], // disallow `var` redeclaration
112112
'no-restricted-properties': 0, // disallow certain properties on certain objects
113113
'no-return-assign': [1, 'always'], // disallow assignment operators in `return` statements
114+
'no-return-await': 1, // disallow unnecessary `return await`
114115
'no-script-url': 2, // disallow `javascript` urls
115116
'no-self-assign': [2, {props: true}], // disallow assignments where both sides are exactly the same
116117
'no-self-compare': 2, // disallow comparisons where both sides are exactly the same
@@ -127,6 +128,7 @@ module.exports = {
127128
'no-warning-comments': 1, // disallow specified warning terms in comments
128129
'no-with': 2, // disallow `with` statements
129130
'radix': 1, // enforce the consistent use of the radix argument when using `parseInt()`
131+
'require-await': 1, // disallow async functions which have no `await` expression
130132
'vars-on-top': 0, // require `var` declarations be placed at the top of their containing scope
131133
'wrap-iife': [1, 'any'], // require parentheses around immediate function invocations
132134
'yoda': 0, // require or disallow “Yoda” conditions
@@ -165,6 +167,8 @@ module.exports = {
165167
'block-spacing': 0, // enforce consistent spacing inside single-line blocks
166168
'brace-style': 0, // enforce consistent brace style for blocks
167169
'camelcase': 1, // enforce camelcase naming convention
170+
'capitalized-comments': 0, // enforce or disallow capitalization of the first letter of a comment
171+
'comma-dangle': [2, 'only-multiline'], // require or disallow trailing commas
168172
'comma-spacing': 1, // enforce consistent spacing before and after commas
169173
'comma-style': 0, // enforce consistent comma style
170174
'computed-property-spacing': 0, // enforce consistent spacing inside computed property brackets

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"homepage": "https://github.com/FullstackAcademy/eslint-config-fullstack#readme",
3434
"devDependencies": {
3535
"chai": "^3.5.0",
36-
"eslint": "~3.9.0",
36+
"eslint": "~3.12.1",
3737
"eslint-plugin-react": "^6.7.1",
3838
"mocha": "^3.0.0"
3939
},

0 commit comments

Comments
 (0)