tslint.json 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. {
  2. "extends": "tslint:recommended",
  3. "rules": {
  4. "array-type": false,
  5. "arrow-parens": false,
  6. "deprecation": {
  7. "severity": "warning"
  8. },
  9. "component-class-suffix": true,
  10. "contextual-lifecycle": true,
  11. "directive-class-suffix": true,
  12. "directive-selector": [
  13. true,
  14. "attribute",
  15. "app",
  16. "camelCase"
  17. ],
  18. "component-selector": [
  19. true,
  20. "element",
  21. "app",
  22. "kebab-case"
  23. ],
  24. "import-blacklist": [
  25. true,
  26. "rxjs/Rx"
  27. ],
  28. "interface-name": false,
  29. "max-classes-per-file": false,
  30. "max-line-length": [
  31. true,
  32. 140
  33. ],
  34. "member-access": false,
  35. "member-ordering": [
  36. true,
  37. {
  38. "order": [
  39. "static-field",
  40. "instance-field",
  41. "static-method",
  42. "instance-method"
  43. ]
  44. }
  45. ],
  46. "no-consecutive-blank-lines": false,
  47. "no-console": [
  48. true,
  49. "debug",
  50. "info",
  51. "time",
  52. "timeEnd",
  53. "trace"
  54. ],
  55. "no-empty": false,
  56. "no-inferrable-types": [
  57. true,
  58. "ignore-params"
  59. ],
  60. "no-non-null-assertion": true,
  61. "no-redundant-jsdoc": true,
  62. "no-switch-case-fall-through": true,
  63. "no-use-before-declare": true,
  64. "no-var-requires": false,
  65. "object-literal-key-quotes": [
  66. true,
  67. "as-needed"
  68. ],
  69. "object-literal-sort-keys": false,
  70. "ordered-imports": false,
  71. "quotemark": [
  72. true,
  73. "single"
  74. ],
  75. "trailing-comma": false,
  76. "no-conflicting-lifecycle": true,
  77. "no-host-metadata-property": true,
  78. "no-input-rename": true,
  79. "no-inputs-metadata-property": true,
  80. "no-output-native": true,
  81. "no-output-on-prefix": true,
  82. "no-output-rename": true,
  83. "no-outputs-metadata-property": true,
  84. "template-banana-in-box": true,
  85. "template-no-negated-async": true,
  86. "use-lifecycle-interface": true,
  87. "use-pipe-transform-interface": true
  88. },
  89. "rulesDirectory": [
  90. "codelyzer"
  91. ]
  92. }