Prechádzať zdrojové kódy

comment

take over commit comment to lint config
sschmid 4 rokov pred
rodič
commit
0a4f5e6438
1 zmenil súbory, kde vykonal 4 pridanie a 0 odobranie
  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
             }