tslint 规则个人习惯,陆续补充

{
  "defaultSeverity": "warning",
  "extends": [
    "tslint:recommended"
  ],
  "linterOptions": {
    "exclude": [
      "node_modules/**"
    ]
  },
  "rules": {
    "quotemark": [true, "single"],
    "semicolon": [false, "always"],
    "indent": [true, "spaces", 2],
    "interface-name": false,
    "ordered-imports": false,
    "object-literal-sort-keys": false,
    "no-consecutive-blank-lines": false,
    "space-before-function-paren": ["error", {
      "anonymous": "always",
      "named": "always",
      "asyncArrow": "always"
    }],
    "max-line-length": [ false ],
    "no-bitwise": false,
    "no-conditional-assignmen": false,
    "no-console": false,
    "no-construct": false,
    "no-debugger": false
  }
}

 

转载于:https://my.oschina.net/lpcysz/blog/3075599

你可能感兴趣的:(tslint 规则个人习惯,陆续补充)