From: XhmikosR Date: Sun, 1 Nov 2020 14:31:11 +0000 (+0200) Subject: ESLint: enable new-cap rule but ignore properties (#32036) X-Git-Tag: v5.0.0-alpha3~50 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e0b8fcdf899aa1c25fe2ddf050452f7451ed0cdd;p=thirdparty%2Fbootstrap.git ESLint: enable new-cap rule but ignore properties (#32036) --- diff --git a/.eslintrc.json b/.eslintrc.json index 59fe70f564..4c49fd0b1d 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -25,7 +25,12 @@ "error", "always-multiline" ], - "new-cap": "off", + "new-cap": [ + "error", + { + "properties": false + } + ], "no-console": "error", "object-curly-spacing": [ "error",