From e1531c4b7272f96a84aff7db80ad6fa70b6373b4 Mon Sep 17 00:00:00 2001 From: Damian Tarnawski Date: Sun, 22 Dec 2024 20:57:06 +0100 Subject: [PATCH] Cleanup eslint config --- eslint.config.mjs | 23 ++++------------------- 1 file changed, 4 insertions(+), 19 deletions(-) diff --git a/eslint.config.mjs b/eslint.config.mjs index ba06685e..3bbd0ae4 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -106,23 +106,8 @@ export default [{ 'allowTernary' : true, }], '@eslint-comments/no-unused-disable': 'warn', - /* - code style | readability - */ - // to many voids - // "@typescript-eslint/explicit-function-return-type": [ - // "warn", - // { - // "allowExpressions": true, - // "allowTypedFunctionExpressions": true, - // "allowHigherOrderFunctions": true, - // "allowDirectConstAssertionInArrowFunctions": true, - // "allowConciseArrowFunctionExpressionsStartingWithVoid": true, - // "allowIIFEs": true - // } - // ], - /* - prevent unexpected behavior + /* + prevent unexpected behavior */ '@typescript-eslint/no-empty-object-type' : 'warn', '@typescript-eslint/no-unsafe-function-type' : 'warn', @@ -131,8 +116,8 @@ export default [{ 'no-fallthrough' : ['warn', {'allowEmptyCase': true}], // '@nothing-but/no-ignored-return': 'warn', // '@nothing-but/no-return-to-void': 'warn', - /* - tests + /* + tests */ '@no-only-tests/no-only-tests': 'warn', },