Skip to content

Commit 7e74e79

Browse files
author
Rebecca Stevens
committed
fix(configs): explicit-function-return-type rule is no longer so harsh.
1 parent 94e494e commit 7e74e79

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/configs/external-recommended.ts

+8-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,14 @@ const config = {
88
{
99
files: ["*.ts", "*.tsx"],
1010
rules: {
11-
"@typescript-eslint/explicit-function-return-type": "warn"
11+
"@typescript-eslint/explicit-function-return-type": [
12+
"error",
13+
{
14+
allowExpressions: true,
15+
allowTypedFunctionExpressions: true,
16+
allowHigherOrderFunctions: true
17+
}
18+
]
1219
}
1320
}
1421
]

0 commit comments

Comments
 (0)