Skip to content

Commit

Permalink
Enable the ESLint prefer-const rule in the web/ directory
Browse files Browse the repository at this point in the history
Please find additional details about the ESLint rule at https://eslint.org/docs/rules/prefer-const

Note that this patch is generated automatically, by using the ESLint `--fix` argument, and will thus require some additional clean-up (which is done separately).
  • Loading branch information
Snuffleupagus committed Dec 27, 2019
1 parent 9c767e3 commit 5d14e68
Show file tree
Hide file tree
Showing 36 changed files with 367 additions and 367 deletions.
1 change: 1 addition & 0 deletions web/.eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@

// ECMAScript 6
"no-var": "error",
"prefer-const": "error",
},
}
2 changes: 1 addition & 1 deletion web/annotation_layer_builder.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class AnnotationLayerBuilder {
return;
}

let parameters = {
const parameters = {
viewport: viewport.clone({ dontFlip: true }),
div: this.div,
annotations,
Expand Down
Loading

0 comments on commit 5d14e68

Please sign in to comment.