From 923e0576bf7195238ba20da87b4ce9cf30eda10c Mon Sep 17 00:00:00 2001 From: Matthias Konitzny <konitzny@ibr.cs.tu-bs.de> Date: Tue, 16 Nov 2021 10:56:51 +0100 Subject: [PATCH] Suppressed some eslint-errors on ks_global. --- config.js | 2 ++ datasets/datasets.js | 15 +++++++++------ 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/config.js b/config.js index 1a7584a..6ee5b97 100644 --- a/config.js +++ b/config.js @@ -1,3 +1,5 @@ +/*global ks_global*/ + export const COLOR_PALETTE = [ "rgb(104, 169, 77)", "rgb(102, 75, 154)", diff --git a/datasets/datasets.js b/datasets/datasets.js index 3ce3208..1e8c589 100644 --- a/datasets/datasets.js +++ b/datasets/datasets.js @@ -1,4 +1,5 @@ -import { PLUGIN_PATH } from "../config"; +/*global ks_global*/ + import jQuery from "jquery"; /** @@ -55,9 +56,11 @@ export function listAllSpaces() { action: "list_spaces", }; - return jQuery.ajax({ - type: "POST", - url: ks_global.ajax_url, - data: payload, - }).then((data) => JSON.parse(data)["spaces"]); + return jQuery + .ajax({ + type: "POST", + url: ks_global.ajax_url, + data: payload, + }) + .then((data) => JSON.parse(data)["spaces"]); } -- GitLab