From 4bc813111e219f8473c9b97e096e5936534179dd Mon Sep 17 00:00:00 2001 From: moisseev Date: Tue, 14 Nov 2023 12:57:46 +0300 Subject: [PATCH] [Minor] Use modern ESLint globals definition --- interface/js/app/graph.js | 2 +- interface/js/app/history.js | 2 +- interface/js/app/rspamd.js | 2 +- interface/js/app/stats.js | 2 +- interface/js/app/symbols.js | 2 +- interface/js/main.js | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/interface/js/app/graph.js b/interface/js/app/graph.js index 3e4983a71..16fb338a2 100644 --- a/interface/js/app/graph.js +++ b/interface/js/app/graph.js @@ -23,7 +23,7 @@ THE SOFTWARE. */ -/* global d3:false, FooTable:false */ +/* global d3, FooTable */ define(["jquery", "d3evolution", "d3pie", "footable"], function ($, D3Evolution, D3Pie) { diff --git a/interface/js/app/history.js b/interface/js/app/history.js index a00d45eee..3770f9457 100644 --- a/interface/js/app/history.js +++ b/interface/js/app/history.js @@ -22,7 +22,7 @@ THE SOFTWARE. */ -/* global d3:false FooTable:false */ +/* global d3, FooTable */ define(["jquery", "footable"], function ($) { diff --git a/interface/js/app/rspamd.js b/interface/js/app/rspamd.js index eca4a7dfe..634dfcd1d 100644 --- a/interface/js/app/rspamd.js +++ b/interface/js/app/rspamd.js @@ -23,7 +23,7 @@ THE SOFTWARE. */ -/* global jQuery:false, FooTable:false, Visibility:false */ +/* global jQuery, FooTable, Visibility */ define(["jquery", "visibility", "nprogress", "stickytabs", "app/stats", "app/graph", "app/config", "app/symbols", "app/history", "app/upload", "app/selectors"], diff --git a/interface/js/app/stats.js b/interface/js/app/stats.js index a00b99b62..d023f955e 100644 --- a/interface/js/app/stats.js +++ b/interface/js/app/stats.js @@ -22,7 +22,7 @@ THE SOFTWARE. */ -/* global d3:false */ +/* global d3 */ define(["jquery", "d3pie"], function ($, D3Pie) { diff --git a/interface/js/app/symbols.js b/interface/js/app/symbols.js index 5f6d7903b..ed9966b34 100644 --- a/interface/js/app/symbols.js +++ b/interface/js/app/symbols.js @@ -22,7 +22,7 @@ THE SOFTWARE. */ -/* global FooTable:false */ +/* global FooTable */ define(["jquery", "footable"], function ($) { diff --git a/interface/js/main.js b/interface/js/main.js index 4182bb2bc..3b0b8de15 100644 --- a/interface/js/main.js +++ b/interface/js/main.js @@ -1,4 +1,4 @@ -/* global d3:true, require:false, requirejs:false */ // eslint-disable-line no-unused-vars +/* global d3:writable, require, requirejs */ // eslint-disable-line no-unused-vars requirejs.config({ baseUrl: "js/lib", -- 2.39.5