]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Clean up lint rules (#30721)
authorXhmikosR <xhmikosr@gmail.com>
Mon, 4 May 2020 16:32:09 +0000 (19:32 +0300)
committerGitHub <noreply@github.com>
Mon, 4 May 2020 16:32:09 +0000 (19:32 +0300)
* Remove unneeded rule suppression
* Format tests/unit/.eslintrc.json
* build/.eslintrc.json: add strict for consistency

build/.eslintrc.json
js/tests/unit/.eslintrc.json
site/.eslintrc.json

index 08169ca4cca8bf0b555a692d0384b4009e877c9d..679bd26f7ba26c1539c31daaec902400e091f3e1 100644 (file)
@@ -8,6 +8,7 @@
   },
   "extends": "../.eslintrc.json",
   "rules": {
-    "no-console": "off"
+    "no-console": "off",
+    "strict": "error"
   }
 }
index a8c1a6ae3427a6fd081d058ef4434e1930977b16..e7f8d5d2a9f76912f1094b8c0ba991d5b685f416 100644 (file)
@@ -5,7 +5,9 @@
   ],
   "overrides": [
     {
-      "files": ["**/*.spec.js"],
+      "files": [
+        "**/*.spec.js"
+      ],
       "env": {
         "jasmine": true
       }
index 690606863e7ff701ffa03b438042d81693f9a011..f7b6b4a7f30253cec79aa02fdfa7090ef114a4db 100644 (file)
@@ -33,7 +33,6 @@
       "never"
     ],
     "strict": "error",
-    "unicorn/consistent-function-scoping": "off",
     "unicorn/no-for-loop": "off",
     "unicorn/no-null": "off",
     "unicorn/prefer-dataset": "off",