mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-17 23:24:51 +00:00
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 for all sources in the gnome-shell context. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/609
This commit is contained in:
parent
3731be9947
commit
4c0bd88a2c
2 changed files with 17 additions and 1 deletions
|
|
@ -1,5 +1,6 @@
|
|||
{
|
||||
"extends": [
|
||||
"./lint/eslintrc-gjs.json"
|
||||
"./lint/eslintrc-gjs.json",
|
||||
"./lint/eslintrc-shell.json"
|
||||
]
|
||||
}
|
||||
|
|
|
|||
15
lint/eslintrc-shell.json
Normal file
15
lint/eslintrc-shell.json
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
{
|
||||
"overrides": [
|
||||
{
|
||||
"files": "js/**",
|
||||
"excludedFiles": ["js/extensionPrefs/*", "js/portalHelper/*"],
|
||||
"globals": {
|
||||
"global": false,
|
||||
"_": false,
|
||||
"C_": false,
|
||||
"N_": false,
|
||||
"ngettext": false
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue