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
This commit is contained in:
Florian Müllner
2019-01-28 06:49:42 +01:00
parent 1d96f83362
commit 75503b5f3c
2 changed files with 11 additions and 1 deletions
+2 -1
View File
@@ -1,5 +1,6 @@
{
"extends": [
"./lint/eslintrc-gjs.json"
"./lint/eslintrc-gjs.json",
"./lint/eslintrc-shell.json"
]
}
+9
View File
@@ -0,0 +1,9 @@
{
"globals": {
"global": false,
"_": false,
"C_": false,
"N_": false,
"ngettext": false
}
}