Skip to content

Commit

Permalink
feat(stylistic): allow in for loop afterthought (#6)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
joshwiens committed Mar 29, 2017
1 parent 4c62972 commit efe3806
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rules/stylistic-issues.js
Original file line number Diff line number Diff line change
Expand Up @@ -272,11 +272,11 @@ module.exports = {

// disallow Object constructors
// http://eslint.org/docs/rules/no-new-object
'no-new-object': 'error',
'no-new-object': 'error'

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

// disallow specified syntax
// http://eslint.org/docs/rules/no-restricted-syntax
Expand Down

0 comments on commit efe3806

Please sign in to comment.