commit 4bc8131: [Minor] Use modern ESLint globals definition
moisseev
moiseev at mezonplus.ru
Tue Nov 14 14:56:05 UTC 2023
Author: moisseev
Date: 2023-11-14 12:57:46 +0300
URL: https://github.com/rspamd/rspamd/commit/4bc813111e219f8473c9b97e096e5936534179dd (refs/pull/4700/head)
[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",
More information about the Commits
mailing list