From 1a2c7b5f55bdfb0aceaedbddbb6f95d0ffb199f3 Mon Sep 17 00:00:00 2001 From: Stan Runge Date: Mon, 30 Jun 2025 03:21:49 +0200 Subject: [PATCH] explicit funciton return types --- packages/web/eslint.config.js | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/packages/web/eslint.config.js b/packages/web/eslint.config.js index 62dbd03..df77625 100755 --- a/packages/web/eslint.config.js +++ b/packages/web/eslint.config.js @@ -21,12 +21,38 @@ export default [ }, { files: ['**/*.svelte'], + + rules: { + '@typescript-eslint/explicit-function-return-type': [ + 'error', + { + allowExpressions: false, + allowTypedFunctionExpressions: true + } + ] + }, + languageOptions: { parserOptions: { parser: ts.parser } } }, + { + files: ['**/*.ts'], + languageOptions: { + globals: globals.node + }, + rules: { + '@typescript-eslint/explicit-function-return-type': [ + 'error', + { + allowExpressions: false, + allowTypedFunctionExpressions: true + } + ] + } + }, { ignores: ['build/', '.svelte-kit/', 'dist/'] }