Преглед на файлове

comment

take over commit comment to lint config
sschmid преди 4 години
родител
ревизия
0a4f5e6438
променени са 1 файла, в които са добавени 4 реда и са изтрити 0 реда
  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
             }