tslint.json 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. {
  2. "rulesDirectory": ["tslint-plugin-prettier"],
  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-use-before-declare": false,
  50. "no-var-keyword": true,
  51. "no-var-requires": true,
  52. "object-literal-sort-keys": false,
  53. "one-line": [
  54. true,
  55. "check-open-brace",
  56. "check-catch",
  57. "check-else",
  58. "check-finally",
  59. "check-whitespace"
  60. ],
  61. "one-variable-per-declaration": [true, "ignore-for-loop"],
  62. "quotemark": {
  63. "options": [true, "single", "avoid-escape"],
  64. "severity": "off"
  65. },
  66. "radix": true,
  67. "semicolon": [true, "always", "ignore-bound-class-methods"],
  68. "switch-default": true,
  69. "trailing-comma": [
  70. false,
  71. {
  72. "multiline": "never",
  73. "singleline": "never"
  74. }
  75. ],
  76. "triple-equals": [true, "allow-null-check", "allow-undefined-check"],
  77. "typedef": [false],
  78. "typedef-whitespace": [
  79. false,
  80. {
  81. "call-signature": "nospace",
  82. "index-signature": "nospace",
  83. "parameter": "nospace",
  84. "property-declaration": "nospace",
  85. "variable-declaration": "nospace"
  86. },
  87. {
  88. "call-signature": "space",
  89. "index-signature": "space",
  90. "parameter": "space",
  91. "property-declaration": "space",
  92. "variable-declaration": "space"
  93. }
  94. ],
  95. "use-isnan": true,
  96. "use-strict": [false],
  97. "variable-name": [
  98. true,
  99. "check-format",
  100. "allow-leading-underscore",
  101. "ban-keywords"
  102. ],
  103. "whitespace": [
  104. true,
  105. "check-branch",
  106. "check-operator",
  107. "check-separator",
  108. "check-type"
  109. ]
  110. },
  111. "linterOptions": {
  112. "exclude": ["node_modules/**/*.ts", "**/*.d.ts", "jupyterlab/**/*.ts"]
  113. }
  114. }