tslint配置

作者: 小程序前端超市 | 来源:发表于2019-04-28 10:29 被阅读2次

tslint官网:https://palantir.github.io/tslint/

常用配置

{
  "defaultSeverity": "warning",
  "extends": [
    "tslint:recommended"
  ],
  "linterOptions": {
    "exclude": [
      "node_modules/**"
    ]
  },
  "rules": {
    "no-console": false, // 关闭console告警
    "quotemark": [true, "single"],
    "indent": [true, "spaces", 2],
    "interface-name": false,
    "ordered-imports": false,
    "object-literal-sort-keys": false,
    "no-consecutive-blank-lines": false,
    "no-trailing-whitespace": true // 关闭trailing whitespace告警
  }
}

相关文章

网友评论

    本文标题:tslint配置

    本文链接:https://www.haomeiwen.com/subject/fkarnqtx.html