Refine eslint configuration
authorJérôme Benoit <jerome.benoit@sap.com>
Sun, 12 Sep 2021 12:06:49 +0000 (14:06 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Sun, 12 Sep 2021 12:06:49 +0000 (14:06 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
.eslintrc

index 96ad1d130576553ee12baf3614993f850fb908e5..2153335c5ebfd5164e4f1b88eded5fc72bd0ff11 100644 (file)
--- a/.eslintrc
+++ b/.eslintrc
       2,
       {
         "SwitchCase": 1,
+        "CallExpression": {
+          "arguments": 1
+        },
         "FunctionDeclaration": {
-          "parameters": 2
+          "parameters": 2,
+          "body": 1
         },
         "FunctionExpression": {
-          "parameters": 2
+          "parameters": 2,
+          "body": 1
         }
       }
     ],
       ],
       "extends": "plugin:node/recommended",
       "rules": {
-        "node/shebang" : "off",
+        "node/shebang": "off",
         "@typescript-eslint/no-unused-vars": "off",
         "@typescript-eslint/no-var-requires": "off"
       }