From 5e849268eebeeb33e0d901ebd858adddcb937745 Mon Sep 17 00:00:00 2001 From: Snowflyt Date: Tue, 12 Nov 2024 09:02:09 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=B3=20chore:=20Update=20ESLint=20confi?= =?UTF-8?q?g?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .eslintrc.cjs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.eslintrc.cjs b/.eslintrc.cjs index 753f63e..31ea914 100644 --- a/.eslintrc.cjs +++ b/.eslintrc.cjs @@ -50,7 +50,15 @@ const config = { "newlines-between": "always", }, ], + "no-restricted-syntax": [ + "error", + { + selector: "CallExpression[callee.property.name='push'] > SpreadElement.arguments", + message: "Do not use spread arguments in Array#push", + }, + ], "no-undef": "off", + "object-shorthand": "error", "sonarjs/cognitive-complexity": "off", "sonarjs/no-duplicate-string": "off", "sort-destructure-keys/sort-destructure-keys": "error",