diff options
author | Monty Taylor <mordred@inaugust.com> | 2019-07-31 11:11:58 -0400 |
---|---|---|
committer | Monty Taylor <mordred@inaugust.com> | 2019-08-28 09:06:05 +0200 |
commit | fdc9a1830a4c37c72dcf7714dea9bf1852e93af9 (patch) | |
tree | 85ce38dc1e18ea1592e1e47324685d2ebea3c2dd /web | |
parent | 5e44640d20f0592aba8ac1b30905b88f37114d31 (diff) | |
download | zuul-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/.eslintrc | 1 |
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] |