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

comment

take over commit comment to lint config
sschmid 4 лет назад
Родитель
Сommit
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
             }