tslint.json 413 B

123456789101112
  1. {
  2. "rules": {
  3. "prefer-readonly": false
  4. },
  5. "meta": {
  6. "category": "maintainability",
  7. "description": "如果私有变量只在构造函数中被赋值,则必须使用 `readonly` 修饰符",
  8. "reason": "没必要限制\nRequires Type Info 的规则,无法在编辑器中显示错误,不方便修复",
  9. "ts-only": true,
  10. "requires-type-info": true
  11. }
  12. }