tslint.json 1.8 KB

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