From adfacf16b1e8d1567776e12526bdb9daa465ef2e Mon Sep 17 00:00:00 2001 From: Sam Mayer Date: Thu, 31 Oct 2024 11:04:12 -0500 Subject: [PATCH] Encourage function return types --- .eslintrc.json | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.eslintrc.json b/.eslintrc.json index 038d2762a..deab28d71 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -21,6 +21,15 @@ "max-statements": ["warn", { "max": 20 }, { "ignoreTopLevelFunctions": true }], "no-invalid-this": "warn" }, + "overrides": [ + { + "files": ["*.ts"], + "excludedFiles": "*.test.ts", + "rules": { + "@typescript-eslint/explicit-function-return-type": "warn" + } + } + ], "plugins": ["@typescript-eslint"], "ignorePatterns": [ "src/templates",