[gnome-maps/wip/mattiasb/eslint2: 3/5] Lint: Allow unused variables



commit 96721ea6e77f5ff707918ae3700da648fb22f8bf
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 |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/.eslintrc.yaml b/.eslintrc.yaml
index ed460f1..23e3039 100644
--- a/.eslintrc.yaml
+++ b/.eslintrc.yaml
@@ -23,3 +23,7 @@ globals:
     ## Not defined in ESLint
     pkg: false
     _: false
+
+rules:
+    no-unused-vars:
+        - 0


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