Advertisement
Guest User

Untitled

a guest
Jun 19th, 2019
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.52 KB | None | 0 0
  1. {
  2. "rules": {
  3. "array-type": [true, "array-simple"],
  4. "arrow-return-shorthand": true,
  5. "ban": [true,
  6. {"name": ["it", "skip"]},
  7. {"name": ["it", "only"]},
  8. {"name": ["it", "async", "skip"]},
  9. {"name": ["it", "async", "only"]},
  10. {"name": ["describe", "skip"]},
  11. {"name": ["describe", "only"]},
  12. {"name": "parseInt", "message": "tsstyle#type-coercion"},
  13. {"name": "parseFloat", "message": "tsstyle#type-coercion"},
  14. {"name": "Array", "message": "tsstyle#array-constructor"},
  15. {"name": ["*", "innerText"], "message": "Use .textContent instead. tsstyle#browser-oddities"}
  16. ],
  17. "ban-ts-ignore": true,
  18. "ban-types": [true,
  19. ["Object", "Use {} instead."],
  20. ["String", "Use 'string' instead."],
  21. ["Number", "Use 'number' instead."],
  22. ["Boolean", "Use 'boolean' instead."]
  23. ],
  24. "class-name": true,
  25. "curly": [true, "ignore-same-line"],
  26. "deprecation": true,
  27. "forin": false,
  28. "interface-name": [true, "never-prefix"],
  29. "interface-over-type-literal": true,
  30. "jsdoc-format": true,
  31. "label-position": true,
  32. "member-access": [true, "no-public"],
  33. "new-parens": true,
  34. "no-angle-bracket-type-assertion": true,
  35. "no-any": true,
  36. "no-arg": true,
  37. "no-conditional-assignment": true,
  38. "no-construct": true,
  39. "no-debugger": true,
  40. "no-default-export": false,
  41. "no-duplicate-variable": true,
  42. "no-inferrable-types": true,
  43. "no-namespace": [true, "allow-declarations"],
  44. "no-reference": true,
  45. "no-string-throw": true,
  46. "no-return-await": true,
  47. "no-unsafe-finally": true,
  48. "no-unused-expression": true,
  49. "no-var-keyword": true,
  50. "object-literal-shorthand": true,
  51. "only-arrow-functions": [true, "allow-declarations", "allow-named-functions"],
  52. "prefer-const": true,
  53. "radix": true,
  54. "semicolon": [false, "always", "ignore-bound-class-methods"],
  55. "switch-default": true,
  56. "trailing-comma": [
  57. true,
  58. {
  59. "multiline": {
  60. "objects": "always",
  61. "arrays": "always",
  62. "functions": "never",
  63. "typeLiterals": "ignore"
  64. },
  65. "esSpecCompliant": true
  66. }
  67. ],
  68. "triple-equals": [true, "allow-null-check"],
  69. "use-isnan": true,
  70. "variable-name": [
  71. true,
  72. "check-format",
  73. "ban-keywords",
  74. "allow-leading-underscore",
  75. "allow-trailing-underscore"
  76. ]
  77. }
  78. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement