Forbid localStorage access in eslint (#36461)
Followup to https://github.com/go-gitea/gitea/commit/59f812bc1cc52f15d66d1b233f11e43339c09cec, enforce using our localStorage wrapper in eslint. Also did a few tweaks in the eslint config, like removing the incomplete list of globals, this is a non-issue with typescript. --------- Signed-off-by: silverwind <me@silverwind.io>
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
/* eslint-disable no-restricted-globals */
|
||||
// Some people deploy Gitea under a subpath, so it needs prefix to avoid local storage key conflicts.
|
||||
// And these keys are for user settings only, it also needs a specific prefix,
|
||||
// in case in the future there are other uses of local storage, and/or we need to clear some keys when the quota is exceeded.
|
||||
|
||||
Reference in New Issue
Block a user