tslint.json 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. {
  2. "rulesDirectory": ["tslint-plugin-prettier", "tslint-react"],
  3. "rules": {
  4. "prettier": [true, { "singleQuote": true }],
  5. "align": [true, "parameters", "statements"],
  6. "ban": [
  7. true,
  8. ["_", "forEach"],
  9. ["_", "each"],
  10. ["$", "each"],
  11. ["angular", "forEach"]
  12. ],
  13. "class-name": true,
  14. "comment-format": [true, "check-space"],
  15. "curly": true,
  16. "eofline": true,
  17. "forin": false,
  18. "indent": [true, "spaces", 2],
  19. "interface-name": [true, "always-prefix"],
  20. "jsdoc-format": true,
  21. "label-position": true,
  22. "max-line-length": [false],
  23. "member-access": false,
  24. "member-ordering": [false],
  25. "new-parens": true,
  26. "no-angle-bracket-type-assertion": true,
  27. "no-any": false,
  28. "no-arg": true,
  29. "no-bitwise": true,
  30. "no-conditional-assignment": true,
  31. "no-consecutive-blank-lines": false,
  32. "no-console": [true, "debug", "info", "time", "timeEnd", "trace"],
  33. "no-construct": true,
  34. "no-debugger": true,
  35. "no-default-export": false,
  36. "no-duplicate-variable": true,
  37. "no-empty": true,
  38. "no-eval": true,
  39. "no-inferrable-types": false,
  40. "no-internal-module": true,
  41. "no-invalid-this": [true, "check-function-in-method"],
  42. "no-null-keyword": false,
  43. "no-reference": true,
  44. "no-require-imports": false,
  45. "no-shadowed-variable": false,
  46. "no-string-literal": false,
  47. "no-switch-case-fall-through": true,
  48. "no-trailing-whitespace": true,
  49. "no-unused-expression": true,
  50. "no-use-before-declare": false,
  51. "no-var-keyword": true,
  52. "no-var-requires": true,
  53. "object-literal-sort-keys": false,
  54. "one-line": [
  55. true,
  56. "check-open-brace",
  57. "check-catch",
  58. "check-else",
  59. "check-finally",
  60. "check-whitespace"
  61. ],
  62. "one-variable-per-declaration": [true, "ignore-for-loop"],
  63. "quotemark": {
  64. "options": [true, "single", "avoid-escape"],
  65. "severity": "off"
  66. },
  67. "radix": true,
  68. "semicolon": [true, "always", "ignore-bound-class-methods"],
  69. "switch-default": true,
  70. "trailing-comma": [
  71. false,
  72. {
  73. "multiline": "never",
  74. "singleline": "never"
  75. }
  76. ],
  77. "triple-equals": [true, "allow-null-check", "allow-undefined-check"],
  78. "typedef": [false],
  79. "typedef-whitespace": [
  80. false,
  81. {
  82. "call-signature": "nospace",
  83. "index-signature": "nospace",
  84. "parameter": "nospace",
  85. "property-declaration": "nospace",
  86. "variable-declaration": "nospace"
  87. },
  88. {
  89. "call-signature": "space",
  90. "index-signature": "space",
  91. "parameter": "space",
  92. "property-declaration": "space",
  93. "variable-declaration": "space"
  94. }
  95. ],
  96. "use-isnan": true,
  97. "use-strict": [false],
  98. "variable-name": [
  99. true,
  100. "check-format",
  101. "allow-leading-underscore",
  102. "ban-keywords"
  103. ],
  104. "whitespace": [
  105. true,
  106. "check-branch",
  107. "check-operator",
  108. "check-separator",
  109. "check-type"
  110. ]
  111. },
  112. "linterOptions": {
  113. "exclude": ["node_modules/**/*.ts", "**/*.d.ts", "jupyterlab/**/*.ts"]
  114. }
  115. }