Skip to content

Commit

Permalink
Fix illegal re-assign of const (#591)
Browse files Browse the repository at this point in the history
* Fix illegal re-assign of `const`

* Update .eslintrc.json to show error on const assign
  • Loading branch information
Kronos3 committed Jun 25, 2024
1 parent 70ae645 commit b1996e4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"no-throw-literal": [
"error"
],
"no-const-assign": "error",
"prefer-const": [
"error",
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ export function resolveDefaultElement( property, target = null ) {
if ( isMatrixType( type ) ) {

const elements = target.elements;
for ( const i = 0, l = elements.length; i < l; i ++ ) {
for ( let i = 0, l = elements.length; i < l; i ++ ) {

elements[ i ] = defaultValue[ i ];

Expand Down

0 comments on commit b1996e4

Please sign in to comment.