tslint.json 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. {
  2. "extends": [
  3. "tslint:recommended"
  4. ],
  5. "rulesDirectory": [
  6. "node_modules/codelyzer"
  7. ],
  8. "rules": {
  9. "no-consecutive-blank-lines":false,
  10. "interface-name": [false, "always-prefix"],
  11. "member-access": false,
  12. "trailing-comma": [false, {"multiline": "always", "singleline": "never"}],
  13. "no-trailing-whitespace": [false, "ignore-comments", "ignore-template-strings","ignore-jsdoc"],
  14. "no-console": [true,
  15. "time",
  16. "timeEnd",
  17. "trace"
  18. ],
  19. "max-line-length": [
  20. true,
  21. 150
  22. ],
  23. "max-classes-per-file": [true, 3],
  24. "no-string-literal": false,
  25. "no-use-before-declare": true,
  26. "object-literal-sort-keys": false,
  27. "ordered-imports": false,
  28. "new-parens": false,
  29. "quotemark": [
  30. false,
  31. "single",
  32. "double",
  33. "avoid-escape"
  34. ],
  35. "array-type": [
  36. true,
  37. "generic"
  38. ],
  39. "variable-name": [
  40. true,
  41. "allow-leading-underscore",
  42. "allow-pascal-case",
  43. "ban-keywords",
  44. "check-format"
  45. ],
  46. "one-line": [true,
  47. "check-open-brace",
  48. "check-whitespace"
  49. ],
  50. "arrow-parens": true,
  51. "prefer-const": false,
  52. "prefer-for-of": false,
  53. "forin": false,
  54. "angular-whitespace": [true, "check-semicolon"],
  55. "one-variable-per-declaration": [false, "ignore-for-loop"],
  56. "banana-in-box": true,
  57. "templates-no-negated-async": false,
  58. "object-literal-shorthand": false,
  59. "use-input-property-decorator": true,
  60. "use-output-property-decorator": true,
  61. "use-host-property-decorator": true,
  62. "no-attribute-parameter-decorator": true,
  63. "no-input-rename": false,
  64. "no-output-rename": false,
  65. "no-output-on-prefix": true,
  66. "no-forward-ref": true,
  67. "use-view-encapsulation": false,
  68. "use-life-cycle-interface": false,
  69. "use-pipe-transform-interface": true,
  70. "pipe-naming": [true, "camelCase"],
  71. "component-class-suffix": [true, "Component", "Page", "Cmp"],
  72. "directive-class-suffix": true,
  73. "pipe-impure": true
  74. }
  75. }