]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Update site/.eslintrc.json (#37485)
authorXhmikosR <xhmikosr@gmail.com>
Sat, 12 Nov 2022 08:46:37 +0000 (10:46 +0200)
committerGitHub <noreply@github.com>
Sat, 12 Nov 2022 08:46:37 +0000 (10:46 +0200)
site/.eslintrc.json

index 1158ba36a7281cd0be201f4adedf1026c6899740..0a16f82f9ac7ef22dc81c3235d95decfa6573349 100644 (file)
@@ -1,15 +1,28 @@
 {
+  "extends": "../.eslintrc.json",
   "env": {
     "browser": true,
     "node": false
   },
+  "parserOptions": {
+    "sourceType": "script"
+  },
   "plugins": [
     "markdown"
   ],
+  "rules": {
+    "no-new": "off",
+    "strict": "error",
+    "unicorn/no-array-for-each": "off",
+    "unicorn/numeric-separators-style": "off",
+    "unicorn/prefer-node-protocol": "off"
+  },
   "overrides": [
     {
       // 2. Enable the Markdown processor for all .md files.
-      "files": ["./**/*.md"],
+      "files": [
+        "./**/*.md"
+      ],
       "processor": "markdown/markdown"
     },
     {
       },
       "rules": {
         "no-array-for-each": "off",
+        "no-labels": "off",
+        "no-redeclare": "off",
         "no-undef": "off",
-        "no-unused-vars": "off",
-        "unicorn/no-array-for-each": "off",
-        "unicorn/numeric-separators-style": "off",
         "no-unused-expressions": "off",
         "no-unused-labels": "off",
-        "no-labels": "off",
-        "no-redeclare": "off"
+        "no-unused-vars": "off",
+        "unicorn/no-array-for-each": "off",
+        "unicorn/numeric-separators-style": "off"
       }
     }
-  ],
-  "parserOptions": {
-    "sourceType": "script"
-  },
-  "extends": "../.eslintrc.json",
-  "rules": {
-    "no-new": "off",
-    "prefer-template": "error",
-    "strict": "error",
-    "unicorn/no-array-for-each": "off",
-    "unicorn/numeric-separators-style": "off",
-    "unicorn/prefer-node-protocol": "off"
-  }
+  ]
 }