Explorar o código

comment

take over commit comment to lint config
sschmid %!s(int64=4) %!d(string=hai) anos
pai
achega
0a4f5e6438
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      .eslintrc.js

+ 4 - 0
.eslintrc.js

@@ -94,6 +94,10 @@ module.exports = {
         "@typescript-eslint/typedef": [
             "error",
             {
+              // we could add this requirement for arrow parameters too,
+              //   but we have a lot of arrow parameters without types already (~25),
+              //   and a lot of them look ugly and unnecessarily explicit with types,
+              //   the type info is usually obvious there.
               "arrowParameter": false,
               "variableDeclaration": true
             }