@@ -28,7 +28,7 @@ module.exports = {
28
28
rules : { // http://eslint.org/docs/rules/
29
29
30
30
// Possible Errors
31
- 'comma-dangle ' : [ 2 , 'only-multiline' ] , // require or disallow trailing commas
31
+ 'no-await-in-loop ' : 0 , // disallow `await` inside of loops
32
32
'no-cond-assign' : 2 , // disallow assignment operators in conditional expressions
33
33
'no-console' : 0 , // disallow the use of `console`
34
34
'no-constant-condition' : 2 , // disallow constant expressions in conditions
@@ -111,6 +111,7 @@ module.exports = {
111
111
'no-redeclare' : [ 1 , { builtinGlobals : true } ] , // disallow `var` redeclaration
112
112
'no-restricted-properties' : 0 , // disallow certain properties on certain objects
113
113
'no-return-assign' : [ 1 , 'always' ] , // disallow assignment operators in `return` statements
114
+ 'no-return-await' : 1 , // disallow unnecessary `return await`
114
115
'no-script-url' : 2 , // disallow `javascript` urls
115
116
'no-self-assign' : [ 2 , { props : true } ] , // disallow assignments where both sides are exactly the same
116
117
'no-self-compare' : 2 , // disallow comparisons where both sides are exactly the same
@@ -127,6 +128,7 @@ module.exports = {
127
128
'no-warning-comments' : 1 , // disallow specified warning terms in comments
128
129
'no-with' : 2 , // disallow `with` statements
129
130
'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
130
132
'vars-on-top' : 0 , // require `var` declarations be placed at the top of their containing scope
131
133
'wrap-iife' : [ 1 , 'any' ] , // require parentheses around immediate function invocations
132
134
'yoda' : 0 , // require or disallow “Yoda” conditions
@@ -165,6 +167,8 @@ module.exports = {
165
167
'block-spacing' : 0 , // enforce consistent spacing inside single-line blocks
166
168
'brace-style' : 0 , // enforce consistent brace style for blocks
167
169
'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
168
172
'comma-spacing' : 1 , // enforce consistent spacing before and after commas
169
173
'comma-style' : 0 , // enforce consistent comma style
170
174
'computed-property-spacing' : 0 , // enforce consistent spacing inside computed property brackets
0 commit comments