summaryrefslogtreecommitdiff
path: root/ext/js/core
diff options
context:
space:
mode:
Diffstat (limited to 'ext/js/core')
-rw-r--r--ext/js/core/json.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/js/core/json.js b/ext/js/core/json.js
index a031f84e..0ebe2887 100644
--- a/ext/js/core/json.js
+++ b/ext/js/core/json.js
@@ -25,6 +25,7 @@
* @returns {T}
*/
export function parseJson(value) {
+ // eslint-disable-next-line no-restricted-syntax
return JSON.parse(value);
}
@@ -36,5 +37,6 @@ export function parseJson(value) {
* @returns {Promise<T>}
*/
export async function readResponseJson(response) {
+ // eslint-disable-next-line no-restricted-syntax
return await response.json();
}