summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.eslintrc.json3
-rw-r--r--interface/js/app/history.js2
-rw-r--r--interface/js/app/symbols.js4
3 files changed, 6 insertions, 3 deletions
diff --git a/.eslintrc.json b/.eslintrc.json
index ccd26cc74..6af989a1f 100644
--- a/.eslintrc.json
+++ b/.eslintrc.json
@@ -57,7 +57,6 @@
// Temporarily disabled rules
"array-element-newline": "off",
- "consistent-this": "off",
"func-style": "off",
"function-paren-newline": "off",
"line-comment-position": "off",
@@ -66,8 +65,6 @@
"max-lines-per-function": "off",
"no-inline-comments": "off",
"no-invalid-this": "off",
- "no-underscore-dangle": "off",
- "one-var-declaration-per-line": "off",
"sort-keys": "off",
"sort-vars": "off"
}
diff --git a/interface/js/app/history.js b/interface/js/app/history.js
index 68e66924e..f82925b26 100644
--- a/interface/js/app/history.js
+++ b/interface/js/app/history.js
@@ -511,6 +511,7 @@ define(["jquery", "footable", "humanize"],
}
function initHistoryTable(rspamd, tables, data, items) {
+ /* eslint-disable consistent-this, no-underscore-dangle, one-var-declaration-per-line */
FooTable.actionFilter = FooTable.Filtering.extend({
construct: function (instance) {
this._super(instance);
@@ -568,6 +569,7 @@ define(["jquery", "footable", "humanize"],
}
}
});
+ /* eslint-enable consistent-this, no-underscore-dangle, one-var-declaration-per-line */
tables.history = FooTable.init("#historyTable", {
columns: get_history_columns(data),
diff --git a/interface/js/app/symbols.js b/interface/js/app/symbols.js
index 327fb3bf2..866478b1b 100644
--- a/interface/js/app/symbols.js
+++ b/interface/js/app/symbols.js
@@ -148,6 +148,8 @@ define(["jquery", "footable"],
success: function (json) {
var data = json[0].data;
var items = process_symbols_data(data);
+
+ /* eslint-disable consistent-this, no-underscore-dangle, one-var-declaration-per-line */
FooTable.groupFilter = FooTable.Filtering.extend({
construct: function (instance) {
this._super(instance);
@@ -196,6 +198,8 @@ define(["jquery", "footable"],
}
}
});
+ /* eslint-enable consistent-this, no-underscore-dangle, one-var-declaration-per-line */
+
tables.symbols = FooTable.init("#symbolsTable", {
columns: [
{sorted:true, direction:"ASC", name:"group", title:"Group", style:{"font-size":"11px"}},