tslint.json 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. {
  2. "rulesDirectory": ["node_modules/codelyzer"],
  3. "rules": {
  4. "arrow-return-shorthand": true,
  5. "callable-types": true,
  6. "class-name": true,
  7. "comment-format": [true, "check-space"],
  8. "curly": true,
  9. "eofline": true,
  10. "forin": true,
  11. "import-blacklist": [true, "rxjs/Rx"],
  12. "import-spacing": true,
  13. "indent": [true, "spaces"],
  14. "interface-over-type-literal": true,
  15. "label-position": true,
  16. "max-line-length": [true, 140],
  17. "member-access": false,
  18. "member-ordering": [
  19. true,
  20. {
  21. "order": ["static-field", "instance-field", "static-method", "instance-method"]
  22. }
  23. ],
  24. "no-arg": true,
  25. "no-bitwise": true,
  26. "no-console": [true, "debug", "info", "time", "timeEnd", "trace"],
  27. "no-construct": true,
  28. "no-debugger": true,
  29. "no-duplicate-super": true,
  30. "no-empty": false,
  31. "no-empty-interface": true,
  32. "no-eval": true,
  33. "no-inferrable-types": [true, "ignore-params"],
  34. "no-misused-new": true,
  35. "no-non-null-assertion": true,
  36. "no-shadowed-variable": true,
  37. "no-string-literal": false,
  38. "no-string-throw": true,
  39. "no-switch-case-fall-through": true,
  40. "no-trailing-whitespace": true,
  41. "no-unnecessary-initializer": true,
  42. "no-unused-expression": true,
  43. "no-use-before-declare": true,
  44. "no-var-keyword": true,
  45. "object-literal-sort-keys": false,
  46. "one-line": [true, "check-open-brace", "check-catch", "check-else", "check-whitespace"],
  47. "prefer-const": true,
  48. "quotemark": [true, "single"],
  49. "radix": true,
  50. "semicolon": [true, "always"],
  51. "triple-equals": [true, "allow-null-check"],
  52. "typedef-whitespace": [
  53. true,
  54. {
  55. "call-signature": "nospace",
  56. "index-signature": "nospace",
  57. "parameter": "nospace",
  58. "property-declaration": "nospace",
  59. "variable-declaration": "nospace"
  60. }
  61. ],
  62. "typeof-compare": true,
  63. "unified-signatures": true,
  64. "variable-name": false,
  65. "whitespace": [true, "check-branch", "check-decl", "check-operator", "check-separator", "check-type"],
  66. "directive-selector": [true, "attribute", "app", "camelCase"],
  67. "component-selector": [true, "element", "app", "kebab-case"],
  68. "use-input-property-decorator": true,
  69. "use-output-property-decorator": true,
  70. "use-host-property-decorator": true,
  71. "no-input-rename": true,
  72. "no-output-rename": true,
  73. "use-life-cycle-interface": true,
  74. "use-pipe-transform-interface": true,
  75. "component-class-suffix": true,
  76. "directive-class-suffix": true,
  77. "invoke-injectable": true
  78. }
  79. }