]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
ESLint: enable new-cap rule but ignore properties (#32036)
authorXhmikosR <xhmikosr@gmail.com>
Sun, 1 Nov 2020 14:31:11 +0000 (16:31 +0200)
committerXhmikosR <xhmikosr@gmail.com>
Thu, 5 Nov 2020 09:22:05 +0000 (11:22 +0200)
.eslintrc.json

index ee3c677854e9fa881163858e8649723a36ca9d15..9e6b15d02735f65ba21f03f41ddf80d92db78401 100644 (file)
       "warn",
       5
     ],
-    "new-cap": "off",
+    "new-cap": [
+      "error",
+      {
+        "properties": false
+      }
+    ],
     "no-console": "error",
     "no-mixed-operators": "off",
     "no-negated-condition": "off",