Skip to content

Commit

Permalink
feat: Relax "no-constant-condition" for loops
Browse files Browse the repository at this point in the history
  • Loading branch information
jhnns committed May 7, 2021
1 parent 551a1c8 commit 7337bb7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions base.js
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,13 @@ module.exports = {
"no-class-assign": "warn", // http://eslint.org/docs/rules/no-class-assign
"no-confusing-arrow": ["off", { allowParens: true }], // http://eslint.org/docs/rules/no-confusing-arrow
"no-console": "off", // http://eslint.org/docs/rules/no-console
"no-constant-condition": [
"error", // "error" because this is part of "eslint:recommended"
{
// while (true) loops are pretty common
checkLoops: false,
},
], // http://eslint.org/docs/rules/no-constant-condition
"no-constructor-return": "warn", // https://eslint.org/docs/rules/no-constructor-return
"no-continue": "off", // http://eslint.org/docs/rules/no-continue
"no-delete-var": "warn", // http://eslint.org/docs/rules/no-delete-var
Expand Down

0 comments on commit 7337bb7

Please sign in to comment.