Skip to content

Commit 4c1287f

Browse files
committed
explicit function return types rule was added to eslint
1 parent de98b84 commit 4c1287f

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.eslintrc.js

+3
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,7 @@ module.exports = {
77
parserOptions: {
88
project: true,
99
},
10+
rules: {
11+
"@typescript-eslint/explicit-function-return-type": "error"
12+
}
1013
};

apps/backend/.eslintrc.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ module.exports = {
1818
ignorePatterns: ['.eslintrc.js'],
1919
rules: {
2020
'@typescript-eslint/interface-name-prefix': 'off',
21-
'@typescript-eslint/explicit-function-return-type': 'off',
21+
'@typescript-eslint/explicit-function-return-type': 'error',
2222
'@typescript-eslint/explicit-module-boundary-types': 'off',
2323
'@typescript-eslint/no-explicit-any': 'off',
2424
},

0 commit comments

Comments
 (0)