From: moisseev Date: Tue, 14 Nov 2023 09:57:46 +0000 (+0300) Subject: [Minor] Use modern ESLint globals definition X-Git-Tag: 3.8.0~70^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=refs%2Fpull%2F4700%2Fhead;p=rspamd.git [Minor] Use modern ESLint globals definition --- 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",