Skip to content

Commit efe3806

Browse files
authored
feat(stylistic): allow in for loop afterthought (#6)
* feat(stylistic): allow in for loop afterthought Allows unary operators in the final expression of a for loop * style: sneaky double quotes * fix: apply change to the right rule bonehead
1 parent 4c62972 commit efe3806

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rules/stylistic-issues.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -272,11 +272,11 @@ module.exports = {
272272

273273
// disallow Object constructors
274274
// http://eslint.org/docs/rules/no-new-object
275-
'no-new-object': 'error',
275+
'no-new-object': 'error'
276276

277277
// disallow the unary operators ++ and --
278278
// http://eslint.org/docs/rules/no-plusplus
279-
'no-plusplus': 'error',
279+
'no-plusplus': ['error', { 'allowForLoopAfterthoughts': true }],
280280

281281
// disallow specified syntax
282282
// http://eslint.org/docs/rules/no-restricted-syntax

0 commit comments

Comments
 (0)