From 75503b5f3c8bc1a4f4ee7dd99d38f2423bca3c4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Sun, 27 Jan 2019 01:15:31 +0100 Subject: [PATCH] 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. https://gitlab.gnome.org/GNOME/gnome-shell-extensions/merge_requests/50 --- .eslintrc.json | 3 ++- lint/eslintrc-shell.json | 9 +++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 lint/eslintrc-shell.json diff --git a/.eslintrc.json b/.eslintrc.json index 255b0f2f..30afb592 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 00000000..f0290fed --- /dev/null +++ b/lint/eslintrc-shell.json @@ -0,0 +1,9 @@ +{ + "globals": { + "global": false, + "_": false, + "C_": false, + "N_": false, + "ngettext": false + } +}