summaryrefslogtreecommitdiff
path: root/web
diff options
context:
space:
mode:
authorMonty Taylor <mordred@inaugust.com>2019-07-31 11:11:58 -0400
committerMonty Taylor <mordred@inaugust.com>2019-08-28 09:06:05 +0200
commitfdc9a1830a4c37c72dcf7714dea9bf1852e93af9 (patch)
tree85ce38dc1e18ea1592e1e47324685d2ebea3c2dd /web
parent5e44640d20f0592aba8ac1b30905b88f37114d31 (diff)
downloadzuul-fdc9a1830a4c37c72dcf7714dea9bf1852e93af9.tar.gz
Add linter rule disallowing use of var
var in javascript has some surprising behaviors, especially for those of us from a python background, and can hide some errors. There's a good article on it here: https://tylermcginnis.com/var-let-const/ Tell eslint to not allow the use of var and instead require either let or const. Then update the one use. Change-Id: Idd4b0a9086a68070dc35b546b7f73701c94ba1b0
Diffstat (limited to 'web')
-rw-r--r--web/.eslintrc1
1 files changed, 1 insertions, 0 deletions
diff --git a/web/.eslintrc b/web/.eslintrc
index 86ff5afee..40a66d301 100644
--- a/web/.eslintrc
+++ b/web/.eslintrc
@@ -3,6 +3,7 @@ plugins:
- standard
- jest
rules:
+ no-var: error
no-console: off
semi: [error, never]
quotes: [error, single]