[gnome-maps/wip/mattiasb/eslint-2.0-2: 34/40] Lint: Allow unused variables



commit 80eb9ba6d6541ea3060de64123ae40a9f8133f00
Author: Mattias Bengtsson <mattias jc bengtsson gmail com>
Date:   Sun Jan 31 21:53:32 2016 +0100

    Lint: Allow unused variables
    
    The ESLint recommended rules includes spitting errors on unused
    variables. While this makes sense in all other environments, in GJS
    the way to export a function or variable is to just define it in
    the top-level scope. So let's not do any errors on this.

 .eslintrc.yaml |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/.eslintrc.yaml b/.eslintrc.yaml
index 516f7fc..8319209 100644
--- a/.eslintrc.yaml
+++ b/.eslintrc.yaml
@@ -26,3 +26,6 @@ globals:
     _: false
     pkg: false
 
+rules:
+    no-unused-vars:
+        - 0


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