Как применить complete-docs или jsdo c к методу, который имеет параметры? - PullRequest
0 голосов
/ 29 апреля 2020

У меня есть настройка tslint, теперь я хочу применить complete-docs или jsdo c к тем методам, которые содержат параметры (аргумент). Я не нахожу никакого решения до сих пор. Любая помощь будет высоко ценится.

Мой конфиг tslint:

{
  "rules": {
    "no-duplicate-variable": true,
    "no-unused-variable": [true],
    "array-type": false,
    "arrow-parens": false,
    "deprecation": {
      "severity": "warn"
    },
    "import-blacklist": [true, "rxjs/Rx"],
    "interface-name": false,
    "max-classes-per-file": false,
    "max-line-length": [true, 100],
    "member-access": false,
    "member-ordering": [
      true,
      {
        "order": ["static-field", "instance-field", "static-method", "instance-method"]
      }
    ],
    "no-consecutive-blank-lines": [true, 2],
    "no-console": [true, "debug", "info", "time", "timeEnd", "trace"],
    "no-empty": false,
    "no-inferrable-types": [true, "ignore-params"],
    "no-non-null-assertion": true,
    "no-redundant-jsdoc": false,
    "no-switch-case-fall-through": true,
    "no-use-before-declare": true,
    "no-var-requires": false,
    "object-literal-key-quotes": [true, "as-needed"],
    "object-literal-sort-keys": false,
    "ordered-imports": false,
    "quotemark": [true, "single", "avoid-template"],
    "trailing-comma": false,
    "variable-name": {
      "options": ["ban-keywords", "check-format", "allow-pascal-case"]
    },
    "comment-format": [
      true,
      "check-upercase",
      {
        "ignore-words": ["TODO", "HACK"]
      }
    ],
    "completed-docs": [
      true,
      {
        "methods": {
          "privacies": ["public", "protected"]
        },
        "enums": true,
        "functions": true
      }
    ],
    "jsdoc-format": [true, "check-multiline-start"],
    "semicolon": [true, "always", "ignore-interfaces", "ignore-bound-class-methods"],
    "only-arrow-functions": [true, "allow-declarations", "allow-named-functions"],
    "prefer-template": [true, "allow-single-concat"],
    "one-variable-per-declaration": [true, "ignore-for-loop"]
  },
  "rulesDirectory": ["node_modules/tslint-eslint-rules/dist/rules"]
}
...