简中文档

ban-untagged-ignore

NOTE: this rule is part of the 推荐 rule set.
Enable full set in deno.json:
{
  "lint": {
    "rules": {
      "tags": ["推荐"]
    }
  }
}
Enable full set using the Deno CLI:
deno lint --rules-tags=推荐
This rule can be explictly included to or excluded from the rules present in the current tag by adding it to the include or exclude array in deno.json:
{
  "lint": {
    "rules": {
      "include": ["ban-untagged-ignore"],
      "exclude": ["ban-untagged-ignore"]
    }
  }
}

需要将 deno-lint-ignore 注解与一个或多个规则名称。

忽略所有规则可能会掩盖意外或未来的问题。因此,您需要明确指定要忽略的规则。

无效:

// deno-lint-ignore
export function duplicateArgumentsFn(a, b, a) {}

有效:

// deno-lint-ignore no-dupe-args
export function duplicateArgumentsFn(a, b, a) {}

你找到了你需要的东西吗?

编辑此页面
隐私政策