[gnome-maps/wip/mattiasb/eslint-2.0-2] Lint: Disallow the `var` statement



commit 32a7e1b992011b50369a5a11fd738c0382b1436e
Author: Mattias Bengtsson <mattias jc bengtsson gmail com>
Date:   Wed Feb 17 07:49:10 2016 +0100

    Lint: Disallow the `var` statement
    
    Disallow using `var` to declare variables. Only allow declaring
    variables with `let` and `const`.

 .eslintrc.yaml |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/.eslintrc.yaml b/.eslintrc.yaml
index fdcd11e..e193cc1 100644
--- a/.eslintrc.yaml
+++ b/.eslintrc.yaml
@@ -32,3 +32,5 @@ rules:
     indent:
         - 2
         - 4
+    no-var:
+        - 2


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]