[gnome-maps/wip/mattiasb/eslint] Lint: No Empty Character Classes



commit fc9338ab2447048be5d6dec1eded8fd1b6fba19b
Author: Mattias Bengtsson <mattias jc bengtsson gmail com>
Date:   Sat Jan 30 21:26:15 2016 +0100

    Lint: No Empty Character Classes
    
    From the ESLint docs:
    
        Empty character classes in regular expressions do not match anything
        and can result in code that may not work as intended.
    
    Example:
    
        var foo = /^abc[]/;

 .eslintrc.yaml |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/.eslintrc.yaml b/.eslintrc.yaml
index ec6d844..7edee62 100644
--- a/.eslintrc.yaml
+++ b/.eslintrc.yaml
@@ -22,3 +22,5 @@ rules:
         - 2
     no-duplicate-case:
         - 2
+    no-empty-character-class:
+        - 2


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