Skip to content

Commit

Permalink
Fix config for @typescript-eslint/explicit-function-return-type
Browse files Browse the repository at this point in the history
  • Loading branch information
munierujp committed Jun 1, 2024
1 parent 0cf2d91 commit b44bca7
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,6 @@ const config = {
'plugin:sonarjs/recommended',
'plugin:@eslint-community/eslint-comments/recommended'
],
rules: {
// see https://typescript-eslint.io/rules/explicit-function-return-type/#configuring-in-a-mixed-jsts-codebase
// see https://github.com/mightyiam/eslint-config-love/issues/1525
'@typescript-eslint/explicit-function-return-type': 'off'
},
overrides: [
// For JavaScript
{
Expand All @@ -29,7 +24,12 @@ const config = {
],
extends: [
'plugin:jsdoc/recommended'
]
],
rules: {
// see https://typescript-eslint.io/rules/explicit-function-return-type/#configuring-in-a-mixed-jsts-codebase
// see https://github.com/mightyiam/eslint-config-love/issues/1525
'@typescript-eslint/explicit-function-return-type': 'off'
}
},
// For TypeScript
{
Expand All @@ -43,10 +43,7 @@ const config = {
'tsdoc'
],
rules: {
'tsdoc/syntax': 'warn',
// see https://typescript-eslint.io/rules/explicit-function-return-type/#configuring-in-a-mixed-jsts-codebase
// see https://github.com/mightyiam/eslint-config-love/issues/1525
'@typescript-eslint/explicit-function-return-type': 'error'
'tsdoc/syntax': 'warn'
}
}
]
Expand Down

0 comments on commit b44bca7

Please sign in to comment.