@@ -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
0 commit comments