From 3063d74b86f9adb20a689c753d5698391c2a2044 Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Sun, 1 Nov 2020 16:31:11 +0200 Subject: [PATCH] ESLint: enable new-cap rule but ignore properties (#32036) --- .eslintrc.json | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.eslintrc.json b/.eslintrc.json index ee3c677854e9..9e6b15d02735 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",