Skip to content

Commit

Permalink
Merge pull request #11450 from Snuffleupagus/eslint-web-prefer-const
Browse files Browse the repository at this point in the history
Enable the ESLint `prefer-const` rule in the `web/` directory
  • Loading branch information
timvandermeij authored Dec 27, 2019
2 parents 9c767e3 + d9a5d50 commit 47ab4b8
Show file tree
Hide file tree
Showing 36 changed files with 377 additions and 378 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 47ab4b8

Please sign in to comment.