Advertisement
Guest User

Untitled

a guest
Oct 19th, 2019
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.90 KB | None | 0 0
  1. {
  2. "defaultSeverity": "error",
  3. "jsRules": {},
  4. "rules": {
  5.  
  6. "prettier": [true,".prettierrc"],
  7. "no-console":false,
  8. "quotemark": [true, "single", "avoid-escape"],
  9. "semicolon": [
  10. true,
  11. "always"
  12. ],
  13. "ordered-imports": false,
  14. "space-before-function-paren": false,
  15. "deprecation":true,
  16. "align":true,
  17. "arrow-parens":true,
  18. "adjacent-overload-signatures":true,
  19. "array-type": [true, "generic"],
  20. "arrow-return-shorthand": [true, "multiline"],
  21. "await-promise":true,
  22. "ban": [true,
  23. {"name": ["it", "skip"]},
  24. {"name": ["it", "only"]},
  25. {"name": ["it", "async", "skip"]},
  26. {"name": ["it", "async", "only"]},
  27. {"name": ["describe", "skip"]},
  28. {"name": ["describe", "only"]},
  29. {"name": "parseInt", "message": "tsstyle#type-coercion"},
  30. {"name": "parseFloat", "message": "tsstyle#type-coercion"},
  31. {"name": "Array", "message": "tsstyle#array-constructor"},
  32. {"name": ["*", "innerText"], "message": "Use .textContent instead. tsstyle#browser-oddities"}
  33. ],
  34. "ban-types": [true,
  35. ["Object", "Avoid using the `Object` type. Did you mean `object`?"],
  36. [
  37. "Function",
  38. "Avoid using the `Function` type. Prefer a specific function type, like `() => void`."
  39. ],
  40. ["Boolean", "Avoid using the `Boolean` type. Did you mean `boolean`?"],
  41. ["Number", "Avoid using the `Number` type. Did you mean `number`?"],
  42. ["String", "Avoid using the `String` type. Did you mean `string`?"],
  43. ["Symbol", "Avoid using the `Symbol` type. Did you mean `symbol`?"]
  44. ],
  45. "ban-comma-operator":true,
  46. "ban-ts-ignore": true,
  47. "binary-expression-operand-order":true,
  48. "class-name": true,
  49. "curly":true,
  50. "cyclomatic-complexity":true,
  51. "eofline":true,
  52. "no-for-in": true,
  53. "indent": [true, "spaces", 2],
  54. "interface-name": [true, "never-prefix"],
  55. "interface-over-type-literal": true,
  56. "member-ordering": [
  57. true,
  58. {
  59. "order": [
  60. "public-static-field",
  61. "public-instance-field",
  62. "public-constructor",
  63. "private-static-field",
  64. "private-instance-field",
  65. "private-constructor",
  66. "public-instance-method",
  67. "protected-instance-method",
  68. "private-instance-method"
  69. ],
  70. "alphabetize": true
  71. }
  72. ],
  73. "no-angle-bracket-type-assertion":true,
  74. "no-any":true,
  75. "whitespace":true,
  76. "no-import-side-effect": true,
  77. "no-inferrable-types": true,
  78. "no-internal-module": true,
  79. "no-parameter-reassignment": true,
  80. "only-arrow-functions": true,
  81. "no-var-requires": true,
  82. "no-this-assignment": true,
  83. "prefer-for-of": true,
  84. "promise-function-async": true,
  85. "label-position": true,
  86. "no-async-without-await": true,
  87. "no-bitwise": true,
  88. "no-conditional-assignment": true,
  89. "no-duplicate-switch-case": true,
  90. "no-empty": true,
  91. "no-floating-promises": true,
  92. "no-implicit-dependencies": true,
  93. "no-invalid-template-strings": true,
  94. "no-promise-as-boolean": false,
  95. "no-return-await": true,
  96. "no-unnecessary-class": true,
  97. "no-unsafe-finally": true,
  98. "no-unused-expression": true,
  99. "no-var-keyword": true,
  100. "prefer-conditional-expression": [true, "check-else-if"],
  101. "prefer-object-spread": true,
  102. "no-default-export": true,
  103. "no-require-imports": true,
  104. "prefer-const": true,
  105. "comment-format": [true, "check-space", "check-uppercase", "allow-trailing-lowercase"],
  106. "no-unnecessary-callback-wrapper": true,
  107. "no-unnecessary-qualifier": true,
  108. "one-line": [true, "check-catch", "check-finally", "check-else","check-open-brace","check-whitespace"],
  109. "one-variable-per-declaration": true,
  110. "prefer-function-over-method": true,
  111. "prefer-switch": true,
  112. "prefer-while": true,
  113. "switch-final-break": [true, "always"],
  114. "unnecessary-else": true,
  115. "no-magic-numbers": true,
  116. "variable-name": {
  117. "options": [
  118. "ban-keywords",
  119. "check-format",
  120. "allow-pascal-case"
  121. ]
  122. },
  123. "newline-before-return": true,
  124. "new-parens": true,
  125. "no-consecutive-blank-lines": true,
  126. "no-irregular-whitespace": true
  127. },
  128. "rulesDirectory": ["tslint-plugin-prettier"],
  129. "extends": [
  130. "tslint:latest",
  131. "tslint-config-prettier"
  132. ]
  133. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement