[gnome-maps/wip/mattiasb/eslint-2.0-2: 32/40] Lint: Allow all GJS default globals



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

    Lint: Allow all GJS default globals
    
    The ESLint recommended rules will complain about access to global
    variables that it doesn't know about. This is good, but ESLint
    doesn't yet know about the GJS environment.
    
    There is a PR (https://github.com/sindresorhus/globals/pull/73) for the
    globals project on Github (which ESLint uses) to add the GJS environment
    and all its global variables.
    
    Until the above mentioned PR is merged, explicitly allow all default
    GJS global variables.

 .eslintrc.yaml |   16 ++++++++++++++++
 1 files changed, 16 insertions(+), 0 deletions(-)
---
diff --git a/.eslintrc.yaml b/.eslintrc.yaml
index c880a82..d84593f 100644
--- a/.eslintrc.yaml
+++ b/.eslintrc.yaml
@@ -3,3 +3,19 @@ root: true
 
 env:
     es6: true
+
+globals:
+    # Needed until we produce our own eslint-gjs plugin.
+    ARGV: false
+    Debugger: false
+    GjsFileImporter: false
+    InternalError: false
+    Iterator: false
+    StopIteration: false
+    imports: false
+    log: false
+    logError: false
+    print: false
+    printerr: false
+    uneval: false
+    window: false


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