]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Move a few ESLint rules where they are needed.
authorXhmikosR <xhmikosr@gmail.com>
Thu, 26 Aug 2021 16:33:26 +0000 (19:33 +0300)
committerXhmikosR <xhmikosr@gmail.com>
Mon, 30 Aug 2021 12:51:44 +0000 (15:51 +0300)
.eslintrc.json
js/tests/unit/.eslintrc.json

index 0174b84d02c63d48f02e2fb3915ec8f4331a3506..9bd404dfa31a99ed325f502aa1c0f5d829469ea1 100644 (file)
@@ -49,7 +49,6 @@
       "error",
       "never"
     ],
-    "unicorn/consistent-function-scoping": "off",
     "unicorn/explicit-length-check": "off",
     "unicorn/no-array-callback-reference": "off",
     "unicorn/no-array-for-each": "off",
@@ -57,7 +56,6 @@
     "unicorn/no-for-loop": "off",
     "unicorn/no-null": "off",
     "unicorn/no-unused-properties": "error",
-    "unicorn/no-useless-undefined": "off",
     "unicorn/numeric-separators-style": "off",
     "unicorn/prefer-array-flat": "off",
     "unicorn/prefer-dom-node-dataset": "off",
index adde3105df838a131c5ea63dc7189a72ac22931a..6362a1acff4016a9ffec1020bc97e67c4c8ad8f0 100644 (file)
@@ -4,5 +4,10 @@
   ],
   "env": {
     "jasmine": true
+  },
+  "rules": {
+    "unicorn/consistent-function-scoping": "off",
+    "unicorn/no-useless-undefined": "off",
+    "unicorn/prefer-add-event-listener": "off"
   }
 }