[gnome-shell-extensions/wip/fmuellner/lint-ci: 2/17] lint: Tweak the whitelist of globals



commit 331ad98012abaf99712faef15372c5614c5827b4
Author: Florian Müllner <fmuellner gnome org>
Date:   Sun Jan 27 01:15:31 2019 +0100

    lint: Tweak the whitelist of globals
    
    gjs doesn't include any gettext wrappers, and obviously can't know
    about the shell's global object, so include those in the list of
    globals.

 .eslintrc.json           | 3 ++-
 lint/eslintrc-shell.json | 9 +++++++++
 2 files changed, 11 insertions(+), 1 deletion(-)
---
diff --git a/.eslintrc.json b/.eslintrc.json
index 255b0f2..30afb59 100644
--- a/.eslintrc.json
+++ b/.eslintrc.json
@@ -1,5 +1,6 @@
 {
     "extends": [
-        "./lint/eslintrc-gjs.json"
+        "./lint/eslintrc-gjs.json",
+        "./lint/eslintrc-shell.json"
     ]
 }
diff --git a/lint/eslintrc-shell.json b/lint/eslintrc-shell.json
new file mode 100644
index 0000000..f0290fe
--- /dev/null
+++ b/lint/eslintrc-shell.json
@@ -0,0 +1,9 @@
+{
+    "globals": {
+        "global": false,
+        "_": false,
+        "C_": false,
+        "N_": false,
+        "ngettext": false
+    }
+}


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