Просмотр исходного кода

Allow arrow functions no return type

Andrew Swistak 6 лет назад
Родитель
Сommit
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'],