Guest User

Untitled

a guest
Feb 17th, 2019
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.24 KB | None | 0 0
  1. {
  2. "extends": ["tslint:latest", "tslint-config-prettier"],
  3. "rulesDirectory": ["codelyzer", "rxjs-tslint"],
  4. "rules": {
  5. "member-access": [true, "no-public"],
  6. "member-ordering": [
  7. true,
  8. {
  9. "order": ["static-field", "instance-field", "static-method", "instance-method"]
  10. }
  11. ],
  12. "no-inferrable-types": [true, "ignore-params", "ignore-properties"],
  13. "no-unnecessary-type-assertion": true,
  14. "typedef": [true, "call-signature", "parameter", "member-variable-declaration", "property-declaration"],
  15.  
  16. "import-blacklist": [true, "rxjs/Rx"],
  17. "no-inferred-empty-object-type": true,
  18. "no-invalid-this": true,
  19. "no-null-keyword": true,
  20. "no-switch-case-fall-through": true,
  21. "no-unnecessary-class": [true, "allow-empty-class", "allow-static-only"],
  22. "restrict-plus-operands": true,
  23. "triple-equals": [true, "allow-undefined-check"],
  24. "unnecessary-constructor": true,
  25.  
  26. "deprecation": {
  27. "severity": "warning"
  28. },
  29. "max-file-line-count": [true, 300],
  30. "no-default-export": true,
  31. "no-default-import": true,
  32. "object-literal-sort-keys": false,
  33. "prefer-readonly": true,
  34.  
  35. "binary-expression-operand-order": true,
  36. "encoding": true,
  37. "file-name-casing": [true, "kebab-case"],
  38. "increment-decrement": [true, "allow-post"],
  39. "interface-name": [true, "never-prefix"],
  40. "ordered-imports": [
  41. true,
  42. {
  43. "import-sources-order": "case-insensitive",
  44. "grouped-imports": true,
  45. "named-imports-order": "case-insensitive",
  46. "module-source-path": "full"
  47. }
  48. ],
  49. "prefer-template": true,
  50. "switch-final-break": [true, "always"],
  51. "variable-name": [true, "ban-keywords", "check-format"],
  52. "no-submodule-imports": [true, "rxjs", "primeng", "@angular/core", "@angular/platform-browser", "@angular/common", "@angular/cdk"],
  53.  
  54. "banana-in-box": true,
  55. "contextual-life-cycle": true,
  56. "decorator-not-allowed": true,
  57. "pipe-impure": true,
  58. "templates-no-negated-async": true,
  59. "max-inline-declarations": true,
  60. "no-attribute-parameter-decorator": true,
  61. "no-conflicting-life-cycle-hooks": true,
  62. "no-forward-ref": true,
  63. "no-input-prefix": true,
  64. "no-input-rename": true,
  65. "no-life-cycle-call": true,
  66. "no-output-named-after-standard-event": true,
  67. "no-output-on-prefix": true,
  68. "no-output-rename": true,
  69. "no-template-call-expression": true,
  70. "no-unused-css": true,
  71. "prefer-output-readonly": true,
  72. "template-conditional-complexity": true,
  73. "trackBy-function": true,
  74. "use-life-cycle-interface": true,
  75. "use-pipe-decorator": true,
  76. "use-pipe-transform-interface": true,
  77. "use-view-encapsulation": true,
  78. "component-class-suffix": true,
  79. "directive-class-suffix": true,
  80. "enforce-component-selector": true,
  81. "no-queries-parameter": true,
  82. "pipe-naming": ["camelCase"],
  83. "prefer-inline-decorator": [true, "HostListener"],
  84. "use-host-property-decorator": true,
  85. "use-input-property-decorator": true,
  86. "use-output-property-decorator": true,
  87.  
  88. "rxjs-collapse-imports": true,
  89. "rxjs-pipeable-operators-only": true,
  90. "rxjs-no-static-observable-methods": true,
  91. "rxjs-proper-imports": true
  92. },
  93. "linterOptions": {
  94. "exclude": ["src/polyfills.ts", "src/test.ts"]
  95. }
  96. }
Add Comment
Please, Sign In to add comment