tslint.json 3.2 KB

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