recommended.d.ts 6.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238
  1. /**
  2. * @license
  3. * Copyright 2016 Palantir Technologies, Inc.
  4. *
  5. * Licensed under the Apache License, Version 2.0 (the "License");
  6. * you may not use this file except in compliance with the License.
  7. * You may obtain a copy of the License at
  8. *
  9. * http://www.apache.org/licenses/LICENSE-2.0
  10. *
  11. * Unless required by applicable law or agreed to in writing, software
  12. * distributed under the License is distributed on an "AS IS" BASIS,
  13. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. * See the License for the specific language governing permissions and
  15. * limitations under the License.
  16. */
  17. export declare const rules: {
  18. "adjacent-overload-signatures": boolean;
  19. "align": {
  20. options: string[];
  21. };
  22. "array-type": {
  23. options: string[];
  24. };
  25. "arrow-parens": boolean;
  26. "arrow-return-shorthand": boolean;
  27. "ban-types": {
  28. options: string[][];
  29. };
  30. "callable-types": boolean;
  31. "class-name": boolean;
  32. "comment-format": {
  33. options: string[];
  34. };
  35. "curly": boolean;
  36. "cyclomatic-complexity": boolean;
  37. "eofline": boolean;
  38. "forin": boolean;
  39. "import-spacing": boolean;
  40. "indent": {
  41. options: string[];
  42. };
  43. "interface-name": {
  44. options: string[];
  45. };
  46. "interface-over-type-literal": boolean;
  47. "jsdoc-format": boolean;
  48. "label-position": boolean;
  49. "max-classes-per-file": {
  50. options: number[];
  51. };
  52. "max-line-length": {
  53. options: number[];
  54. };
  55. "member-access": boolean;
  56. "member-ordering": {
  57. options: {
  58. order: string;
  59. };
  60. };
  61. "new-parens": boolean;
  62. "no-angle-bracket-type-assertion": boolean;
  63. "no-any": boolean;
  64. "no-arg": boolean;
  65. "no-bitwise": boolean;
  66. "no-conditional-assignment": boolean;
  67. "no-consecutive-blank-lines": boolean;
  68. "no-console": boolean;
  69. "no-construct": boolean;
  70. "no-debugger": boolean;
  71. "no-duplicate-super": boolean;
  72. "no-empty": boolean;
  73. "no-empty-interface": boolean;
  74. "no-eval": boolean;
  75. "no-internal-module": boolean;
  76. "no-invalid-this": boolean;
  77. "no-misused-new": boolean;
  78. "no-namespace": boolean;
  79. "no-parameter-properties": boolean;
  80. "no-reference": boolean;
  81. "no-reference-import": boolean;
  82. "no-shadowed-variable": boolean;
  83. "no-string-literal": boolean;
  84. "no-string-throw": boolean;
  85. "no-switch-case-fall-through": boolean;
  86. "no-trailing-whitespace": boolean;
  87. "no-unnecessary-initializer": boolean;
  88. "no-unsafe-finally": boolean;
  89. "no-unused-expression": boolean;
  90. "no-use-before-declare": boolean;
  91. "no-var-keyword": boolean;
  92. "no-var-requires": boolean;
  93. "object-literal-key-quotes": {
  94. options: string[];
  95. };
  96. "object-literal-shorthand": boolean;
  97. "object-literal-sort-keys": boolean;
  98. "one-line": {
  99. options: string[];
  100. };
  101. "one-variable-per-declaration": {
  102. options: string[];
  103. };
  104. "only-arrow-functions": {
  105. options: string[];
  106. };
  107. "ordered-imports": {
  108. options: {
  109. "import-sources-order": string;
  110. "module-source-path": string;
  111. "named-imports-order": string;
  112. };
  113. };
  114. "prefer-const": boolean;
  115. "prefer-for-of": boolean;
  116. "quotemark": {
  117. options: string[];
  118. };
  119. "radix": boolean;
  120. "semicolon": {
  121. options: string[];
  122. };
  123. "space-before-function-paren": {
  124. options: {
  125. anonymous: string;
  126. asyncArrow: string;
  127. constructor: string;
  128. method: string;
  129. named: string;
  130. };
  131. };
  132. "trailing-comma": {
  133. options: {
  134. multiline: string;
  135. singleline: string;
  136. };
  137. };
  138. "triple-equals": {
  139. options: string[];
  140. };
  141. "typedef": boolean;
  142. "typedef-whitespace": {
  143. options: {
  144. "call-signature": string;
  145. "index-signature": string;
  146. "parameter": string;
  147. "property-declaration": string;
  148. "variable-declaration": string;
  149. }[];
  150. };
  151. "typeof-compare": boolean;
  152. "unified-signatures": boolean;
  153. "use-isnan": boolean;
  154. "variable-name": {
  155. options: string[];
  156. };
  157. "whitespace": {
  158. options: string[];
  159. };
  160. };
  161. export declare const jsRules: {
  162. "align": {
  163. options: string[];
  164. };
  165. "class-name": boolean;
  166. "curly": boolean;
  167. "eofline": boolean;
  168. "forin": boolean;
  169. "import-spacing": boolean;
  170. "indent": {
  171. options: string[];
  172. };
  173. "jsdoc-format": boolean;
  174. "label-position": boolean;
  175. "max-line-length": {
  176. options: number[];
  177. };
  178. "new-parens": boolean;
  179. "no-arg": boolean;
  180. "no-bitwise": boolean;
  181. "no-conditional-assignment": boolean;
  182. "no-consecutive-blank-lines": boolean;
  183. "no-console": boolean;
  184. "no-construct": boolean;
  185. "no-debugger": boolean;
  186. "no-duplicate-super": boolean;
  187. "no-duplicate-variable": boolean;
  188. "no-empty": boolean;
  189. "no-eval": boolean;
  190. "no-reference": boolean;
  191. "no-shadowed-variable": boolean;
  192. "no-string-literal": boolean;
  193. "no-string-throw": boolean;
  194. "no-switch-case-fall-through": boolean;
  195. "no-trailing-whitespace": boolean;
  196. "no-unused-expression": boolean;
  197. "no-use-before-declare": boolean;
  198. "object-literal-sort-keys": boolean;
  199. "one-line": {
  200. options: string[];
  201. };
  202. "one-variable-per-declaration": {
  203. options: string[];
  204. };
  205. "quotemark": {
  206. options: string[];
  207. };
  208. "radix": boolean;
  209. "semicolon": {
  210. options: string[];
  211. };
  212. "space-before-function-paren": {
  213. options: {
  214. anonymous: string;
  215. asyncArrow: string;
  216. constructor: string;
  217. method: string;
  218. named: string;
  219. };
  220. };
  221. "trailing-comma": {
  222. options: {
  223. multiline: string;
  224. singleline: string;
  225. };
  226. };
  227. "triple-equals": {
  228. options: string[];
  229. };
  230. "use-isnan": boolean;
  231. "variable-name": {
  232. options: string[];
  233. };
  234. "whitespace": {
  235. options: string[];
  236. };
  237. };