]> source.dussan.org Git - rspamd.git/commitdiff
[Test] Enable some ESLint rules
authorAlexander Moisseev <moiseev@mezonplus.ru>
Sat, 22 Sep 2018 07:41:32 +0000 (10:41 +0300)
committerAlexander Moisseev <moiseev@mezonplus.ru>
Sat, 22 Sep 2018 07:43:34 +0000 (10:43 +0300)
.eslintrc.json
interface/js/app/history.js
interface/js/app/symbols.js

index ccd26cc740d7d75d37c8b15f9414a4525180057e..6af989a1f52a0e82c8a5b6d33b20ffc048d97e8b 100644 (file)
@@ -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"
     }
index 68e66924ef0c5c08ceb8a3b1adcd8d4741ba901c..f82925b2656bb8f7fc5941837065012a8d8b40d7 100644 (file)
@@ -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),
index 327fb3bf2f46d039833def1dcc2ed6db73a4aa3a..866478b1bd9ff4f330c79b2a00db6c4917550df5 100644 (file)
@@ -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"}},