From e0b8fcdf899aa1c25fe2ddf050452f7451ed0cdd Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Sun, 1 Nov 2020 16:31:11 +0200 Subject: ESLint: enable new-cap rule but ignore properties (#32036) --- .eslintrc.json | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to '.eslintrc.json') 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", -- cgit v1.2.3