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: v4.6.0~92 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3063d74b86f9adb20a689c753d5698391c2a2044;p=thirdparty%2Fbootstrap.git ESLint: enable new-cap rule but ignore properties (#32036) --- diff --git a/.eslintrc.json b/.eslintrc.json index ee3c677854..9e6b15d027 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -21,7 +21,12 @@ "warn", 5 ], - "new-cap": "off", + "new-cap": [ + "error", + { + "properties": false + } + ], "no-console": "error", "no-mixed-operators": "off", "no-negated-condition": "off",