@perfective/eslint-config 0.30.0 → 0.31.1

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 (179) hide show
  1. package/README.adoc +185 -60
  2. package/README.md +53 -40
  3. package/config/array-func/array-func-config.d.ts +2 -0
  4. package/config/array-func/array-func-config.js +16 -0
  5. package/config/cypress/cypress-config.d.ts +10 -0
  6. package/config/cypress/cypress-config.js +38 -0
  7. package/config/cypress/index.d.ts +1 -0
  8. package/config/cypress/index.js +1 -0
  9. package/config/eslint/eslint-config.d.ts +2 -0
  10. package/config/eslint/eslint-config.js +8 -0
  11. package/config/eslint/layout-formatting-rules.d.ts +2 -0
  12. package/config/eslint/possible-problems-rules.d.ts +2 -0
  13. package/config/eslint/suggestions-rules.d.ts +2 -0
  14. package/config/eslint-comments/best-practices-rules.d.ts +2 -0
  15. package/config/eslint-comments/eslint-comments-config.d.ts +2 -0
  16. package/config/eslint-comments/eslint-comments-config.js +11 -0
  17. package/config/eslint-comments/stylistic-issues-rules.d.ts +2 -0
  18. package/config/import/helpful-warnings-rules.d.ts +2 -0
  19. package/config/import/import-config.d.ts +4 -0
  20. package/config/import/import-config.js +46 -0
  21. package/config/import/index.d.ts +1 -0
  22. package/config/import/index.js +1 -0
  23. package/config/import/module-systems-rules.d.ts +2 -0
  24. package/config/import/rules/no-extraneous-dependencies.d.ts +15 -0
  25. package/config/import/rules/no-extraneous-dependencies.js +8 -0
  26. package/config/import/static-analysis-rules.d.ts +2 -0
  27. package/config/import/style-guide-rules.d.ts +2 -0
  28. package/config/jest/index.d.ts +1 -0
  29. package/config/jest/index.js +1 -0
  30. package/config/jest/jest-config.d.ts +8 -0
  31. package/config/jest/jest-config.js +128 -0
  32. package/config/jest/typescript-eslint-jest-rules.d.ts +2 -0
  33. package/config/jest-dom/index.d.ts +1 -0
  34. package/config/jest-dom/index.js +1 -0
  35. package/config/jest-dom/jest-dom-config.d.ts +8 -0
  36. package/config/jest-dom/jest-dom-config.js +23 -0
  37. package/config/jsdoc/jsdoc-config.d.ts +3 -0
  38. package/config/jsdoc/jsdoc-config.js +179 -0
  39. package/config/node/node-config.d.ts +2 -0
  40. package/config/node/node-config.js +66 -0
  41. package/config/perfective-eslint-config.d.ts +6 -0
  42. package/config/perfective-eslint-config.js +45 -0
  43. package/config/prefer-arrow/prefer-arrow-config.d.ts +2 -0
  44. package/config/prefer-arrow/prefer-arrow-config.js +16 -0
  45. package/config/promise/promise-config.d.ts +2 -0
  46. package/config/promise/promise-config.js +37 -0
  47. package/config/rxjs/index.d.ts +1 -0
  48. package/config/rxjs/index.js +1 -0
  49. package/config/rxjs/rxjs-config.d.ts +8 -0
  50. package/config/rxjs/rxjs-config.js +67 -0
  51. package/config/security/security-config.d.ts +2 -0
  52. package/config/security/security-config.js +24 -0
  53. package/config/simple-import-sort/index.d.ts +1 -0
  54. package/config/simple-import-sort/index.js +1 -0
  55. package/{rules → config}/simple-import-sort/rules/imports.d.ts +11 -2
  56. package/config/simple-import-sort/simple-import-sort-config.d.ts +2 -0
  57. package/config/simple-import-sort/simple-import-sort-config.js +13 -0
  58. package/config/stylistic/js/stylistic-js-config.d.ts +2 -0
  59. package/config/stylistic/js/stylistic-js-config.js +200 -0
  60. package/config/stylistic/jsx/stylistic-jsx-config.d.ts +2 -0
  61. package/config/stylistic/jsx/stylistic-jsx-config.js +87 -0
  62. package/config/stylistic/plus/stylistic-plus-config.d.ts +2 -0
  63. package/config/stylistic/plus/stylistic-plus-config.js +16 -0
  64. package/config/stylistic/ts/stylistic-ts-config.d.ts +2 -0
  65. package/config/stylistic/ts/stylistic-ts-config.js +141 -0
  66. package/config/testing-library/index.d.ts +1 -0
  67. package/config/testing-library/index.js +1 -0
  68. package/config/testing-library/testing-library-config.d.ts +8 -0
  69. package/config/testing-library/testing-library-config.js +45 -0
  70. package/config/typescript-eslint/extension-rules.d.ts +2 -0
  71. package/config/typescript-eslint/index.d.ts +1 -0
  72. package/config/typescript-eslint/index.js +1 -0
  73. package/{rules → config}/typescript-eslint/rules/typescript-eslint-naming-convention.d.ts +35 -1
  74. package/config/typescript-eslint/supported-rules.d.ts +2 -0
  75. package/{rules → config}/typescript-eslint/supported-rules.js +7 -3
  76. package/config/typescript-eslint/typescript-eslint-config.d.ts +2 -0
  77. package/config/typescript-eslint/typescript-eslint-config.js +15 -0
  78. package/config/unicorn/index.d.ts +1 -0
  79. package/config/unicorn/index.js +1 -0
  80. package/{rules → config}/unicorn/rules/prevent-abbreviations.d.ts +14 -2
  81. package/config/unicorn/unicorn-config.d.ts +2 -0
  82. package/config/unicorn/unicorn-config.js +185 -0
  83. package/index.d.ts +5 -1766
  84. package/index.js +5 -102
  85. package/linter/glob.d.ts +59 -0
  86. package/linter/glob.js +8 -0
  87. package/linter/language-options.d.ts +25 -0
  88. package/linter/language-options.js +45 -0
  89. package/linter/linter-config.d.ts +13 -0
  90. package/linter/linter-config.js +6 -0
  91. package/{config → linter}/node.d.ts +3 -1
  92. package/{config → linter}/plugin.d.ts +6 -2
  93. package/package.json +38 -40
  94. package/config.d.ts +0 -1
  95. package/config.js +0 -1
  96. package/cypress.d.ts +0 -6
  97. package/cypress.js +0 -31
  98. package/jest-dom.d.ts +0 -1
  99. package/jest-dom.js +0 -8
  100. package/jest.d.ts +0 -7
  101. package/jest.js +0 -29
  102. package/rules/array-func/index.d.ts +0 -13
  103. package/rules/array-func/index.js +0 -14
  104. package/rules/cypress/index.d.ts +0 -29
  105. package/rules/cypress/index.js +0 -23
  106. package/rules/eslint/index.d.ts +0 -339
  107. package/rules/eslint/index.js +0 -6
  108. package/rules/eslint/layout-formatting.d.ts +0 -64
  109. package/rules/eslint/possible-problems.d.ts +0 -96
  110. package/rules/eslint/suggestions.d.ts +0 -181
  111. package/rules/eslint-comments/best-practices.d.ts +0 -8
  112. package/rules/eslint-comments/index.d.ts +0 -20
  113. package/rules/eslint-comments/index.js +0 -9
  114. package/rules/eslint-comments/stylistic-issues.d.ts +0 -9
  115. package/rules/import/helpful-warnings.d.ts +0 -10
  116. package/rules/import/index.d.ts +0 -78
  117. package/rules/import/index.js +0 -11
  118. package/rules/import/module-systems.d.ts +0 -10
  119. package/rules/import/rules/no-extraneous-dependencies.d.ts +0 -14
  120. package/rules/import/rules/no-extraneous-dependencies.js +0 -23
  121. package/rules/import/static-analysis.d.ts +0 -26
  122. package/rules/import/style-guide.d.ts +0 -33
  123. package/rules/jest/index.d.ts +0 -124
  124. package/rules/jest/index.js +0 -98
  125. package/rules/jest/typescript-eslint.d.ts +0 -5
  126. package/rules/jest-dom/index.d.ts +0 -32
  127. package/rules/jest-dom/index.js +0 -19
  128. package/rules/jsdoc/index.d.ts +0 -134
  129. package/rules/jsdoc/index.js +0 -161
  130. package/rules/n/index.d.ts +0 -66
  131. package/rules/n/index.js +0 -64
  132. package/rules/prefer-arrow/index.d.ts +0 -13
  133. package/rules/prefer-arrow/index.js +0 -14
  134. package/rules/promise/index.d.ts +0 -34
  135. package/rules/promise/index.js +0 -35
  136. package/rules/rxjs/index.d.ts +0 -60
  137. package/rules/rxjs/index.js +0 -60
  138. package/rules/security/index.d.ts +0 -21
  139. package/rules/security/index.js +0 -22
  140. package/rules/simple-import-sort/index.d.ts +0 -10
  141. package/rules/simple-import-sort/index.js +0 -12
  142. package/rules/stylistic/js/index.d.ts +0 -204
  143. package/rules/stylistic/js/index.js +0 -198
  144. package/rules/stylistic/jsx/index.d.ts +0 -87
  145. package/rules/stylistic/jsx/index.js +0 -81
  146. package/rules/stylistic/plus/index.d.ts +0 -18
  147. package/rules/stylistic/plus/index.js +0 -14
  148. package/rules/stylistic/ts/index.d.ts +0 -141
  149. package/rules/stylistic/ts/index.js +0 -135
  150. package/rules/testing-library/index.d.ts +0 -62
  151. package/rules/testing-library/index.js +0 -41
  152. package/rules/typescript-eslint/extension-rules.d.ts +0 -113
  153. package/rules/typescript-eslint/index.d.ts +0 -371
  154. package/rules/typescript-eslint/index.js +0 -9
  155. package/rules/typescript-eslint/supported-rules.d.ts +0 -255
  156. package/rules/unicorn/index.d.ts +0 -183
  157. package/rules/unicorn/index.js +0 -178
  158. package/rules.d.ts +0 -4
  159. package/rules.js +0 -4
  160. package/rxjs.d.ts +0 -6
  161. package/rxjs.js +0 -22
  162. package/testing-library.d.ts +0 -1
  163. package/testing-library.js +0 -8
  164. /package/{rules/eslint/layout-formatting.js → config/eslint/layout-formatting-rules.js} +0 -0
  165. /package/{rules/eslint/possible-problems.js → config/eslint/possible-problems-rules.js} +0 -0
  166. /package/{rules/eslint/suggestions.js → config/eslint/suggestions-rules.js} +0 -0
  167. /package/{rules/eslint-comments/best-practices.js → config/eslint-comments/best-practices-rules.js} +0 -0
  168. /package/{rules/eslint-comments/stylistic-issues.js → config/eslint-comments/stylistic-issues-rules.js} +0 -0
  169. /package/{rules/import/helpful-warnings.js → config/import/helpful-warnings-rules.js} +0 -0
  170. /package/{rules/import/module-systems.js → config/import/module-systems-rules.js} +0 -0
  171. /package/{rules/import/static-analysis.js → config/import/static-analysis-rules.js} +0 -0
  172. /package/{rules/import/style-guide.js → config/import/style-guide-rules.js} +0 -0
  173. /package/{rules/jest/typescript-eslint.js → config/jest/typescript-eslint-jest-rules.js} +0 -0
  174. /package/{rules → config}/simple-import-sort/rules/imports.js +0 -0
  175. /package/{rules → config}/typescript-eslint/extension-rules.js +0 -0
  176. /package/{rules → config}/typescript-eslint/rules/typescript-eslint-naming-convention.js +0 -0
  177. /package/{rules → config}/unicorn/rules/prevent-abbreviations.js +0 -0
  178. /package/{config → linter}/node.js +0 -0
  179. /package/{config → linter}/plugin.js +0 -0
@@ -1,371 +0,0 @@
1
- export declare const typescriptEslintConfig: {
2
- plugins: {
3
- '@typescript-eslint': import("@typescript-eslint/utils/dist/ts-eslint").FlatConfig.Plugin;
4
- };
5
- rules: {
6
- 'block-spacing': string;
7
- '@typescript-eslint/block-spacing': string;
8
- 'brace-style': string;
9
- '@typescript-eslint/brace-style': string;
10
- 'class-methods-use-this': string;
11
- '@typescript-eslint/class-methods-use-this': string;
12
- 'comma-dangle': string;
13
- '@typescript-eslint/comma-dangle': string;
14
- 'comma-spacing': string;
15
- '@typescript-eslint/comma-spacing': string;
16
- 'consistent-return': string;
17
- '@typescript-eslint/consistent-return': string;
18
- 'default-param-last': string;
19
- '@typescript-eslint/default-param-last': string;
20
- 'dot-notation': string;
21
- '@typescript-eslint/dot-notation': (string | {
22
- allowKeywords: boolean;
23
- allowPrivateClassPropertyAccess: boolean;
24
- allowProtectedClassPropertyAccess: boolean;
25
- })[];
26
- 'func-call-spacing': string;
27
- '@typescript-eslint/func-call-spacing': string;
28
- indent: string;
29
- '@typescript-eslint/indent': string;
30
- 'init-declarations': string;
31
- '@typescript-eslint/init-declarations': string[];
32
- 'key-spacing': string;
33
- '@typescript-eslint/key-spacing': string;
34
- 'keyword-spacing': string;
35
- '@typescript-eslint/keyword-spacing': string;
36
- 'lines-around-comment': string;
37
- '@typescript-eslint/lines-around-comment': string;
38
- 'lines-between-class-members': string;
39
- '@typescript-eslint/lines-between-class-members': string;
40
- 'no-array-constructor': string;
41
- '@typescript-eslint/no-array-constructor': string;
42
- 'no-dupe-class-members': string;
43
- '@typescript-eslint/no-dupe-class-members': string;
44
- 'no-empty-function': string;
45
- '@typescript-eslint/no-empty-function': (string | {
46
- allow: string[];
47
- })[];
48
- 'no-extra-parens': string;
49
- '@typescript-eslint/no-extra-parens': string;
50
- 'no-extra-semi': string;
51
- '@typescript-eslint/no-extra-semi': string;
52
- 'no-implied-eval': string;
53
- '@typescript-eslint/no-implied-eval': string;
54
- 'no-invalid-this': string;
55
- '@typescript-eslint/no-invalid-this': string;
56
- 'no-loop-func': string;
57
- '@typescript-eslint/no-loop-func': string;
58
- '@typescript-eslint/no-loss-of-precision': string;
59
- 'no-magic-numbers': string;
60
- '@typescript-eslint/no-magic-numbers': string;
61
- 'no-redeclare': string;
62
- '@typescript-eslint/no-redeclare': string;
63
- 'no-restricted-imports': string;
64
- '@typescript-eslint/no-restricted-imports': {}[];
65
- 'no-shadow': string;
66
- '@typescript-eslint/no-shadow': string;
67
- 'no-throw-literal': string;
68
- '@typescript-eslint/only-throw-error': (string | {
69
- allowThrowingAny: boolean;
70
- allowThrowingUnknown: boolean;
71
- })[];
72
- 'no-unused-expressions': string;
73
- '@typescript-eslint/no-unused-expressions': string;
74
- 'no-unused-vars': string;
75
- '@typescript-eslint/no-unused-vars': (string | {
76
- args: string;
77
- argsIgnorePattern: string;
78
- caughtErrors: string;
79
- destructuredArrayIgnorePattern: string;
80
- ignoreRestSiblings: boolean;
81
- vars: string;
82
- })[];
83
- 'no-use-before-define': string;
84
- '@typescript-eslint/no-use-before-define': (string | {
85
- functions: boolean;
86
- classes: boolean;
87
- variables: boolean;
88
- allowNamedExports: boolean;
89
- enums: boolean;
90
- typedefs: boolean;
91
- ignoreTypeReferences: boolean;
92
- })[];
93
- 'no-useless-constructor': string;
94
- '@typescript-eslint/no-useless-constructor': string;
95
- 'object-curly-spacing': string;
96
- '@typescript-eslint/object-curly-spacing': string;
97
- 'padding-line-between-statements': string;
98
- '@typescript-eslint/padding-line-between-statements': string;
99
- 'prefer-destructuring': string;
100
- '@typescript-eslint/prefer-destructuring': string;
101
- 'prefer-promise-reject-errors': string;
102
- '@typescript-eslint/prefer-promise-reject-errors': string;
103
- quotes: string;
104
- '@typescript-eslint/quotes': string;
105
- 'require-await': string;
106
- '@typescript-eslint/require-await': string;
107
- 'no-return-await': string;
108
- '@typescript-eslint/return-await': string[];
109
- semi: string;
110
- '@typescript-eslint/semi': string;
111
- 'space-before-blocks': string;
112
- '@typescript-eslint/space-before-blocks': string;
113
- 'space-before-function-paren': string;
114
- '@typescript-eslint/space-before-function-paren': string;
115
- 'space-infix-ops': string;
116
- '@typescript-eslint/space-infix-ops': string;
117
- '@typescript-eslint/adjacent-overload-signatures': string;
118
- '@typescript-eslint/array-type': (string | {
119
- default: string;
120
- readonly: string;
121
- })[];
122
- '@typescript-eslint/await-thenable': string;
123
- '@typescript-eslint/ban-ts-comment': string;
124
- '@typescript-eslint/ban-tslint-comment': string;
125
- '@typescript-eslint/ban-types': string;
126
- '@typescript-eslint/class-literal-property-style': string;
127
- '@typescript-eslint/consistent-generic-constructors': string[];
128
- '@typescript-eslint/consistent-indexed-object-style': string[];
129
- '@typescript-eslint/consistent-type-assertions': (string | {
130
- assertionStyle: string;
131
- arrayLiteralTypeAssertions: string;
132
- objectLiteralTypeAssertions: string;
133
- })[];
134
- '@typescript-eslint/consistent-type-definitions': string[];
135
- '@typescript-eslint/consistent-type-exports': (string | {
136
- fixMixedExportsWithInlineTypeSpecifier: boolean;
137
- })[];
138
- '@typescript-eslint/consistent-type-imports': (string | {
139
- prefer: string;
140
- disallowTypeAnnotations: boolean;
141
- })[];
142
- '@typescript-eslint/explicit-function-return-type': (string | {
143
- allowConciseArrowFunctionExpressionsStartingWithVoid: boolean;
144
- allowDirectConstAssertionInArrowFunctions: boolean;
145
- allowExpressions: boolean;
146
- allowFunctionsWithoutTypeParameters: boolean;
147
- allowHigherOrderFunctions: boolean;
148
- allowIIFEs: boolean;
149
- allowTypedFunctionExpressions: boolean;
150
- allowedNames: never[];
151
- })[];
152
- '@typescript-eslint/explicit-member-accessibility': string;
153
- '@typescript-eslint/explicit-module-boundary-types': string;
154
- '@typescript-eslint/member-delimiter-style': string;
155
- '@typescript-eslint/member-ordering': (string | {
156
- default: string[];
157
- })[];
158
- '@typescript-eslint/method-signature-style': string[];
159
- '@typescript-eslint/naming-convention': (string | import("./rules/typescript-eslint-naming-convention").TypescriptEslintNamingConvention)[];
160
- '@typescript-eslint/no-array-delete': string;
161
- '@typescript-eslint/no-base-to-string': string;
162
- '@typescript-eslint/no-confusing-non-null-assertion': string;
163
- '@typescript-eslint/no-confusing-void-expression': (string | {
164
- ignoreArrowShorthand: boolean;
165
- ignoreVoidOperator: boolean;
166
- })[];
167
- '@typescript-eslint/no-deprecated': string;
168
- '@typescript-eslint/no-duplicate-enum-values': string;
169
- '@typescript-eslint/no-duplicate-type-constituents': (string | {
170
- ignoreIntersections: boolean;
171
- ignoreUnions: boolean;
172
- })[];
173
- '@typescript-eslint/no-dynamic-delete': string;
174
- '@typescript-eslint/no-empty-interface': (string | {
175
- allowSingleExtends: boolean;
176
- })[];
177
- '@typescript-eslint/no-empty-object-type': (string | {
178
- allowInterfaces: string;
179
- allowObjectTypes: string;
180
- })[];
181
- '@typescript-eslint/no-explicit-any': (string | {
182
- fixToUnknown: boolean;
183
- ignoreRestArgs: boolean;
184
- })[];
185
- '@typescript-eslint/no-extra-non-null-assertion': string;
186
- '@typescript-eslint/no-extraneous-class': (string | {
187
- allowConstructorOnly: boolean;
188
- allowEmpty: boolean;
189
- allowStaticOnly: boolean;
190
- allowWithDecorator: boolean;
191
- })[];
192
- '@typescript-eslint/no-floating-promises': (string | {
193
- allowForKnownSafeCalls: never[];
194
- allowForKnownSafePromises: never[];
195
- checkThenables: boolean;
196
- ignoreIIFE: boolean;
197
- ignoreVoid: boolean;
198
- })[];
199
- '@typescript-eslint/no-for-in-array': string;
200
- '@typescript-eslint/no-import-type-side-effects': string;
201
- '@typescript-eslint/no-inferrable-types': string;
202
- '@typescript-eslint/no-invalid-void-type': (string | {
203
- allowInGenericTypeArguments: boolean;
204
- })[];
205
- '@typescript-eslint/no-meaningless-void-operator': (string | {
206
- checkNever: boolean;
207
- })[];
208
- '@typescript-eslint/no-misused-new': string;
209
- '@typescript-eslint/no-misused-promises': (string | {
210
- checksConditionals: boolean;
211
- checksVoidReturn: boolean;
212
- })[];
213
- '@typescript-eslint/no-misused-spread': string;
214
- '@typescript-eslint/no-mixed-enums': string;
215
- '@typescript-eslint/no-namespace': string;
216
- '@typescript-eslint/no-non-null-asserted-nullish-coalescing': string;
217
- '@typescript-eslint/no-non-null-asserted-optional-chain': string;
218
- '@typescript-eslint/no-non-null-assertion': string;
219
- '@typescript-eslint/no-redundant-type-constituents': string;
220
- '@typescript-eslint/no-unnecessary-type-parameters': string;
221
- '@typescript-eslint/no-require-imports': (string | {
222
- allow: never[];
223
- })[];
224
- '@typescript-eslint/no-restricted-types': (string | {
225
- types: {
226
- object: {
227
- message: string;
228
- suggest: string[];
229
- };
230
- };
231
- })[];
232
- '@typescript-eslint/no-this-alias': string;
233
- '@typescript-eslint/no-type-alias': string;
234
- '@typescript-eslint/no-unnecessary-boolean-literal-compare': (string | {
235
- allowComparingNullableBooleansToTrue: boolean;
236
- allowComparingNullableBooleansToFalse: boolean;
237
- })[];
238
- '@typescript-eslint/no-unnecessary-condition': (string | {
239
- allowConstantLoopConditions: boolean;
240
- allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing: boolean;
241
- checkTypePredicates: boolean;
242
- })[];
243
- '@typescript-eslint/no-unnecessary-parameter-property-assignment': string;
244
- '@typescript-eslint/no-unnecessary-qualifier': string;
245
- '@typescript-eslint/no-unnecessary-template-expression': string;
246
- '@typescript-eslint/no-unnecessary-type-arguments': string;
247
- '@typescript-eslint/no-unnecessary-type-assertion': string;
248
- '@typescript-eslint/no-unnecessary-type-constraint': string;
249
- '@typescript-eslint/no-unsafe-argument': string;
250
- '@typescript-eslint/no-unsafe-assignment': string;
251
- '@typescript-eslint/no-unsafe-call': string;
252
- '@typescript-eslint/no-unsafe-declaration-merging': string;
253
- '@typescript-eslint/no-unsafe-enum-comparison': string;
254
- '@typescript-eslint/no-unsafe-function-type': string;
255
- '@typescript-eslint/no-unsafe-member-access': string;
256
- '@typescript-eslint/no-unsafe-return': string;
257
- '@typescript-eslint/no-unsafe-type-assertion': string;
258
- '@typescript-eslint/no-unsafe-unary-minus': string;
259
- '@typescript-eslint/no-useless-empty-export': string;
260
- '@typescript-eslint/no-useless-template-literal': string;
261
- '@typescript-eslint/no-var-requires': (string | {
262
- allow: never[];
263
- })[];
264
- '@typescript-eslint/no-wrapper-object-types': string;
265
- '@typescript-eslint/non-nullable-type-assertion-style': string;
266
- '@typescript-eslint/parameter-properties': (string | {
267
- prefer: string;
268
- })[];
269
- '@typescript-eslint/prefer-as-const': string;
270
- '@typescript-eslint/prefer-enum-initializers': string;
271
- '@typescript-eslint/prefer-find': string;
272
- '@typescript-eslint/prefer-for-of': string;
273
- '@typescript-eslint/prefer-function-type': string;
274
- '@typescript-eslint/prefer-includes': string;
275
- '@typescript-eslint/prefer-literal-enum-member': (string | {
276
- allowBitwiseExpressions: boolean;
277
- })[];
278
- '@typescript-eslint/prefer-namespace-keyword': string;
279
- '@typescript-eslint/prefer-nullish-coalescing': (string | {
280
- ignoreBooleanCoercion: boolean;
281
- ignoreTernaryTests: boolean;
282
- ignoreConditionalTests: boolean;
283
- ignoreMixedLogicalExpressions: boolean;
284
- ignorePrimitives: {
285
- bigint: boolean;
286
- boolean: boolean;
287
- number: boolean;
288
- string: boolean;
289
- };
290
- })[];
291
- '@typescript-eslint/prefer-optional-chain': (string | {
292
- checkAny: boolean;
293
- checkUnknown: boolean;
294
- checkString: boolean;
295
- checkNumber: boolean;
296
- checkBoolean: boolean;
297
- checkBigInt: boolean;
298
- requireNullish: boolean;
299
- })[];
300
- '@typescript-eslint/prefer-readonly': string;
301
- '@typescript-eslint/prefer-readonly-parameter-types': string;
302
- '@typescript-eslint/prefer-reduce-type-parameter': string;
303
- '@typescript-eslint/prefer-regexp-exec': string;
304
- '@typescript-eslint/prefer-return-this-type': string;
305
- '@typescript-eslint/prefer-string-starts-ends-with': (string | {
306
- allowSingleElementEquality: string;
307
- })[];
308
- '@typescript-eslint/prefer-ts-expect-error': string;
309
- '@typescript-eslint/promise-function-async': (string | {
310
- checkArrowFunctions: boolean;
311
- })[];
312
- '@typescript-eslint/require-array-sort-compare': (string | {
313
- ignoreStringArrays: boolean;
314
- })[];
315
- '@typescript-eslint/restrict-plus-operands': (string | {
316
- allowAny: boolean;
317
- allowBoolean: boolean;
318
- allowNullish: boolean;
319
- allowNumberAndString: boolean;
320
- allowRegExp: boolean;
321
- skipCompoundAssignments: boolean;
322
- })[];
323
- '@typescript-eslint/restrict-template-expressions': (string | {
324
- allowAny: boolean;
325
- allowArray: boolean;
326
- allowBoolean: boolean;
327
- allowNullish: boolean;
328
- allowNumber: boolean;
329
- allowRegExp: boolean;
330
- allowNever: boolean;
331
- })[];
332
- '@typescript-eslint/sort-type-constituents': string;
333
- '@typescript-eslint/strict-boolean-expressions': (string | {
334
- allowString: boolean;
335
- allowNumber: boolean;
336
- allowNullableEnum: boolean;
337
- allowNullableObject: boolean;
338
- allowNullableBoolean: boolean;
339
- allowNullableString: boolean;
340
- allowNullableNumber: boolean;
341
- allowAny: boolean;
342
- })[];
343
- '@typescript-eslint/switch-exhaustiveness-check': (string | {
344
- allowDefaultCaseForExhaustiveSwitch: boolean;
345
- requireDefaultForNonUnion: boolean;
346
- })[];
347
- '@typescript-eslint/triple-slash-reference': (string | {
348
- path: string;
349
- types: string;
350
- lib: string;
351
- })[];
352
- '@typescript-eslint/type-annotation-spacing': string;
353
- '@typescript-eslint/typedef': (string | {
354
- arrayDestructuring: boolean;
355
- arrowParameter: boolean;
356
- memberVariableDeclaration: boolean;
357
- objectDestructuring: boolean;
358
- parameter: boolean;
359
- propertyDeclaration: boolean;
360
- variableDeclaration: boolean;
361
- variableDeclarationIgnoreFunction: boolean;
362
- })[];
363
- '@typescript-eslint/unbound-method': (string | {
364
- ignoreStatic: boolean;
365
- })[];
366
- '@typescript-eslint/unified-signatures': (string | {
367
- ignoreDifferentlyNamedParameters: boolean;
368
- })[];
369
- '@typescript-eslint/use-unknown-in-catch-callback-variable': string;
370
- };
371
- };
@@ -1,9 +0,0 @@
1
- import { plugin } from 'typescript-eslint';
2
- import { extensionRules } from "./extension-rules.js";
3
- import { supportedRules } from "./supported-rules.js";
4
- export const typescriptEslintConfig = {
5
- plugins: {
6
- '@typescript-eslint': plugin
7
- },
8
- rules: Object.assign(Object.assign({}, supportedRules), extensionRules)
9
- };
@@ -1,255 +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
- arrayLiteralTypeAssertions: string;
17
- objectLiteralTypeAssertions: string;
18
- })[];
19
- '@typescript-eslint/consistent-type-definitions': string[];
20
- '@typescript-eslint/consistent-type-exports': (string | {
21
- fixMixedExportsWithInlineTypeSpecifier: boolean;
22
- })[];
23
- '@typescript-eslint/consistent-type-imports': (string | {
24
- prefer: string;
25
- disallowTypeAnnotations: boolean;
26
- })[];
27
- '@typescript-eslint/explicit-function-return-type': (string | {
28
- allowConciseArrowFunctionExpressionsStartingWithVoid: boolean;
29
- allowDirectConstAssertionInArrowFunctions: boolean;
30
- allowExpressions: boolean;
31
- allowFunctionsWithoutTypeParameters: boolean;
32
- allowHigherOrderFunctions: boolean;
33
- allowIIFEs: boolean;
34
- allowTypedFunctionExpressions: boolean;
35
- allowedNames: never[];
36
- })[];
37
- '@typescript-eslint/explicit-member-accessibility': string;
38
- '@typescript-eslint/explicit-module-boundary-types': string;
39
- '@typescript-eslint/member-delimiter-style': string;
40
- '@typescript-eslint/member-ordering': (string | {
41
- default: string[];
42
- })[];
43
- '@typescript-eslint/method-signature-style': string[];
44
- '@typescript-eslint/naming-convention': (string | import("./rules/typescript-eslint-naming-convention").TypescriptEslintNamingConvention)[];
45
- '@typescript-eslint/no-array-delete': string;
46
- '@typescript-eslint/no-base-to-string': string;
47
- '@typescript-eslint/no-confusing-non-null-assertion': string;
48
- '@typescript-eslint/no-confusing-void-expression': (string | {
49
- ignoreArrowShorthand: boolean;
50
- ignoreVoidOperator: boolean;
51
- })[];
52
- '@typescript-eslint/no-deprecated': string;
53
- '@typescript-eslint/no-duplicate-enum-values': string;
54
- '@typescript-eslint/no-duplicate-type-constituents': (string | {
55
- ignoreIntersections: boolean;
56
- ignoreUnions: boolean;
57
- })[];
58
- '@typescript-eslint/no-dynamic-delete': string;
59
- '@typescript-eslint/no-empty-interface': (string | {
60
- allowSingleExtends: boolean;
61
- })[];
62
- '@typescript-eslint/no-empty-object-type': (string | {
63
- allowInterfaces: string;
64
- allowObjectTypes: string;
65
- })[];
66
- '@typescript-eslint/no-explicit-any': (string | {
67
- fixToUnknown: boolean;
68
- ignoreRestArgs: boolean;
69
- })[];
70
- '@typescript-eslint/no-extra-non-null-assertion': string;
71
- '@typescript-eslint/no-extraneous-class': (string | {
72
- allowConstructorOnly: boolean;
73
- allowEmpty: boolean;
74
- allowStaticOnly: boolean;
75
- allowWithDecorator: boolean;
76
- })[];
77
- '@typescript-eslint/no-floating-promises': (string | {
78
- allowForKnownSafeCalls: never[];
79
- allowForKnownSafePromises: never[];
80
- checkThenables: boolean;
81
- ignoreIIFE: boolean;
82
- ignoreVoid: boolean;
83
- })[];
84
- '@typescript-eslint/no-for-in-array': string;
85
- '@typescript-eslint/no-import-type-side-effects': string;
86
- '@typescript-eslint/no-inferrable-types': string;
87
- '@typescript-eslint/no-invalid-void-type': (string | {
88
- allowInGenericTypeArguments: boolean;
89
- })[];
90
- '@typescript-eslint/no-meaningless-void-operator': (string | {
91
- checkNever: boolean;
92
- })[];
93
- '@typescript-eslint/no-misused-new': string;
94
- '@typescript-eslint/no-misused-promises': (string | {
95
- checksConditionals: boolean;
96
- checksVoidReturn: boolean;
97
- })[];
98
- '@typescript-eslint/no-misused-spread': string;
99
- '@typescript-eslint/no-mixed-enums': string;
100
- '@typescript-eslint/no-namespace': string;
101
- '@typescript-eslint/no-non-null-asserted-nullish-coalescing': string;
102
- '@typescript-eslint/no-non-null-asserted-optional-chain': string;
103
- '@typescript-eslint/no-non-null-assertion': string;
104
- '@typescript-eslint/no-redundant-type-constituents': string;
105
- '@typescript-eslint/no-unnecessary-type-parameters': string;
106
- '@typescript-eslint/no-require-imports': (string | {
107
- allow: never[];
108
- })[];
109
- '@typescript-eslint/no-restricted-types': (string | {
110
- types: {
111
- object: {
112
- message: string;
113
- suggest: string[];
114
- };
115
- };
116
- })[];
117
- '@typescript-eslint/no-this-alias': string;
118
- '@typescript-eslint/no-type-alias': string;
119
- '@typescript-eslint/no-unnecessary-boolean-literal-compare': (string | {
120
- allowComparingNullableBooleansToTrue: boolean;
121
- allowComparingNullableBooleansToFalse: boolean;
122
- })[];
123
- '@typescript-eslint/no-unnecessary-condition': (string | {
124
- allowConstantLoopConditions: boolean;
125
- allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing: boolean;
126
- checkTypePredicates: boolean;
127
- })[];
128
- '@typescript-eslint/no-unnecessary-parameter-property-assignment': string;
129
- '@typescript-eslint/no-unnecessary-qualifier': string;
130
- '@typescript-eslint/no-unnecessary-template-expression': string;
131
- '@typescript-eslint/no-unnecessary-type-arguments': string;
132
- '@typescript-eslint/no-unnecessary-type-assertion': string;
133
- '@typescript-eslint/no-unnecessary-type-constraint': string;
134
- '@typescript-eslint/no-unsafe-argument': string;
135
- '@typescript-eslint/no-unsafe-assignment': string;
136
- '@typescript-eslint/no-unsafe-call': string;
137
- '@typescript-eslint/no-unsafe-declaration-merging': string;
138
- '@typescript-eslint/no-unsafe-enum-comparison': string;
139
- '@typescript-eslint/no-unsafe-function-type': string;
140
- '@typescript-eslint/no-unsafe-member-access': string;
141
- '@typescript-eslint/no-unsafe-return': string;
142
- '@typescript-eslint/no-unsafe-type-assertion': string;
143
- '@typescript-eslint/no-unsafe-unary-minus': string;
144
- '@typescript-eslint/no-useless-empty-export': string;
145
- '@typescript-eslint/no-useless-template-literal': string;
146
- '@typescript-eslint/no-var-requires': (string | {
147
- allow: never[];
148
- })[];
149
- '@typescript-eslint/no-wrapper-object-types': string;
150
- '@typescript-eslint/non-nullable-type-assertion-style': string;
151
- '@typescript-eslint/parameter-properties': (string | {
152
- prefer: string;
153
- })[];
154
- '@typescript-eslint/prefer-as-const': string;
155
- '@typescript-eslint/prefer-enum-initializers': string;
156
- '@typescript-eslint/prefer-find': string;
157
- '@typescript-eslint/prefer-for-of': string;
158
- '@typescript-eslint/prefer-function-type': string;
159
- '@typescript-eslint/prefer-includes': string;
160
- '@typescript-eslint/prefer-literal-enum-member': (string | {
161
- allowBitwiseExpressions: boolean;
162
- })[];
163
- '@typescript-eslint/prefer-namespace-keyword': string;
164
- '@typescript-eslint/prefer-nullish-coalescing': (string | {
165
- ignoreBooleanCoercion: boolean;
166
- ignoreTernaryTests: boolean;
167
- ignoreConditionalTests: boolean;
168
- ignoreMixedLogicalExpressions: boolean;
169
- ignorePrimitives: {
170
- bigint: boolean;
171
- boolean: boolean;
172
- number: boolean;
173
- string: boolean;
174
- };
175
- })[];
176
- '@typescript-eslint/prefer-optional-chain': (string | {
177
- checkAny: boolean;
178
- checkUnknown: boolean;
179
- checkString: boolean;
180
- checkNumber: boolean;
181
- checkBoolean: boolean;
182
- checkBigInt: boolean;
183
- requireNullish: boolean;
184
- })[];
185
- '@typescript-eslint/prefer-readonly': string;
186
- '@typescript-eslint/prefer-readonly-parameter-types': string;
187
- '@typescript-eslint/prefer-reduce-type-parameter': string;
188
- '@typescript-eslint/prefer-regexp-exec': string;
189
- '@typescript-eslint/prefer-return-this-type': string;
190
- '@typescript-eslint/prefer-string-starts-ends-with': (string | {
191
- allowSingleElementEquality: string;
192
- })[];
193
- '@typescript-eslint/prefer-ts-expect-error': string;
194
- '@typescript-eslint/promise-function-async': (string | {
195
- checkArrowFunctions: boolean;
196
- })[];
197
- '@typescript-eslint/require-array-sort-compare': (string | {
198
- ignoreStringArrays: boolean;
199
- })[];
200
- '@typescript-eslint/restrict-plus-operands': (string | {
201
- allowAny: boolean;
202
- allowBoolean: boolean;
203
- allowNullish: boolean;
204
- allowNumberAndString: boolean;
205
- allowRegExp: boolean;
206
- skipCompoundAssignments: boolean;
207
- })[];
208
- '@typescript-eslint/restrict-template-expressions': (string | {
209
- allowAny: boolean;
210
- allowArray: boolean;
211
- allowBoolean: boolean;
212
- allowNullish: boolean;
213
- allowNumber: boolean;
214
- allowRegExp: boolean;
215
- allowNever: boolean;
216
- })[];
217
- '@typescript-eslint/sort-type-constituents': string;
218
- '@typescript-eslint/strict-boolean-expressions': (string | {
219
- allowString: boolean;
220
- allowNumber: boolean;
221
- allowNullableEnum: boolean;
222
- allowNullableObject: boolean;
223
- allowNullableBoolean: boolean;
224
- allowNullableString: boolean;
225
- allowNullableNumber: boolean;
226
- allowAny: boolean;
227
- })[];
228
- '@typescript-eslint/switch-exhaustiveness-check': (string | {
229
- allowDefaultCaseForExhaustiveSwitch: boolean;
230
- requireDefaultForNonUnion: boolean;
231
- })[];
232
- '@typescript-eslint/triple-slash-reference': (string | {
233
- path: string;
234
- types: string;
235
- lib: string;
236
- })[];
237
- '@typescript-eslint/type-annotation-spacing': string;
238
- '@typescript-eslint/typedef': (string | {
239
- arrayDestructuring: boolean;
240
- arrowParameter: boolean;
241
- memberVariableDeclaration: boolean;
242
- objectDestructuring: boolean;
243
- parameter: boolean;
244
- propertyDeclaration: boolean;
245
- variableDeclaration: boolean;
246
- variableDeclarationIgnoreFunction: boolean;
247
- })[];
248
- '@typescript-eslint/unbound-method': (string | {
249
- ignoreStatic: boolean;
250
- })[];
251
- '@typescript-eslint/unified-signatures': (string | {
252
- ignoreDifferentlyNamedParameters: boolean;
253
- })[];
254
- '@typescript-eslint/use-unknown-in-catch-callback-variable': string;
255
- };