[gnome-maps/wip/mattiasb/eslint: 7/8] Lint: No Duplicate Keys



commit c5a48aeaa1a26dc2d8f9c10f26a3da87b407c212
Author: Mattias Bengtsson <mattias jc bengtsson gmail com>
Date:   Sat Jan 30 21:02:04 2016 +0100

    Lint: No Duplicate Keys
    
    Disallow Duplicate Keys.
    
    Example:
    
        var foo = {
            bar: "baz",
            bar: "qux"
        };
    
    http://eslint.org/docs/rules/no-dupe-keys

 .eslintrc.yaml |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/.eslintrc.yaml b/.eslintrc.yaml
index 2f4e669..f692b6a 100644
--- a/.eslintrc.yaml
+++ b/.eslintrc.yaml
@@ -18,3 +18,5 @@ rules:
         - 2
     no-dupe-args:
         - 2
+    no-dupe-keys:
+        - 2


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