Skip to content

Commit

Permalink
change let -> const if not reassigned, phetsims/tasks#973
Browse files Browse the repository at this point in the history
  • Loading branch information
zepumph committed Oct 22, 2024
1 parent 1607dd1 commit 6c91676
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions eslint/.eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,12 @@
"args": "none"
}
],
// error when let is used but the variable is never reassigned, see https://github.com/phetsims/tasks/issues/973
"prefer-const": [
"error", {
"destructuring": "any",
"ignoreReadBeforeAssign": false
}],
// "require-jsdoc": [
// 2
// ],
Expand Down

0 comments on commit 6c91676

Please sign in to comment.