From 9eccfacce85e396a384e2c8699389664872a9ba9 Mon Sep 17 00:00:00 2001 From: Pieter Wigboldus Date: Wed, 27 Oct 2021 10:57:52 +0200 Subject: [PATCH] More rules --- eslintrc.json | 32 ++++++++++++++++++++++++++------ 1 file changed, 26 insertions(+), 6 deletions(-) diff --git a/eslintrc.json b/eslintrc.json index 9b4f3ca..2a597c5 100644 --- a/eslintrc.json +++ b/eslintrc.json @@ -84,12 +84,6 @@ "allowElseIf": false } ], - "prefer-const": [ - "error", - { - "destructuring": "all" - } - ], "arrow-body-style": [ "error", "as-needed" @@ -153,6 +147,32 @@ ], "no-await-in-loop": "error", "no-inner-declarations": "error", + "no-var": "error", + "prefer-arrow-callback": [ + "error", + { + "allowNamedFunctions": false, + "allowUnboundThis": true + } + ], + "prefer-destructuring": [ + "error", + { + "VariableDeclarator": { + "array": false, + "object": true + }, + "AssignmentExpression": { + "array": true, + "object": false + } + }, + { + "enforceForRenamedProperties": false + } + ], + "prefer-rest-params": "error", + "prefer-spread": "error", "valid-jsdoc": [ "error", {