[gnome-maps/wip/mattiasb/eslint-2.0-2: 7/7] Lint: Disallow the `var` statement
- From: Mattias Bengtsson <mattiasb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-maps/wip/mattiasb/eslint-2.0-2: 7/7] Lint: Disallow the `var` statement
- Date: Wed, 17 Feb 2016 07:05:47 +0000 (UTC)
commit 7bc95b63794c6ed1f2cf41c05dd572480ae1627b
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 5890a13..5eedefe 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]