Skip to content

Commit

Permalink
Enable the for-direction ESLint rule
Browse files Browse the repository at this point in the history
See https://eslint.org/docs/rules/for-direction; helps avoid typos that would cause infinite `for` loops.

Also, updates `eslint` and `eslint-plugin-mozilla` to the latest available versions.
  • Loading branch information
Snuffleupagus committed Aug 26, 2017
1 parent 798e46d commit 0e2618f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

"rules": {
// Possible errors
"for-direction": "error",
"no-cond-assign": ["error", "except-parens"],
"no-constant-condition": ["error", { "checkLoops": false, }],
"no-dupe-args": "error",
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
"babel-preset-es2015": "^6.24.1",
"core-js": "^2.5.0",
"escodegen": "^1.8.0",
"eslint": "^4.2.0",
"eslint-plugin-mozilla": "^0.4.0",
"eslint": "^4.5.0",
"eslint-plugin-mozilla": "^0.4.3",
"gulp": "^3.9.1",
"gulp-rename": "^1.2.2",
"gulp-replace": "^0.5.4",
Expand Down

0 comments on commit 0e2618f

Please sign in to comment.