Sfoglia il codice sorgente

Allow arrow functions no return type

Andrew Swistak 6 anni fa
parent
commit
cbbb54f9ff
1 ha cambiato i file con 7 aggiunte e 0 eliminazioni
  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'],