From 7c514460401f382bc0dc299ba92abd1b5380ff12 Mon Sep 17 00:00:00 2001 From: John McLear Date: Wed, 17 Feb 2021 14:55:54 +0000 Subject: [PATCH] lint: use strict --- src/static/js/ChangesetUtils.js | 2 ++ src/static/js/index.js | 4 ++-- src/static/js/l10n.js | 4 +++- src/static/js/security.js | 2 ++ src/static/js/underscore.js | 2 ++ 5 files changed, 11 insertions(+), 3 deletions(-) diff --git a/src/static/js/ChangesetUtils.js b/src/static/js/ChangesetUtils.js index c7333afcf..15ce9c564 100644 --- a/src/static/js/ChangesetUtils.js +++ b/src/static/js/ChangesetUtils.js @@ -1,3 +1,5 @@ +'use strict'; + /** * This module contains several helper Functions to build Changesets * based on a SkipList diff --git a/src/static/js/index.js b/src/static/js/index.js index 72941cd8f..566305e70 100644 --- a/src/static/js/index.js +++ b/src/static/js/index.js @@ -1,3 +1,5 @@ +'use strict'; + // @license magnet:?xt=urn:btih:8e4f440f4c65981c5bf93c76d35135ba5064d8b7&dn=apache-2.0.txt Apache-2.0 /** * Copyright 2011 Peter Martischka, Primary Technology. @@ -16,8 +18,6 @@ * limitations under the License. */ -/* global $, customStart */ - function randomPadName() { // the number of distinct chars (64) is chosen to ensure that the selection will be uniform when // using the PRNG below diff --git a/src/static/js/l10n.js b/src/static/js/l10n.js index 3c980898f..7206f913b 100644 --- a/src/static/js/l10n.js +++ b/src/static/js/l10n.js @@ -1,4 +1,6 @@ -(function (document) { +'use strict'; + +((document) => { // Set language for l10n let language = document.cookie.match(/language=((\w{2,3})(-\w+)?)/); if (language) language = language[1]; diff --git a/src/static/js/security.js b/src/static/js/security.js index 9c9fff37b..d92425cb7 100644 --- a/src/static/js/security.js +++ b/src/static/js/security.js @@ -1,3 +1,5 @@ +'use strict'; + /** * Copyright 2009 Google Inc. * diff --git a/src/static/js/underscore.js b/src/static/js/underscore.js index a6d42b858..d30543cab 100644 --- a/src/static/js/underscore.js +++ b/src/static/js/underscore.js @@ -1 +1,3 @@ +'use strict'; + module.exports = require('underscore');