diff --git a/eslint.config.js b/eslint.config.js index 99d0171..3146d76 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -25,12 +25,29 @@ export default tseslint.config( rules: { 'prettier/prettier': 'warn', '@typescript-eslint/ban-ts-comment': ['error', { 'ts-ignore': 'allow-with-description' }], - '@typescript-eslint/explicit-function-return-type': 'error', + '@typescript-eslint/explicit-function-return-type': [ + 'error', + { + allowExpressions: true, + allowTypedFunctionExpressions: true, + allowHigherOrderFunctions: true, + allowIIFEs: true + } + ], '@typescript-eslint/explicit-module-boundary-types': 'off', '@typescript-eslint/no-empty-function': ['error', { allow: ['arrowFunctions'] }], + '@typescript-eslint/no-empty-object-type': ['error', { allowInterfaces: 'always' }], '@typescript-eslint/no-explicit-any': 'error', '@typescript-eslint/no-non-null-assertion': 'off', - '@typescript-eslint/no-var-requires': 'off' + '@typescript-eslint/no-require-imports': 'error', + '@typescript-eslint/no-unused-expressions': [ + 'error', + { + allowShortCircuit: true, + allowTaggedTemplates: true, + allowTernary: true + } + ] } }, {