Skip to content

Commit 7e8bf7a

Browse files
committed
Fix
1 parent e017fe9 commit 7e8bf7a

File tree

1 file changed

+5
-18
lines changed

1 file changed

+5
-18
lines changed

eslint.config.mjs

Lines changed: 5 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -25,17 +25,16 @@ const config = createConfig([
2525
'error',
2626
{
2727
require: {
28-
ArrowFunctionExpression: true,
2928
ClassDeclaration: true,
3029
FunctionDeclaration: true,
31-
FunctionExpression: true,
3230
MethodDefinition: true,
3331
},
3432
contexts: [
35-
'TSInterfaceDeclaration',
33+
':not(TSModuleBlock) > TSInterfaceDeclaration',
3634
'TSTypeAliasDeclaration',
3735
'TSEnumDeclaration',
38-
// 'TSPropertySignature',
36+
':not(Property, NewExpression, CallExpression) > ArrowFunctionExpression',
37+
':not(Property, NewExpression, CallExpression) > FunctionExpression',
3938
],
4039
},
4140
],
@@ -50,22 +49,10 @@ const config = createConfig([
5049
files: ['**/*.ts'],
5150
extends: typescript,
5251
rules: {
53-
'jsdoc/require-jsdoc': [
52+
'@typescript-eslint/explicit-function-return-type': [
5453
'error',
5554
{
56-
require: {
57-
ArrowFunctionExpression: true,
58-
ClassDeclaration: true,
59-
FunctionDeclaration: true,
60-
FunctionExpression: true,
61-
MethodDefinition: true,
62-
},
63-
contexts: [
64-
'TSInterfaceDeclaration',
65-
'TSTypeAliasDeclaration',
66-
'TSEnumDeclaration',
67-
// 'TSPropertySignature',
68-
],
55+
allowExpressions: true,
6956
},
7057
],
7158
},

0 commit comments

Comments
 (0)