File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed
Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -42,6 +42,7 @@ export const typescriptConfig = async ({
4242 '@typescript-eslint/consistent-type-assertions' : 'error' ,
4343 '@typescript-eslint/consistent-type-definitions' : [ 'error' , 'type' ] ,
4444 '@typescript-eslint/dot-notation' : 'error' ,
45+ '@typescript-eslint/explicit-function-return-type' : typescript . explicitReturnTypes ? 'error' : 'off' ,
4546 '@typescript-eslint/no-array-constructor' : 'error' ,
4647 '@typescript-eslint/no-array-delete' : 'error' ,
4748 '@typescript-eslint/no-base-to-string' : 'error' ,
@@ -139,6 +140,7 @@ export const typescriptConfig = async ({
139140 {
140141 files : filesFactory ( testFiles , fileRoots ) ,
141142 rules : {
143+ '@typescript-eslint/explicit-function-return-type' : 'off' ,
142144 '@typescript-eslint/no-unsafe-argument' : 'off' ,
143145 '@typescript-eslint/no-unsafe-assignment' : 'off' ,
144146 '@typescript-eslint/no-unsafe-call' : 'off' ,
Original file line number Diff line number Diff line change @@ -40,6 +40,7 @@ export type Options = {
4040 } ;
4141 typescript ?: {
4242 enabled : boolean ;
43+ explicitReturnTypes ?: boolean ;
4344 project ?: string ;
4445 } ;
4546} ;
You can’t perform that action at this time.
0 commit comments