Skip to content

Commit 3333206

Browse files
authored
Fix config for @typescript-eslint/explicit-function-return-type (#389)
1 parent 0cf2d91 commit 3333206

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

index.js

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,6 @@ const config = {
1313
'plugin:sonarjs/recommended',
1414
'plugin:@eslint-community/eslint-comments/recommended'
1515
],
16-
rules: {
17-
// see https://typescript-eslint.io/rules/explicit-function-return-type/#configuring-in-a-mixed-jsts-codebase
18-
// see https://github.com/mightyiam/eslint-config-love/issues/1525
19-
'@typescript-eslint/explicit-function-return-type': 'off'
20-
},
2116
overrides: [
2217
// For JavaScript
2318
{
@@ -29,7 +24,12 @@ const config = {
2924
],
3025
extends: [
3126
'plugin:jsdoc/recommended'
32-
]
27+
],
28+
rules: {
29+
// see https://typescript-eslint.io/rules/explicit-function-return-type/#configuring-in-a-mixed-jsts-codebase
30+
// see https://github.com/mightyiam/eslint-config-love/issues/1525
31+
'@typescript-eslint/explicit-function-return-type': 'off'
32+
}
3333
},
3434
// For TypeScript
3535
{
@@ -43,10 +43,7 @@ const config = {
4343
'tsdoc'
4444
],
4545
rules: {
46-
'tsdoc/syntax': 'warn',
47-
// see https://typescript-eslint.io/rules/explicit-function-return-type/#configuring-in-a-mixed-jsts-codebase
48-
// see https://github.com/mightyiam/eslint-config-love/issues/1525
49-
'@typescript-eslint/explicit-function-return-type': 'error'
46+
'tsdoc/syntax': 'warn'
5047
}
5148
}
5249
]

0 commit comments

Comments
 (0)