Skip to content

Commit 5e84926

Browse files
committed
🐳 chore: Update ESLint config
1 parent 91a4fb4 commit 5e84926

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.eslintrc.cjs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,15 @@ const config = {
5050
"newlines-between": "always",
5151
},
5252
],
53+
"no-restricted-syntax": [
54+
"error",
55+
{
56+
selector: "CallExpression[callee.property.name='push'] > SpreadElement.arguments",
57+
message: "Do not use spread arguments in Array#push",
58+
},
59+
],
5360
"no-undef": "off",
61+
"object-shorthand": "error",
5462
"sonarjs/cognitive-complexity": "off",
5563
"sonarjs/no-duplicate-string": "off",
5664
"sort-destructure-keys/sort-destructure-keys": "error",

0 commit comments

Comments
 (0)