tslint.json 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. {
  2. "extends": "tslint:recommended",
  3. "rules": {
  4. "align": {
  5. "options": ["parameters", "statements"]
  6. },
  7. "array-type": false,
  8. "arrow-return-shorthand": true,
  9. "curly": true,
  10. "deprecation": {
  11. "severity": "warning"
  12. },
  13. "component-class-suffix": true,
  14. "contextual-lifecycle": true,
  15. "directive-class-suffix": true,
  16. "directive-selector": [true, "attribute", "app", "camelCase"],
  17. "component-selector": [true, "element", "app", "kebab-case"],
  18. "eofline": true,
  19. "import-blacklist": [true, "rxjs/Rx"],
  20. "import-spacing": true,
  21. "indent": {
  22. "options": ["spaces"]
  23. },
  24. "max-classes-per-file": false,
  25. "max-line-length": [true, 140],
  26. "member-ordering": [
  27. true,
  28. {
  29. "order": ["static-field", "instance-field", "static-method", "instance-method"]
  30. }
  31. ],
  32. "no-console": [true, "debug", "info", "time", "timeEnd", "trace"],
  33. "no-empty": false,
  34. "no-inferrable-types": [true, "ignore-params"],
  35. "no-non-null-assertion": true,
  36. "no-redundant-jsdoc": true,
  37. "no-switch-case-fall-through": true,
  38. "no-var-requires": false,
  39. "object-literal-key-quotes": [true, "as-needed"],
  40. "quotemark": [true, "single"],
  41. "semicolon": {
  42. "options": ["always"]
  43. },
  44. "space-before-function-paren": {
  45. "options": {
  46. "anonymous": "never",
  47. "asyncArrow": "always",
  48. "constructor": "never",
  49. "method": "never",
  50. "named": "never"
  51. }
  52. },
  53. "typedef-whitespace": {
  54. "options": [
  55. {
  56. "call-signature": "nospace",
  57. "index-signature": "nospace",
  58. "parameter": "nospace",
  59. "property-declaration": "nospace",
  60. "variable-declaration": "nospace"
  61. },
  62. {
  63. "call-signature": "onespace",
  64. "index-signature": "onespace",
  65. "parameter": "onespace",
  66. "property-declaration": "onespace",
  67. "variable-declaration": "onespace"
  68. }
  69. ]
  70. },
  71. "variable-name": {
  72. "options": ["ban-keywords", "check-format", "allow-pascal-case"]
  73. },
  74. "whitespace": {
  75. "options": [
  76. "check-branch",
  77. "check-decl",
  78. "check-operator",
  79. "check-separator",
  80. "check-type",
  81. "check-typecast"
  82. ]
  83. },
  84. "no-conflicting-lifecycle": true,
  85. "no-host-metadata-property": true,
  86. "no-input-rename": true,
  87. "no-inputs-metadata-property": true,
  88. "no-output-native": true,
  89. "no-output-on-prefix": true,
  90. "no-output-rename": true,
  91. "no-outputs-metadata-property": true,
  92. "template-banana-in-box": true,
  93. "template-no-negated-async": true,
  94. "use-lifecycle-interface": true,
  95. "use-pipe-transform-interface": true
  96. },
  97. "rulesDirectory": ["codelyzer"]
  98. }