浏览代码

Allow arrow functions no return type

Andrew Swistak 6 年之前
父节点
当前提交
cbbb54f9ff
共有 1 个文件被更改,包括 7 次插入0 次删除
  1. 7 0
      .eslintrc.js

+ 7 - 0
.eslintrc.js

@@ -39,6 +39,13 @@ module.exports = {
   rules: {
     // TypeScript Rules
     '@typescript-eslint/no-explicit-any': 0,
+    '@typescript-eslint/explicit-function-return-type': [
+      1,
+      {
+        allowExpressions: true,
+        allowTypedFunctionExpressions: true,
+      },
+    ],
 
     // JavaScript Rules
     'arrow-body-style': ['warn', 'as-needed'],