@perfective/eslint-config 0.29.2 → 0.31.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (200) hide show
  1. package/LICENSE +1 -1
  2. package/README.adoc +198 -67
  3. package/README.md +62 -45
  4. package/config/array-func/array-func-config.d.ts +2 -0
  5. package/config/array-func/array-func-config.js +16 -0
  6. package/config/cypress/cypress-config.d.ts +10 -0
  7. package/config/cypress/cypress-config.js +38 -0
  8. package/config/cypress/index.d.ts +1 -0
  9. package/config/cypress/index.js +1 -0
  10. package/config/eslint/eslint-config.d.ts +2 -0
  11. package/config/eslint/eslint-config.js +8 -0
  12. package/config/eslint/layout-formatting-rules.d.ts +2 -0
  13. package/config/eslint/layout-formatting-rules.js +64 -0
  14. package/config/eslint/possible-problems-rules.d.ts +2 -0
  15. package/config/eslint/possible-problems-rules.js +96 -0
  16. package/config/eslint/suggestions-rules.d.ts +2 -0
  17. package/config/eslint/suggestions-rules.js +181 -0
  18. package/config/eslint-comments/best-practices-rules.d.ts +2 -0
  19. package/config/eslint-comments/best-practices-rules.js +8 -0
  20. package/config/eslint-comments/eslint-comments-config.d.ts +2 -0
  21. package/config/eslint-comments/eslint-comments-config.js +11 -0
  22. package/config/eslint-comments/stylistic-issues-rules.d.ts +2 -0
  23. package/config/eslint-comments/stylistic-issues-rules.js +9 -0
  24. package/config/import/helpful-warnings-rules.d.ts +2 -0
  25. package/config/import/helpful-warnings-rules.js +11 -0
  26. package/config/import/import-config.d.ts +4 -0
  27. package/config/import/import-config.js +46 -0
  28. package/config/import/index.d.ts +1 -0
  29. package/config/import/index.js +1 -0
  30. package/config/import/module-systems-rules.d.ts +2 -0
  31. package/config/import/module-systems-rules.js +10 -0
  32. package/config/import/rules/no-extraneous-dependencies.d.ts +15 -0
  33. package/config/import/rules/no-extraneous-dependencies.js +8 -0
  34. package/config/import/static-analysis-rules.d.ts +2 -0
  35. package/config/import/static-analysis-rules.js +26 -0
  36. package/config/import/style-guide-rules.d.ts +2 -0
  37. package/config/import/style-guide-rules.js +33 -0
  38. package/config/jest/index.d.ts +1 -0
  39. package/config/jest/index.js +1 -0
  40. package/config/jest/jest-config.d.ts +8 -0
  41. package/config/jest/jest-config.js +128 -0
  42. package/config/jest/typescript-eslint-jest-rules.d.ts +2 -0
  43. package/config/jest/typescript-eslint-jest-rules.js +5 -0
  44. package/config/jest-dom/index.d.ts +1 -0
  45. package/config/jest-dom/index.js +1 -0
  46. package/config/jest-dom/jest-dom-config.d.ts +8 -0
  47. package/config/jest-dom/jest-dom-config.js +23 -0
  48. package/config/jsdoc/jsdoc-config.d.ts +3 -0
  49. package/config/jsdoc/jsdoc-config.js +179 -0
  50. package/config/node/node-config.d.ts +2 -0
  51. package/config/node/node-config.js +66 -0
  52. package/config/perfective-eslint-config.d.ts +6 -0
  53. package/config/perfective-eslint-config.js +45 -0
  54. package/config/prefer-arrow/prefer-arrow-config.d.ts +2 -0
  55. package/config/prefer-arrow/prefer-arrow-config.js +16 -0
  56. package/config/promise/promise-config.d.ts +2 -0
  57. package/config/promise/promise-config.js +37 -0
  58. package/config/rxjs/index.d.ts +1 -0
  59. package/config/rxjs/index.js +1 -0
  60. package/config/rxjs/rxjs-config.d.ts +8 -0
  61. package/config/rxjs/rxjs-config.js +67 -0
  62. package/config/security/security-config.d.ts +2 -0
  63. package/config/security/security-config.js +24 -0
  64. package/config/simple-import-sort/index.d.ts +1 -0
  65. package/config/simple-import-sort/index.js +1 -0
  66. package/config/simple-import-sort/rules/imports.d.ts +28 -0
  67. package/config/simple-import-sort/rules/imports.js +32 -0
  68. package/config/simple-import-sort/simple-import-sort-config.d.ts +2 -0
  69. package/config/simple-import-sort/simple-import-sort-config.js +13 -0
  70. package/config/stylistic/js/stylistic-js-config.d.ts +2 -0
  71. package/config/stylistic/js/stylistic-js-config.js +200 -0
  72. package/config/stylistic/jsx/stylistic-jsx-config.d.ts +2 -0
  73. package/config/stylistic/jsx/stylistic-jsx-config.js +87 -0
  74. package/config/stylistic/plus/stylistic-plus-config.d.ts +2 -0
  75. package/config/stylistic/plus/stylistic-plus-config.js +16 -0
  76. package/config/stylistic/ts/stylistic-ts-config.d.ts +2 -0
  77. package/config/stylistic/ts/stylistic-ts-config.js +141 -0
  78. package/config/testing-library/index.d.ts +1 -0
  79. package/config/testing-library/index.js +1 -0
  80. package/config/testing-library/testing-library-config.d.ts +8 -0
  81. package/config/testing-library/testing-library-config.js +45 -0
  82. package/config/typescript-eslint/extension-rules.d.ts +2 -0
  83. package/config/typescript-eslint/extension-rules.js +113 -0
  84. package/config/typescript-eslint/index.d.ts +1 -0
  85. package/config/typescript-eslint/index.js +1 -0
  86. package/{rules → config}/typescript-eslint/rules/typescript-eslint-naming-convention.d.ts +39 -0
  87. package/config/typescript-eslint/rules/typescript-eslint-naming-convention.js +26 -0
  88. package/config/typescript-eslint/supported-rules.d.ts +2 -0
  89. package/config/typescript-eslint/supported-rules.js +260 -0
  90. package/config/typescript-eslint/typescript-eslint-config.d.ts +2 -0
  91. package/config/typescript-eslint/typescript-eslint-config.js +15 -0
  92. package/config/unicorn/index.d.ts +1 -0
  93. package/config/unicorn/index.js +1 -0
  94. package/{rules → config}/unicorn/rules/prevent-abbreviations.d.ts +20 -0
  95. package/config/unicorn/rules/prevent-abbreviations.js +30 -0
  96. package/config/unicorn/unicorn-config.d.ts +2 -0
  97. package/config/unicorn/unicorn-config.js +185 -0
  98. package/index.d.ts +5 -1732
  99. package/index.js +5 -146
  100. package/linter/glob.d.ts +59 -0
  101. package/linter/glob.js +8 -0
  102. package/linter/language-options.d.ts +25 -0
  103. package/linter/language-options.js +45 -0
  104. package/linter/linter-config.d.ts +13 -0
  105. package/linter/linter-config.js +6 -0
  106. package/linter/node.d.ts +10 -0
  107. package/linter/node.js +7 -0
  108. package/linter/plugin.d.ts +15 -0
  109. package/linter/plugin.js +26 -0
  110. package/package.json +45 -45
  111. package/config/node.d.ts +0 -1
  112. package/config/node.js +0 -11
  113. package/config/plugin.d.ts +0 -2
  114. package/config/plugin.js +0 -30
  115. package/config.d.ts +0 -1
  116. package/config.js +0 -6
  117. package/cypress.d.ts +0 -1
  118. package/cypress.js +0 -56
  119. package/jest-dom.d.ts +0 -1
  120. package/jest-dom.js +0 -11
  121. package/jest.d.ts +0 -1
  122. package/jest.js +0 -24
  123. package/rules/array-func/index.d.ts +0 -14
  124. package/rules/array-func/index.js +0 -50
  125. package/rules/cypress/index.d.ts +0 -21
  126. package/rules/cypress/index.js +0 -57
  127. package/rules/eslint/index.d.ts +0 -339
  128. package/rules/eslint/index.js +0 -9
  129. package/rules/eslint/layout-formatting.d.ts +0 -64
  130. package/rules/eslint/layout-formatting.js +0 -67
  131. package/rules/eslint/possible-problems.d.ts +0 -96
  132. package/rules/eslint/possible-problems.js +0 -99
  133. package/rules/eslint/suggestions.d.ts +0 -181
  134. package/rules/eslint/suggestions.js +0 -182
  135. package/rules/eslint-comments/best-practices.d.ts +0 -8
  136. package/rules/eslint-comments/best-practices.js +0 -11
  137. package/rules/eslint-comments/index.d.ts +0 -21
  138. package/rules/eslint-comments/index.js +0 -45
  139. package/rules/eslint-comments/stylistic-issues.d.ts +0 -9
  140. package/rules/eslint-comments/stylistic-issues.js +0 -18
  141. package/rules/import/helpful-warnings.d.ts +0 -10
  142. package/rules/import/helpful-warnings.js +0 -14
  143. package/rules/import/index.d.ts +0 -78
  144. package/rules/import/index.js +0 -14
  145. package/rules/import/module-systems.d.ts +0 -10
  146. package/rules/import/module-systems.js +0 -13
  147. package/rules/import/rules/no-extraneous-dependencies.d.ts +0 -11
  148. package/rules/import/rules/no-extraneous-dependencies.js +0 -24
  149. package/rules/import/static-analysis.d.ts +0 -26
  150. package/rules/import/static-analysis.js +0 -29
  151. package/rules/import/style-guide.d.ts +0 -33
  152. package/rules/import/style-guide.js +0 -36
  153. package/rules/jest/index.d.ts +0 -124
  154. package/rules/jest/index.js +0 -72
  155. package/rules/jest/typescript-eslint.d.ts +0 -5
  156. package/rules/jest/typescript-eslint.js +0 -8
  157. package/rules/jest-dom/index.d.ts +0 -32
  158. package/rules/jest-dom/index.js +0 -55
  159. package/rules/jsdoc/index.d.ts +0 -134
  160. package/rules/jsdoc/index.js +0 -347
  161. package/rules/n/index.d.ts +0 -66
  162. package/rules/n/index.js +0 -98
  163. package/rules/prefer-arrow/index.d.ts +0 -14
  164. package/rules/prefer-arrow/index.js +0 -50
  165. package/rules/promise/index.d.ts +0 -35
  166. package/rules/promise/index.js +0 -73
  167. package/rules/rxjs/index.d.ts +0 -60
  168. package/rules/rxjs/index.js +0 -96
  169. package/rules/security/index.d.ts +0 -22
  170. package/rules/security/index.js +0 -58
  171. package/rules/simple-import-sort/index.d.ts +0 -10
  172. package/rules/simple-import-sort/index.js +0 -48
  173. package/rules/simple-import-sort/rules/imports.d.ts +0 -8
  174. package/rules/simple-import-sort/rules/imports.js +0 -46
  175. package/rules/stylistic/js/index.d.ts +0 -197
  176. package/rules/stylistic/js/index.js +0 -236
  177. package/rules/stylistic/jsx/index.d.ts +0 -81
  178. package/rules/stylistic/jsx/index.js +0 -117
  179. package/rules/stylistic/plus/index.d.ts +0 -14
  180. package/rules/stylistic/plus/index.js +0 -50
  181. package/rules/stylistic/ts/index.d.ts +0 -135
  182. package/rules/stylistic/ts/index.js +0 -169
  183. package/rules/testing-library/index.d.ts +0 -62
  184. package/rules/testing-library/index.js +0 -77
  185. package/rules/typescript-eslint/extension-rules.d.ts +0 -113
  186. package/rules/typescript-eslint/extension-rules.js +0 -116
  187. package/rules/typescript-eslint/index.d.ts +0 -369
  188. package/rules/typescript-eslint/index.js +0 -45
  189. package/rules/typescript-eslint/rules/typescript-eslint-naming-convention.js +0 -32
  190. package/rules/typescript-eslint/supported-rules.d.ts +0 -253
  191. package/rules/typescript-eslint/supported-rules.js +0 -319
  192. package/rules/unicorn/index.d.ts +0 -178
  193. package/rules/unicorn/index.js +0 -209
  194. package/rules/unicorn/rules/prevent-abbreviations.js +0 -8
  195. package/rules.d.ts +0 -4
  196. package/rules.js +0 -14
  197. package/rxjs.d.ts +0 -1
  198. package/rxjs.js +0 -58
  199. package/testing-library.d.ts +0 -1
  200. package/testing-library.js +0 -11
@@ -1,253 +0,0 @@
1
- export declare const supportedRules: {
2
- '@typescript-eslint/adjacent-overload-signatures': string;
3
- '@typescript-eslint/array-type': (string | {
4
- default: string;
5
- readonly: string;
6
- })[];
7
- '@typescript-eslint/await-thenable': string;
8
- '@typescript-eslint/ban-ts-comment': string;
9
- '@typescript-eslint/ban-tslint-comment': string;
10
- '@typescript-eslint/ban-types': string;
11
- '@typescript-eslint/class-literal-property-style': string;
12
- '@typescript-eslint/consistent-generic-constructors': string[];
13
- '@typescript-eslint/consistent-indexed-object-style': string[];
14
- '@typescript-eslint/consistent-type-assertions': (string | {
15
- assertionStyle: string;
16
- objectLiteralTypeAssertions: string;
17
- })[];
18
- '@typescript-eslint/consistent-type-definitions': string[];
19
- '@typescript-eslint/consistent-type-exports': (string | {
20
- fixMixedExportsWithInlineTypeSpecifier: boolean;
21
- })[];
22
- '@typescript-eslint/consistent-type-imports': (string | {
23
- prefer: string;
24
- disallowTypeAnnotations: boolean;
25
- })[];
26
- '@typescript-eslint/explicit-function-return-type': (string | {
27
- allowConciseArrowFunctionExpressionsStartingWithVoid: boolean;
28
- allowDirectConstAssertionInArrowFunctions: boolean;
29
- allowExpressions: boolean;
30
- allowFunctionsWithoutTypeParameters: boolean;
31
- allowHigherOrderFunctions: boolean;
32
- allowIIFEs: boolean;
33
- allowTypedFunctionExpressions: boolean;
34
- allowedNames: never[];
35
- })[];
36
- '@typescript-eslint/explicit-member-accessibility': string;
37
- '@typescript-eslint/explicit-module-boundary-types': string;
38
- '@typescript-eslint/member-delimiter-style': string;
39
- '@typescript-eslint/member-ordering': (string | {
40
- default: string[];
41
- })[];
42
- '@typescript-eslint/method-signature-style': string[];
43
- '@typescript-eslint/naming-convention': (string | import("./rules/typescript-eslint-naming-convention").TypescriptEslintNamingConvention)[];
44
- '@typescript-eslint/no-array-delete': string;
45
- '@typescript-eslint/no-base-to-string': string;
46
- '@typescript-eslint/no-confusing-non-null-assertion': string;
47
- '@typescript-eslint/no-confusing-void-expression': (string | {
48
- ignoreArrowShorthand: boolean;
49
- ignoreVoidOperator: boolean;
50
- })[];
51
- '@typescript-eslint/no-deprecated': string;
52
- '@typescript-eslint/no-duplicate-enum-values': string;
53
- '@typescript-eslint/no-duplicate-type-constituents': (string | {
54
- ignoreIntersections: boolean;
55
- ignoreUnions: boolean;
56
- })[];
57
- '@typescript-eslint/no-dynamic-delete': string;
58
- '@typescript-eslint/no-empty-interface': (string | {
59
- allowSingleExtends: boolean;
60
- })[];
61
- '@typescript-eslint/no-empty-object-type': (string | {
62
- allowInterfaces: string;
63
- allowObjectTypes: string;
64
- })[];
65
- '@typescript-eslint/no-explicit-any': (string | {
66
- fixToUnknown: boolean;
67
- ignoreRestArgs: boolean;
68
- })[];
69
- '@typescript-eslint/no-extra-non-null-assertion': string;
70
- '@typescript-eslint/no-extraneous-class': (string | {
71
- allowConstructorOnly: boolean;
72
- allowEmpty: boolean;
73
- allowStaticOnly: boolean;
74
- allowWithDecorator: boolean;
75
- })[];
76
- '@typescript-eslint/no-floating-promises': (string | {
77
- allowForKnownSafeCalls: never[];
78
- allowForKnownSafePromises: never[];
79
- checkThenables: boolean;
80
- ignoreIIFE: boolean;
81
- ignoreVoid: boolean;
82
- })[];
83
- '@typescript-eslint/no-for-in-array': string;
84
- '@typescript-eslint/no-import-type-side-effects': string;
85
- '@typescript-eslint/no-inferrable-types': string;
86
- '@typescript-eslint/no-invalid-void-type': (string | {
87
- allowInGenericTypeArguments: boolean;
88
- })[];
89
- '@typescript-eslint/no-meaningless-void-operator': (string | {
90
- checkNever: boolean;
91
- })[];
92
- '@typescript-eslint/no-misused-new': string;
93
- '@typescript-eslint/no-misused-promises': (string | {
94
- checksConditionals: boolean;
95
- checksVoidReturn: boolean;
96
- })[];
97
- '@typescript-eslint/no-mixed-enums': string;
98
- '@typescript-eslint/no-namespace': string;
99
- '@typescript-eslint/no-non-null-asserted-nullish-coalescing': string;
100
- '@typescript-eslint/no-non-null-asserted-optional-chain': string;
101
- '@typescript-eslint/no-non-null-assertion': string;
102
- '@typescript-eslint/no-redundant-type-constituents': string;
103
- '@typescript-eslint/no-unnecessary-type-parameters': string;
104
- '@typescript-eslint/no-require-imports': (string | {
105
- allow: never[];
106
- })[];
107
- '@typescript-eslint/no-restricted-types': (string | {
108
- types: {
109
- object: {
110
- message: string;
111
- suggest: string[];
112
- };
113
- };
114
- })[];
115
- '@typescript-eslint/no-this-alias': string;
116
- '@typescript-eslint/no-type-alias': string;
117
- '@typescript-eslint/no-unnecessary-boolean-literal-compare': (string | {
118
- allowComparingNullableBooleansToTrue: boolean;
119
- allowComparingNullableBooleansToFalse: boolean;
120
- })[];
121
- '@typescript-eslint/no-unnecessary-condition': (string | {
122
- allowConstantLoopConditions: boolean;
123
- allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing: boolean;
124
- checkTypePredicates: boolean;
125
- })[];
126
- '@typescript-eslint/no-unnecessary-parameter-property-assignment': string;
127
- '@typescript-eslint/no-unnecessary-qualifier': string;
128
- '@typescript-eslint/no-unnecessary-template-expression': string;
129
- '@typescript-eslint/no-unnecessary-type-arguments': string;
130
- '@typescript-eslint/no-unnecessary-type-assertion': string;
131
- '@typescript-eslint/no-unnecessary-type-constraint': string;
132
- '@typescript-eslint/no-unsafe-argument': string;
133
- '@typescript-eslint/no-unsafe-assignment': string;
134
- '@typescript-eslint/no-unsafe-call': string;
135
- '@typescript-eslint/no-unsafe-declaration-merging': string;
136
- '@typescript-eslint/no-unsafe-enum-comparison': string;
137
- '@typescript-eslint/no-unsafe-function-type': string;
138
- '@typescript-eslint/no-unsafe-member-access': string;
139
- '@typescript-eslint/no-unsafe-return': string;
140
- '@typescript-eslint/no-unsafe-type-assertion': string;
141
- '@typescript-eslint/no-unsafe-unary-minus': string;
142
- '@typescript-eslint/no-useless-empty-export': string;
143
- '@typescript-eslint/no-useless-template-literal': string;
144
- '@typescript-eslint/no-var-requires': (string | {
145
- allow: never[];
146
- })[];
147
- '@typescript-eslint/no-wrapper-object-types': string;
148
- '@typescript-eslint/non-nullable-type-assertion-style': string;
149
- '@typescript-eslint/parameter-properties': (string | {
150
- prefer: string;
151
- })[];
152
- '@typescript-eslint/prefer-as-const': string;
153
- '@typescript-eslint/prefer-enum-initializers': string;
154
- '@typescript-eslint/prefer-find': string;
155
- '@typescript-eslint/prefer-for-of': string;
156
- '@typescript-eslint/prefer-function-type': string;
157
- '@typescript-eslint/prefer-includes': string;
158
- '@typescript-eslint/prefer-literal-enum-member': (string | {
159
- allowBitwiseExpressions: boolean;
160
- })[];
161
- '@typescript-eslint/prefer-namespace-keyword': string;
162
- '@typescript-eslint/prefer-nullish-coalescing': (string | {
163
- ignoreBooleanCoercion: boolean;
164
- ignoreTernaryTests: boolean;
165
- ignoreConditionalTests: boolean;
166
- ignoreMixedLogicalExpressions: boolean;
167
- ignorePrimitives: {
168
- bigint: boolean;
169
- boolean: boolean;
170
- number: boolean;
171
- string: boolean;
172
- };
173
- })[];
174
- '@typescript-eslint/prefer-optional-chain': (string | {
175
- checkAny: boolean;
176
- checkUnknown: boolean;
177
- checkString: boolean;
178
- checkNumber: boolean;
179
- checkBoolean: boolean;
180
- checkBigInt: boolean;
181
- requireNullish: boolean;
182
- })[];
183
- '@typescript-eslint/prefer-readonly': string;
184
- '@typescript-eslint/prefer-readonly-parameter-types': string;
185
- '@typescript-eslint/prefer-reduce-type-parameter': string;
186
- '@typescript-eslint/prefer-regexp-exec': string;
187
- '@typescript-eslint/prefer-return-this-type': string;
188
- '@typescript-eslint/prefer-string-starts-ends-with': (string | {
189
- allowSingleElementEquality: string;
190
- })[];
191
- '@typescript-eslint/prefer-ts-expect-error': string;
192
- '@typescript-eslint/promise-function-async': (string | {
193
- checkArrowFunctions: boolean;
194
- })[];
195
- '@typescript-eslint/require-array-sort-compare': (string | {
196
- ignoreStringArrays: boolean;
197
- })[];
198
- '@typescript-eslint/restrict-plus-operands': (string | {
199
- allowAny: boolean;
200
- allowBoolean: boolean;
201
- allowNullish: boolean;
202
- allowNumberAndString: boolean;
203
- allowRegExp: boolean;
204
- skipCompoundAssignments: boolean;
205
- })[];
206
- '@typescript-eslint/restrict-template-expressions': (string | {
207
- allowAny: boolean;
208
- allowArray: boolean;
209
- allowBoolean: boolean;
210
- allowNullish: boolean;
211
- allowNumber: boolean;
212
- allowRegExp: boolean;
213
- allowNever: boolean;
214
- })[];
215
- '@typescript-eslint/sort-type-constituents': string;
216
- '@typescript-eslint/strict-boolean-expressions': (string | {
217
- allowString: boolean;
218
- allowNumber: boolean;
219
- allowNullableEnum: boolean;
220
- allowNullableObject: boolean;
221
- allowNullableBoolean: boolean;
222
- allowNullableString: boolean;
223
- allowNullableNumber: boolean;
224
- allowAny: boolean;
225
- })[];
226
- '@typescript-eslint/switch-exhaustiveness-check': (string | {
227
- allowDefaultCaseForExhaustiveSwitch: boolean;
228
- requireDefaultForNonUnion: boolean;
229
- })[];
230
- '@typescript-eslint/triple-slash-reference': (string | {
231
- path: string;
232
- types: string;
233
- lib: string;
234
- })[];
235
- '@typescript-eslint/type-annotation-spacing': string;
236
- '@typescript-eslint/typedef': (string | {
237
- arrayDestructuring: boolean;
238
- arrowParameter: boolean;
239
- memberVariableDeclaration: boolean;
240
- objectDestructuring: boolean;
241
- parameter: boolean;
242
- propertyDeclaration: boolean;
243
- variableDeclaration: boolean;
244
- variableDeclarationIgnoreFunction: boolean;
245
- })[];
246
- '@typescript-eslint/unbound-method': (string | {
247
- ignoreStatic: boolean;
248
- })[];
249
- '@typescript-eslint/unified-signatures': (string | {
250
- ignoreDifferentlyNamedParameters: boolean;
251
- })[];
252
- '@typescript-eslint/use-unknown-in-catch-callback-variable': string;
253
- };
@@ -1,319 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.supportedRules = void 0;
4
- const typescript_eslint_naming_convention_1 = require("./rules/typescript-eslint-naming-convention");
5
- exports.supportedRules = {
6
- '@typescript-eslint/adjacent-overload-signatures': 'error',
7
- '@typescript-eslint/array-type': ['warn', {
8
- default: 'array',
9
- readonly: 'array',
10
- }],
11
- '@typescript-eslint/await-thenable': 'error',
12
- '@typescript-eslint/ban-ts-comment': 'error',
13
- '@typescript-eslint/ban-tslint-comment': 'warn',
14
- '@typescript-eslint/ban-types': 'off',
15
- '@typescript-eslint/class-literal-property-style': 'off',
16
- '@typescript-eslint/consistent-generic-constructors': ['warn', 'type-annotation'],
17
- '@typescript-eslint/consistent-indexed-object-style': ['warn', 'record'],
18
- '@typescript-eslint/consistent-type-assertions': ['error', {
19
- assertionStyle: 'as',
20
- objectLiteralTypeAssertions: 'allow',
21
- }],
22
- '@typescript-eslint/consistent-type-definitions': ['warn', 'interface'],
23
- '@typescript-eslint/consistent-type-exports': ['off', {
24
- fixMixedExportsWithInlineTypeSpecifier: true,
25
- }],
26
- '@typescript-eslint/consistent-type-imports': ['warn', {
27
- prefer: 'no-type-imports',
28
- disallowTypeAnnotations: true,
29
- }],
30
- '@typescript-eslint/explicit-function-return-type': ['error', {
31
- allowConciseArrowFunctionExpressionsStartingWithVoid: true,
32
- allowDirectConstAssertionInArrowFunctions: true,
33
- allowExpressions: false,
34
- allowFunctionsWithoutTypeParameters: false,
35
- allowHigherOrderFunctions: true,
36
- allowIIFEs: false,
37
- allowTypedFunctionExpressions: true,
38
- allowedNames: [],
39
- }],
40
- '@typescript-eslint/explicit-member-accessibility': 'warn',
41
- '@typescript-eslint/explicit-module-boundary-types': 'error',
42
- '@typescript-eslint/member-delimiter-style': 'off',
43
- '@typescript-eslint/member-ordering': ['error', {
44
- default: [
45
- 'signature',
46
- 'call-signature',
47
- 'public-static-field',
48
- 'public-abstract-field',
49
- 'public-decorated-field',
50
- 'public-instance-field',
51
- 'protected-static-field',
52
- 'protected-abstract-field',
53
- 'protected-decorated-field',
54
- 'protected-instance-field',
55
- 'private-static-field',
56
- '#private-static-field',
57
- 'private-decorated-field',
58
- 'private-instance-field',
59
- '#private-instance-field',
60
- 'field',
61
- 'static-initialization',
62
- 'constructor',
63
- 'public-static-method',
64
- 'public-static-set',
65
- 'public-static-get',
66
- 'public-abstract-method',
67
- 'public-abstract-set',
68
- 'public-abstract-get',
69
- 'public-decorated-method',
70
- 'public-decorated-set',
71
- 'public-decorated-get',
72
- 'public-instance-method',
73
- 'public-instance-set',
74
- 'public-instance-get',
75
- 'protected-static-method',
76
- 'protected-static-set',
77
- 'protected-static-get',
78
- 'protected-abstract-method',
79
- 'protected-abstract-set',
80
- 'protected-abstract-get',
81
- 'protected-decorated-method',
82
- 'protected-decorated-set',
83
- 'protected-decorated-get',
84
- 'protected-instance-method',
85
- 'protected-instance-set',
86
- 'protected-instance-get',
87
- 'private-static-method',
88
- '#private-static-method',
89
- 'private-static-set',
90
- 'private-static-get',
91
- '#private-static-set',
92
- '#private-static-get',
93
- 'private-decorated-method',
94
- 'private-decorated-set',
95
- 'private-decorated-get',
96
- 'private-instance-method',
97
- '#private-instance-method',
98
- 'private-instance-set',
99
- 'private-instance-get',
100
- '#private-instance-set',
101
- '#private-instance-get',
102
- 'method',
103
- ],
104
- }],
105
- '@typescript-eslint/method-signature-style': ['warn', 'property'],
106
- '@typescript-eslint/naming-convention': ['error', ...(0, typescript_eslint_naming_convention_1.typescriptEslintNamingConvention)()],
107
- '@typescript-eslint/no-array-delete': 'error',
108
- '@typescript-eslint/no-base-to-string': 'error',
109
- '@typescript-eslint/no-confusing-non-null-assertion': 'warn',
110
- '@typescript-eslint/no-confusing-void-expression': ['warn', {
111
- ignoreArrowShorthand: true,
112
- ignoreVoidOperator: false,
113
- }],
114
- '@typescript-eslint/no-deprecated': 'error',
115
- '@typescript-eslint/no-duplicate-enum-values': 'error',
116
- '@typescript-eslint/no-duplicate-type-constituents': ['error', {
117
- ignoreIntersections: false,
118
- ignoreUnions: false,
119
- }],
120
- '@typescript-eslint/no-dynamic-delete': 'warn',
121
- '@typescript-eslint/no-empty-interface': ['off', {
122
- allowSingleExtends: true,
123
- }],
124
- '@typescript-eslint/no-empty-object-type': ['error', {
125
- allowInterfaces: 'always',
126
- allowObjectTypes: 'never',
127
- }],
128
- '@typescript-eslint/no-explicit-any': ['error', {
129
- fixToUnknown: false,
130
- ignoreRestArgs: false,
131
- }],
132
- '@typescript-eslint/no-extra-non-null-assertion': 'warn',
133
- '@typescript-eslint/no-extraneous-class': ['error', {
134
- allowConstructorOnly: false,
135
- allowEmpty: false,
136
- allowStaticOnly: false,
137
- allowWithDecorator: true,
138
- }],
139
- '@typescript-eslint/no-floating-promises': ['error', {
140
- allowForKnownSafeCalls: [],
141
- allowForKnownSafePromises: [],
142
- checkThenables: true,
143
- ignoreIIFE: false,
144
- ignoreVoid: true,
145
- }],
146
- '@typescript-eslint/no-for-in-array': 'error',
147
- '@typescript-eslint/no-import-type-side-effects': 'warn',
148
- '@typescript-eslint/no-inferrable-types': 'off',
149
- '@typescript-eslint/no-invalid-void-type': ['error', {
150
- allowInGenericTypeArguments: true,
151
- }],
152
- '@typescript-eslint/no-meaningless-void-operator': ['warn', {
153
- checkNever: true,
154
- }],
155
- '@typescript-eslint/no-misused-new': 'error',
156
- '@typescript-eslint/no-misused-promises': ['error', {
157
- checksConditionals: true,
158
- checksVoidReturn: true,
159
- }],
160
- '@typescript-eslint/no-mixed-enums': 'error',
161
- '@typescript-eslint/no-namespace': 'error',
162
- '@typescript-eslint/no-non-null-asserted-nullish-coalescing': 'error',
163
- '@typescript-eslint/no-non-null-asserted-optional-chain': 'error',
164
- '@typescript-eslint/no-non-null-assertion': 'error',
165
- '@typescript-eslint/no-redundant-type-constituents': 'error',
166
- '@typescript-eslint/no-unnecessary-type-parameters': 'error',
167
- '@typescript-eslint/no-require-imports': ['error', {
168
- allow: [],
169
- }],
170
- '@typescript-eslint/no-restricted-types': ['error', {
171
- types: {
172
- object: {
173
- message: [
174
- 'The `object` type is currently hard to use',
175
- '(https://github.com/microsoft/TypeScript/issues/21732).',
176
- ].join(' '),
177
- suggest: ['Record<string, unknown>'],
178
- },
179
- },
180
- }],
181
- '@typescript-eslint/no-this-alias': 'error',
182
- '@typescript-eslint/no-type-alias': 'off',
183
- '@typescript-eslint/no-unnecessary-boolean-literal-compare': ['warn', {
184
- allowComparingNullableBooleansToTrue: true,
185
- allowComparingNullableBooleansToFalse: true,
186
- }],
187
- '@typescript-eslint/no-unnecessary-condition': ['warn', {
188
- allowConstantLoopConditions: false,
189
- allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing: false,
190
- checkTypePredicates: true,
191
- }],
192
- '@typescript-eslint/no-unnecessary-parameter-property-assignment': 'error',
193
- '@typescript-eslint/no-unnecessary-qualifier': 'warn',
194
- '@typescript-eslint/no-unnecessary-template-expression': 'error',
195
- '@typescript-eslint/no-unnecessary-type-arguments': 'warn',
196
- '@typescript-eslint/no-unnecessary-type-assertion': 'warn',
197
- '@typescript-eslint/no-unnecessary-type-constraint': 'warn',
198
- '@typescript-eslint/no-unsafe-argument': 'error',
199
- '@typescript-eslint/no-unsafe-assignment': 'error',
200
- '@typescript-eslint/no-unsafe-call': 'error',
201
- '@typescript-eslint/no-unsafe-declaration-merging': 'error',
202
- '@typescript-eslint/no-unsafe-enum-comparison': 'error',
203
- '@typescript-eslint/no-unsafe-function-type': 'warn',
204
- '@typescript-eslint/no-unsafe-member-access': 'error',
205
- '@typescript-eslint/no-unsafe-return': 'error',
206
- '@typescript-eslint/no-unsafe-type-assertion': 'off',
207
- '@typescript-eslint/no-unsafe-unary-minus': 'error',
208
- '@typescript-eslint/no-useless-empty-export': 'warn',
209
- '@typescript-eslint/no-useless-template-literal': 'off',
210
- '@typescript-eslint/no-var-requires': ['error', {
211
- allow: [],
212
- }],
213
- '@typescript-eslint/no-wrapper-object-types': 'warn',
214
- '@typescript-eslint/non-nullable-type-assertion-style': 'error',
215
- '@typescript-eslint/parameter-properties': ['error', {
216
- prefer: 'parameter-property',
217
- }],
218
- '@typescript-eslint/prefer-as-const': 'warn',
219
- '@typescript-eslint/prefer-enum-initializers': 'error',
220
- '@typescript-eslint/prefer-find': 'error',
221
- '@typescript-eslint/prefer-for-of': 'error',
222
- '@typescript-eslint/prefer-function-type': 'warn',
223
- '@typescript-eslint/prefer-includes': 'warn',
224
- '@typescript-eslint/prefer-literal-enum-member': ['error', {
225
- allowBitwiseExpressions: true,
226
- }],
227
- '@typescript-eslint/prefer-namespace-keyword': 'warn',
228
- '@typescript-eslint/prefer-nullish-coalescing': ['error', {
229
- ignoreBooleanCoercion: false,
230
- ignoreTernaryTests: false,
231
- ignoreConditionalTests: true,
232
- ignoreMixedLogicalExpressions: true,
233
- ignorePrimitives: {
234
- bigint: false,
235
- boolean: false,
236
- number: false,
237
- string: false,
238
- },
239
- }],
240
- '@typescript-eslint/prefer-optional-chain': ['error', {
241
- checkAny: true,
242
- checkUnknown: true,
243
- checkString: true,
244
- checkNumber: true,
245
- checkBoolean: true,
246
- checkBigInt: true,
247
- requireNullish: false,
248
- }],
249
- '@typescript-eslint/prefer-readonly': 'warn',
250
- '@typescript-eslint/prefer-readonly-parameter-types': 'off',
251
- '@typescript-eslint/prefer-reduce-type-parameter': 'warn',
252
- '@typescript-eslint/prefer-regexp-exec': 'warn',
253
- '@typescript-eslint/prefer-return-this-type': 'warn',
254
- '@typescript-eslint/prefer-string-starts-ends-with': ['warn', {
255
- allowSingleElementEquality: 'never',
256
- }],
257
- '@typescript-eslint/prefer-ts-expect-error': 'off',
258
- '@typescript-eslint/promise-function-async': ['warn', {
259
- checkArrowFunctions: false,
260
- }],
261
- '@typescript-eslint/require-array-sort-compare': ['error', {
262
- ignoreStringArrays: true,
263
- }],
264
- '@typescript-eslint/restrict-plus-operands': ['error', {
265
- allowAny: false,
266
- allowBoolean: false,
267
- allowNullish: false,
268
- allowNumberAndString: false,
269
- allowRegExp: false,
270
- skipCompoundAssignments: false,
271
- }],
272
- '@typescript-eslint/restrict-template-expressions': ['error', {
273
- allowAny: false,
274
- allowArray: false,
275
- allowBoolean: false,
276
- allowNullish: false,
277
- allowNumber: false,
278
- allowRegExp: false,
279
- allowNever: false,
280
- }],
281
- '@typescript-eslint/sort-type-constituents': 'off',
282
- '@typescript-eslint/strict-boolean-expressions': ['error', {
283
- allowString: false,
284
- allowNumber: false,
285
- allowNullableEnum: false,
286
- allowNullableObject: true,
287
- allowNullableBoolean: false,
288
- allowNullableString: false,
289
- allowNullableNumber: false,
290
- allowAny: false,
291
- }],
292
- '@typescript-eslint/switch-exhaustiveness-check': ['error', {
293
- allowDefaultCaseForExhaustiveSwitch: false,
294
- requireDefaultForNonUnion: true,
295
- }],
296
- '@typescript-eslint/triple-slash-reference': ['error', {
297
- path: 'never',
298
- types: 'always',
299
- lib: 'never',
300
- }],
301
- '@typescript-eslint/type-annotation-spacing': 'off',
302
- '@typescript-eslint/typedef': ['error', {
303
- arrayDestructuring: false,
304
- arrowParameter: false,
305
- memberVariableDeclaration: true,
306
- objectDestructuring: false,
307
- parameter: true,
308
- propertyDeclaration: true,
309
- variableDeclaration: false,
310
- variableDeclarationIgnoreFunction: false,
311
- }],
312
- '@typescript-eslint/unbound-method': ['error', {
313
- ignoreStatic: false,
314
- }],
315
- '@typescript-eslint/unified-signatures': ['error', {
316
- ignoreDifferentlyNamedParameters: true,
317
- }],
318
- '@typescript-eslint/use-unknown-in-catch-callback-variable': 'error',
319
- };