Skip to content

Commit

Permalink
Allow while (true) and other constant conditions in loops
Browse files Browse the repository at this point in the history
  • Loading branch information
RyanZim committed Apr 9, 2018
1 parent 1d661af commit f79c106
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ module.exports = {
'no-mixed-spaces-and-tabs': 'off',
// Allow empty catch statements
'no-empty': ['error', { allowEmptyCatch: true }],
// Allow while (true)
'no-constant-condition': ['error', { checkLoops: false }],
// Additional warnings
'no-alert': 'warn',
// Additional problems
Expand Down

0 comments on commit f79c106

Please sign in to comment.