@kazupon/eslint-config 0.18.0 → 0.19.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 (87) hide show
  1. package/dist/index.cjs +97 -216
  2. package/dist/index.d.cts +14216 -3
  3. package/dist/index.d.ts +14216 -3
  4. package/dist/index.js +70 -89
  5. package/package.json +15 -15
  6. package/dist/config.d.cts +0 -9
  7. package/dist/config.d.ts +0 -9
  8. package/dist/configs/comments.d.cts +0 -15
  9. package/dist/configs/comments.d.ts +0 -15
  10. package/dist/configs/imports.d.cts +0 -21
  11. package/dist/configs/imports.d.ts +0 -21
  12. package/dist/configs/index.d.cts +0 -17
  13. package/dist/configs/index.d.ts +0 -17
  14. package/dist/configs/javascript.d.cts +0 -15
  15. package/dist/configs/javascript.d.ts +0 -15
  16. package/dist/configs/jsdoc.d.cts +0 -27
  17. package/dist/configs/jsdoc.d.ts +0 -27
  18. package/dist/configs/jsonc.d.cts +0 -39
  19. package/dist/configs/jsonc.d.ts +0 -39
  20. package/dist/configs/markdown.d.cts +0 -28
  21. package/dist/configs/markdown.d.ts +0 -28
  22. package/dist/configs/prettier.d.cts +0 -15
  23. package/dist/configs/prettier.d.ts +0 -15
  24. package/dist/configs/promise.d.cts +0 -15
  25. package/dist/configs/promise.d.ts +0 -15
  26. package/dist/configs/react.d.cts +0 -26
  27. package/dist/configs/react.d.ts +0 -26
  28. package/dist/configs/regexp.d.cts +0 -15
  29. package/dist/configs/regexp.d.ts +0 -15
  30. package/dist/configs/svelte.d.cts +0 -21
  31. package/dist/configs/svelte.d.ts +0 -21
  32. package/dist/configs/toml.d.cts +0 -15
  33. package/dist/configs/toml.d.ts +0 -15
  34. package/dist/configs/typescript.d.cts +0 -38
  35. package/dist/configs/typescript.d.ts +0 -38
  36. package/dist/configs/unicorn.d.cts +0 -20
  37. package/dist/configs/unicorn.d.ts +0 -20
  38. package/dist/configs/vitest.d.cts +0 -22
  39. package/dist/configs/vitest.d.ts +0 -22
  40. package/dist/configs/vue.d.cts +0 -36
  41. package/dist/configs/vue.d.ts +0 -36
  42. package/dist/configs/yml.d.cts +0 -22
  43. package/dist/configs/yml.d.ts +0 -22
  44. package/dist/globs.d.cts +0 -14
  45. package/dist/globs.d.ts +0 -14
  46. package/dist/types/gens/comments.d.cts +0 -65
  47. package/dist/types/gens/comments.d.ts +0 -65
  48. package/dist/types/gens/eslint.d.cts +0 -23
  49. package/dist/types/gens/eslint.d.ts +0 -23
  50. package/dist/types/gens/imports.d.cts +0 -520
  51. package/dist/types/gens/imports.d.ts +0 -520
  52. package/dist/types/gens/javascript.d.cts +0 -3163
  53. package/dist/types/gens/javascript.d.ts +0 -3163
  54. package/dist/types/gens/jsdoc.d.cts +0 -796
  55. package/dist/types/gens/jsdoc.d.ts +0 -796
  56. package/dist/types/gens/jsonc.d.cts +0 -513
  57. package/dist/types/gens/jsonc.d.ts +0 -513
  58. package/dist/types/gens/markdown.d.cts +0 -42
  59. package/dist/types/gens/markdown.d.ts +0 -42
  60. package/dist/types/gens/prettier.d.cts +0 -2
  61. package/dist/types/gens/prettier.d.ts +0 -2
  62. package/dist/types/gens/promise.d.cts +0 -113
  63. package/dist/types/gens/promise.d.ts +0 -113
  64. package/dist/types/gens/react.d.cts +0 -1053
  65. package/dist/types/gens/react.d.ts +0 -1053
  66. package/dist/types/gens/regexp.d.cts +0 -553
  67. package/dist/types/gens/regexp.d.ts +0 -553
  68. package/dist/types/gens/svelte.d.cts +0 -491
  69. package/dist/types/gens/svelte.d.ts +0 -491
  70. package/dist/types/gens/toml.d.cts +0 -256
  71. package/dist/types/gens/toml.d.ts +0 -256
  72. package/dist/types/gens/typescript.d.cts +0 -1578
  73. package/dist/types/gens/typescript.d.ts +0 -1578
  74. package/dist/types/gens/unicorn.d.cts +0 -925
  75. package/dist/types/gens/unicorn.d.ts +0 -925
  76. package/dist/types/gens/vitest.d.cts +0 -377
  77. package/dist/types/gens/vitest.d.ts +0 -377
  78. package/dist/types/gens/vue.d.cts +0 -2746
  79. package/dist/types/gens/vue.d.ts +0 -2746
  80. package/dist/types/gens/yml.d.cts +0 -375
  81. package/dist/types/gens/yml.d.ts +0 -375
  82. package/dist/types/index.d.cts +0 -19
  83. package/dist/types/index.d.ts +0 -19
  84. package/dist/types/overrides.d.cts +0 -8
  85. package/dist/types/overrides.d.ts +0 -8
  86. package/dist/utils.d.cts +0 -18
  87. package/dist/utils.d.ts +0 -18
@@ -1,796 +0,0 @@
1
- import type { Linter } from 'eslint';
2
- export interface JsdocRules {
3
- /**
4
- * Checks that `@access` tags have a valid value.
5
- * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/check-access.md#repos-sticky-header
6
- */
7
- 'jsdoc/check-access'?: Linter.RuleEntry<[]>;
8
- /**
9
- * Reports invalid alignment of JSDoc block asterisks.
10
- * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/check-alignment.md#repos-sticky-header
11
- */
12
- 'jsdoc/check-alignment'?: Linter.RuleEntry<[]>;
13
- /**
14
- * Ensures that (JavaScript) examples within JSDoc adhere to ESLint rules.
15
- * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/check-examples.md#repos-sticky-header
16
- */
17
- 'jsdoc/check-examples'?: Linter.RuleEntry<JsdocCheckExamples>;
18
- /**
19
- * Reports invalid padding inside JSDoc blocks.
20
- * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/check-indentation.md#repos-sticky-header
21
- */
22
- 'jsdoc/check-indentation'?: Linter.RuleEntry<JsdocCheckIndentation>;
23
- /**
24
- * Reports invalid alignment of JSDoc block lines.
25
- * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/check-line-alignment.md#repos-sticky-header
26
- */
27
- 'jsdoc/check-line-alignment'?: Linter.RuleEntry<JsdocCheckLineAlignment>;
28
- /**
29
- * Ensures that parameter names in JSDoc match those in the function declaration.
30
- * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/check-param-names.md#repos-sticky-header
31
- */
32
- 'jsdoc/check-param-names'?: Linter.RuleEntry<JsdocCheckParamNames>;
33
- /**
34
- * Ensures that property names in JSDoc are not duplicated on the same block and that nested properties have defined roots.
35
- * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/check-property-names.md#repos-sticky-header
36
- */
37
- 'jsdoc/check-property-names'?: Linter.RuleEntry<JsdocCheckPropertyNames>;
38
- /**
39
- * Reports against syntax not valid for the mode (e.g., Google Closure Compiler in non-Closure mode).
40
- * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/check-syntax.md#repos-sticky-header
41
- */
42
- 'jsdoc/check-syntax'?: Linter.RuleEntry<[]>;
43
- /**
44
- * Reports invalid block tag names.
45
- * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/check-tag-names.md#repos-sticky-header
46
- */
47
- 'jsdoc/check-tag-names'?: Linter.RuleEntry<JsdocCheckTagNames>;
48
- /**
49
- * Checks that any `@template` names are actually used in the connected `@typedef` or type alias.
50
- * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/check-template-names.md#repos-sticky-header
51
- */
52
- 'jsdoc/check-template-names'?: Linter.RuleEntry<[]>;
53
- /**
54
- * Reports invalid types.
55
- * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/check-types.md#repos-sticky-header
56
- */
57
- 'jsdoc/check-types'?: Linter.RuleEntry<JsdocCheckTypes>;
58
- /**
59
- * This rule checks the values for a handful of tags: `@version`, `@since`, `@license` and `@author`.
60
- * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/check-values.md#repos-sticky-header
61
- */
62
- 'jsdoc/check-values'?: Linter.RuleEntry<JsdocCheckValues>;
63
- /**
64
- * Converts non-JSDoc comments preceding or following nodes into JSDoc ones
65
- * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/convert-to-jsdoc-comments.md#repos-sticky-header
66
- */
67
- 'jsdoc/convert-to-jsdoc-comments'?: Linter.RuleEntry<JsdocConvertToJsdocComments>;
68
- /**
69
- * Expects specific tags to be empty of any content.
70
- * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/empty-tags.md#repos-sticky-header
71
- */
72
- 'jsdoc/empty-tags'?: Linter.RuleEntry<JsdocEmptyTags>;
73
- /**
74
- * Reports an issue with any non-constructor function using `@implements`.
75
- * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/implements-on-classes.md#repos-sticky-header
76
- */
77
- 'jsdoc/implements-on-classes'?: Linter.RuleEntry<JsdocImplementsOnClasses>;
78
- /**
79
- * Reports if JSDoc `import()` statements point to a package which is not listed in `dependencies` or `devDependencies`
80
- * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/imports-as-dependencies.md#repos-sticky-header
81
- */
82
- 'jsdoc/imports-as-dependencies'?: Linter.RuleEntry<[]>;
83
- /**
84
- * This rule reports doc comments that only restate their attached name.
85
- * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/informative-docs.md#repos-sticky-header
86
- */
87
- 'jsdoc/informative-docs'?: Linter.RuleEntry<JsdocInformativeDocs>;
88
- /**
89
- * Enforces minimum number of newlines before JSDoc comment blocks
90
- * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/lines-before-block.md#repos-sticky-header
91
- */
92
- 'jsdoc/lines-before-block'?: Linter.RuleEntry<JsdocLinesBeforeBlock>;
93
- /**
94
- * Enforces a regular expression pattern on descriptions.
95
- * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/match-description.md#repos-sticky-header
96
- */
97
- 'jsdoc/match-description'?: Linter.RuleEntry<JsdocMatchDescription>;
98
- /**
99
- * Reports the name portion of a JSDoc tag if matching or not matching a given regular expression.
100
- * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/match-name.md#repos-sticky-header
101
- */
102
- 'jsdoc/match-name'?: Linter.RuleEntry<JsdocMatchName>;
103
- /**
104
- * Controls how and whether jsdoc blocks can be expressed as single or multiple line blocks.
105
- * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/multiline-blocks.md#repos-sticky-header
106
- */
107
- 'jsdoc/multiline-blocks'?: Linter.RuleEntry<JsdocMultilineBlocks>;
108
- /**
109
- * This rule checks for multi-line-style comments which fail to meet the criteria of a jsdoc block.
110
- * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/no-bad-blocks.md#repos-sticky-header
111
- */
112
- 'jsdoc/no-bad-blocks'?: Linter.RuleEntry<JsdocNoBadBlocks>;
113
- /**
114
- * Detects and removes extra lines of a blank block description
115
- * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/no-blank-block-descriptions.md#repos-sticky-header
116
- */
117
- 'jsdoc/no-blank-block-descriptions'?: Linter.RuleEntry<[]>;
118
- /**
119
- * Removes empty blocks with nothing but possibly line breaks
120
- * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/no-blank-blocks.md#repos-sticky-header
121
- */
122
- 'jsdoc/no-blank-blocks'?: Linter.RuleEntry<JsdocNoBlankBlocks>;
123
- /**
124
- * This rule reports defaults being used on the relevant portion of `@param` or `@default`.
125
- * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/no-defaults.md#repos-sticky-header
126
- */
127
- 'jsdoc/no-defaults'?: Linter.RuleEntry<JsdocNoDefaults>;
128
- /**
129
- * Reports when certain comment structures are always expected.
130
- * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/no-missing-syntax.md#repos-sticky-header
131
- */
132
- 'jsdoc/no-missing-syntax'?: Linter.RuleEntry<JsdocNoMissingSyntax>;
133
- /**
134
- * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/no-multi-asterisks.md#repos-sticky-header
135
- */
136
- 'jsdoc/no-multi-asterisks'?: Linter.RuleEntry<JsdocNoMultiAsterisks>;
137
- /**
138
- * Reports when certain comment structures are present.
139
- * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/no-restricted-syntax.md#repos-sticky-header
140
- */
141
- 'jsdoc/no-restricted-syntax'?: Linter.RuleEntry<JsdocNoRestrictedSyntax>;
142
- /**
143
- * This rule reports types being used on `@param` or `@returns`.
144
- * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/no-types.md#repos-sticky-header
145
- */
146
- 'jsdoc/no-types'?: Linter.RuleEntry<JsdocNoTypes>;
147
- /**
148
- * Checks that types in jsdoc comments are defined.
149
- * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/no-undefined-types.md#repos-sticky-header
150
- */
151
- 'jsdoc/no-undefined-types'?: Linter.RuleEntry<JsdocNoUndefinedTypes>;
152
- /**
153
- * Requires that each JSDoc line starts with an `*`.
154
- * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-asterisk-prefix.md#repos-sticky-header
155
- */
156
- 'jsdoc/require-asterisk-prefix'?: Linter.RuleEntry<JsdocRequireAsteriskPrefix>;
157
- /**
158
- * Requires that all functions have a description.
159
- * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-description.md#repos-sticky-header
160
- */
161
- 'jsdoc/require-description'?: Linter.RuleEntry<JsdocRequireDescription>;
162
- /**
163
- * Requires that block description, explicit `@description`, and `@param`/`@returns` tag descriptions are written in complete sentences.
164
- * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-description-complete-sentence.md#repos-sticky-header
165
- */
166
- 'jsdoc/require-description-complete-sentence'?: Linter.RuleEntry<JsdocRequireDescriptionCompleteSentence>;
167
- /**
168
- * Requires that all functions have examples.
169
- * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-example.md#repos-sticky-header
170
- */
171
- 'jsdoc/require-example'?: Linter.RuleEntry<JsdocRequireExample>;
172
- /**
173
- * Checks that all files have one `@file`, `@fileoverview`, or `@overview` tag at the beginning of the file.
174
- * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-file-overview.md#repos-sticky-header
175
- */
176
- 'jsdoc/require-file-overview'?: Linter.RuleEntry<JsdocRequireFileOverview>;
177
- /**
178
- * Requires a hyphen before the `@param` description.
179
- * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-hyphen-before-param-description.md#repos-sticky-header
180
- */
181
- 'jsdoc/require-hyphen-before-param-description'?: Linter.RuleEntry<JsdocRequireHyphenBeforeParamDescription>;
182
- /**
183
- * Require JSDoc comments
184
- * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-jsdoc.md#repos-sticky-header
185
- */
186
- 'jsdoc/require-jsdoc'?: Linter.RuleEntry<JsdocRequireJsdoc>;
187
- /**
188
- * Requires that all function parameters are documented.
189
- * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-param.md#repos-sticky-header
190
- */
191
- 'jsdoc/require-param'?: Linter.RuleEntry<JsdocRequireParam>;
192
- /**
193
- * Requires that each `@param` tag has a `description` value.
194
- * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-param-description.md#repos-sticky-header
195
- */
196
- 'jsdoc/require-param-description'?: Linter.RuleEntry<JsdocRequireParamDescription>;
197
- /**
198
- * Requires that all function parameters have names.
199
- * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-param-name.md#repos-sticky-header
200
- */
201
- 'jsdoc/require-param-name'?: Linter.RuleEntry<JsdocRequireParamName>;
202
- /**
203
- * Requires that each `@param` tag has a `type` value.
204
- * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-param-type.md#repos-sticky-header
205
- */
206
- 'jsdoc/require-param-type'?: Linter.RuleEntry<JsdocRequireParamType>;
207
- /**
208
- * Requires that all `@typedef` and `@namespace` tags have `@property` when their type is a plain `object`, `Object`, or `PlainObject`.
209
- * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-property.md#repos-sticky-header
210
- */
211
- 'jsdoc/require-property'?: Linter.RuleEntry<[]>;
212
- /**
213
- * Requires that each `@property` tag has a `description` value.
214
- * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-property-description.md#repos-sticky-header
215
- */
216
- 'jsdoc/require-property-description'?: Linter.RuleEntry<[]>;
217
- /**
218
- * Requires that all function `@property` tags have names.
219
- * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-property-name.md#repos-sticky-header
220
- */
221
- 'jsdoc/require-property-name'?: Linter.RuleEntry<[]>;
222
- /**
223
- * Requires that each `@property` tag has a `type` value.
224
- * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-property-type.md#repos-sticky-header
225
- */
226
- 'jsdoc/require-property-type'?: Linter.RuleEntry<[]>;
227
- /**
228
- * Requires that returns are documented.
229
- * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-returns.md#repos-sticky-header
230
- */
231
- 'jsdoc/require-returns'?: Linter.RuleEntry<JsdocRequireReturns>;
232
- /**
233
- * Requires a return statement in function body if a `@returns` tag is specified in jsdoc comment.
234
- * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-returns-check.md#repos-sticky-header
235
- */
236
- 'jsdoc/require-returns-check'?: Linter.RuleEntry<JsdocRequireReturnsCheck>;
237
- /**
238
- * Requires that the `@returns` tag has a `description` value.
239
- * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-returns-description.md#repos-sticky-header
240
- */
241
- 'jsdoc/require-returns-description'?: Linter.RuleEntry<JsdocRequireReturnsDescription>;
242
- /**
243
- * Requires that `@returns` tag has `type` value.
244
- * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-returns-type.md#repos-sticky-header
245
- */
246
- 'jsdoc/require-returns-type'?: Linter.RuleEntry<JsdocRequireReturnsType>;
247
- /**
248
- * Requires template tags for each generic type parameter
249
- * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-template.md#repos-sticky-header
250
- */
251
- 'jsdoc/require-template'?: Linter.RuleEntry<JsdocRequireTemplate>;
252
- /**
253
- * Requires that throw statements are documented.
254
- * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-throws.md#repos-sticky-header
255
- */
256
- 'jsdoc/require-throws'?: Linter.RuleEntry<JsdocRequireThrows>;
257
- /**
258
- * Requires yields are documented.
259
- * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-yields.md#repos-sticky-header
260
- */
261
- 'jsdoc/require-yields'?: Linter.RuleEntry<JsdocRequireYields>;
262
- /**
263
- * Requires a yield statement in function body if a `@yields` tag is specified in jsdoc comment.
264
- * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-yields-check.md#repos-sticky-header
265
- */
266
- 'jsdoc/require-yields-check'?: Linter.RuleEntry<JsdocRequireYieldsCheck>;
267
- /**
268
- * Sorts tags by a specified sequence according to tag name.
269
- * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/sort-tags.md#repos-sticky-header
270
- */
271
- 'jsdoc/sort-tags'?: Linter.RuleEntry<JsdocSortTags>;
272
- /**
273
- * Enforces lines (or no lines) between tags.
274
- * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/tag-lines.md#repos-sticky-header
275
- */
276
- 'jsdoc/tag-lines'?: Linter.RuleEntry<JsdocTagLines>;
277
- /**
278
- * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/text-escaping.md#repos-sticky-header
279
- */
280
- 'jsdoc/text-escaping'?: Linter.RuleEntry<JsdocTextEscaping>;
281
- /**
282
- * Requires all types to be valid JSDoc or Closure compiler types without syntax errors.
283
- * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/valid-types.md#repos-sticky-header
284
- */
285
- 'jsdoc/valid-types'?: Linter.RuleEntry<JsdocValidTypes>;
286
- }
287
- type JsdocCheckExamples = [] | [
288
- {
289
- allowInlineConfig?: boolean;
290
- baseConfig?: {
291
- [k: string]: unknown | undefined;
292
- };
293
- captionRequired?: boolean;
294
- checkDefaults?: boolean;
295
- checkEslintrc?: boolean;
296
- checkParams?: boolean;
297
- checkProperties?: boolean;
298
- configFile?: string;
299
- exampleCodeRegex?: string;
300
- matchingFileName?: string;
301
- matchingFileNameDefaults?: string;
302
- matchingFileNameParams?: string;
303
- matchingFileNameProperties?: string;
304
- noDefaultExampleRules?: boolean;
305
- paddedIndent?: number;
306
- rejectExampleCodeRegex?: string;
307
- reportUnusedDisableDirectives?: boolean;
308
- }
309
- ];
310
- type JsdocCheckIndentation = [] | [
311
- {
312
- excludeTags?: string[];
313
- }
314
- ];
315
- type JsdocCheckLineAlignment = [] | [("always" | "never" | "any")] | [
316
- ("always" | "never" | "any"),
317
- {
318
- customSpacings?: {
319
- postDelimiter?: number;
320
- postHyphen?: number;
321
- postName?: number;
322
- postTag?: number;
323
- postType?: number;
324
- };
325
- preserveMainDescriptionPostDelimiter?: boolean;
326
- tags?: string[];
327
- wrapIndent?: string;
328
- disableWrapIndent?: boolean;
329
- }
330
- ];
331
- type JsdocCheckParamNames = [] | [
332
- {
333
- allowExtraTrailingParamDocs?: boolean;
334
- checkDestructured?: boolean;
335
- checkRestProperty?: boolean;
336
- checkTypesPattern?: string;
337
- disableExtraPropertyReporting?: boolean;
338
- disableMissingParamChecks?: boolean;
339
- enableFixer?: boolean;
340
- useDefaultObjectProperties?: boolean;
341
- }
342
- ];
343
- type JsdocCheckPropertyNames = [] | [
344
- {
345
- enableFixer?: boolean;
346
- }
347
- ];
348
- type JsdocCheckTagNames = [] | [
349
- {
350
- definedTags?: string[];
351
- enableFixer?: boolean;
352
- jsxTags?: boolean;
353
- typed?: boolean;
354
- }
355
- ];
356
- type JsdocCheckTypes = [] | [
357
- {
358
- exemptTagContexts?: {
359
- tag?: string;
360
- types?: (boolean | string[]);
361
- }[];
362
- noDefaults?: boolean;
363
- unifyParentAndChildTypeChecks?: boolean;
364
- }
365
- ];
366
- type JsdocCheckValues = [] | [
367
- {
368
- allowedAuthors?: string[];
369
- allowedLicenses?: (string[] | boolean);
370
- licensePattern?: string;
371
- numericOnlyVariation?: boolean;
372
- }
373
- ];
374
- type JsdocConvertToJsdocComments = [] | [
375
- {
376
- allowedPrefixes?: string[];
377
- contexts?: (string | {
378
- context?: string;
379
- inlineCommentBlock?: boolean;
380
- })[];
381
- contextsAfter?: (string | {
382
- context?: string;
383
- inlineCommentBlock?: boolean;
384
- })[];
385
- contextsBeforeAndAfter?: (string | {
386
- context?: string;
387
- inlineCommentBlock?: boolean;
388
- })[];
389
- enableFixer?: boolean;
390
- enforceJsdocLineStyle?: ("multi" | "single");
391
- lineOrBlockStyle?: ("block" | "line" | "both");
392
- }
393
- ];
394
- type JsdocEmptyTags = [] | [
395
- {
396
- tags?: string[];
397
- }
398
- ];
399
- type JsdocImplementsOnClasses = [] | [
400
- {
401
- contexts?: (string | {
402
- comment?: string;
403
- context?: string;
404
- })[];
405
- }
406
- ];
407
- type JsdocInformativeDocs = [] | [
408
- {
409
- aliases?: {
410
- [k: string]: string[];
411
- };
412
- excludedTags?: string[];
413
- uselessWords?: string[];
414
- }
415
- ];
416
- type JsdocLinesBeforeBlock = [] | [
417
- {
418
- excludedTags?: string[];
419
- ignoreSameLine?: boolean;
420
- lines?: number;
421
- }
422
- ];
423
- type JsdocMatchDescription = [] | [
424
- {
425
- contexts?: (string | {
426
- comment?: string;
427
- context?: string;
428
- })[];
429
- mainDescription?: (string | boolean | {
430
- match?: (string | boolean);
431
- message?: string;
432
- });
433
- matchDescription?: string;
434
- message?: string;
435
- nonemptyTags?: boolean;
436
- tags?: {
437
- [k: string]: (string | true | {
438
- match?: (string | true);
439
- message?: string;
440
- });
441
- };
442
- }
443
- ];
444
- type JsdocMatchName = [] | [
445
- {
446
- match: {
447
- allowName?: string;
448
- comment?: string;
449
- context?: string;
450
- disallowName?: string;
451
- message?: string;
452
- tags?: string[];
453
- [k: string]: unknown | undefined;
454
- }[];
455
- }
456
- ];
457
- type JsdocMultilineBlocks = [] | [
458
- {
459
- allowMultipleTags?: boolean;
460
- minimumLengthForMultiline?: number;
461
- multilineTags?: ("*" | string[]);
462
- noFinalLineText?: boolean;
463
- noMultilineBlocks?: boolean;
464
- noSingleLineBlocks?: boolean;
465
- noZeroLineText?: boolean;
466
- singleLineTags?: string[];
467
- }
468
- ];
469
- type JsdocNoBadBlocks = [] | [
470
- {
471
- ignore?: string[];
472
- preventAllMultiAsteriskBlocks?: boolean;
473
- }
474
- ];
475
- type JsdocNoBlankBlocks = [] | [
476
- {
477
- enableFixer?: boolean;
478
- }
479
- ];
480
- type JsdocNoDefaults = [] | [
481
- {
482
- contexts?: (string | {
483
- comment?: string;
484
- context?: string;
485
- })[];
486
- noOptionalParamNames?: boolean;
487
- }
488
- ];
489
- type JsdocNoMissingSyntax = [] | [
490
- {
491
- contexts?: (string | {
492
- comment?: string;
493
- context?: string;
494
- message?: string;
495
- minimum?: number;
496
- })[];
497
- }
498
- ];
499
- type JsdocNoMultiAsterisks = [] | [
500
- {
501
- allowWhitespace?: boolean;
502
- preventAtEnd?: boolean;
503
- preventAtMiddleLines?: boolean;
504
- }
505
- ];
506
- type JsdocNoRestrictedSyntax = [] | [
507
- {
508
- contexts: (string | {
509
- comment?: string;
510
- context?: string;
511
- message?: string;
512
- })[];
513
- }
514
- ];
515
- type JsdocNoTypes = [] | [
516
- {
517
- contexts?: (string | {
518
- comment?: string;
519
- context?: string;
520
- })[];
521
- }
522
- ];
523
- type JsdocNoUndefinedTypes = [] | [
524
- {
525
- definedTypes?: string[];
526
- disableReporting?: boolean;
527
- markVariablesAsUsed?: boolean;
528
- }
529
- ];
530
- type JsdocRequireAsteriskPrefix = [] | [("always" | "never" | "any")] | [
531
- ("always" | "never" | "any"),
532
- {
533
- tags?: {
534
- always?: string[];
535
- any?: string[];
536
- never?: string[];
537
- [k: string]: unknown | undefined;
538
- };
539
- }
540
- ];
541
- type JsdocRequireDescription = [] | [
542
- {
543
- checkConstructors?: boolean;
544
- checkGetters?: boolean;
545
- checkSetters?: boolean;
546
- contexts?: (string | {
547
- comment?: string;
548
- context?: string;
549
- })[];
550
- descriptionStyle?: ("body" | "tag" | "any");
551
- exemptedBy?: string[];
552
- }
553
- ];
554
- type JsdocRequireDescriptionCompleteSentence = [] | [
555
- {
556
- abbreviations?: string[];
557
- newlineBeforeCapsAssumesBadSentenceEnd?: boolean;
558
- tags?: string[];
559
- }
560
- ];
561
- type JsdocRequireExample = [] | [
562
- {
563
- checkConstructors?: boolean;
564
- checkGetters?: boolean;
565
- checkSetters?: boolean;
566
- contexts?: (string | {
567
- comment?: string;
568
- context?: string;
569
- })[];
570
- enableFixer?: boolean;
571
- exemptedBy?: string[];
572
- exemptNoArguments?: boolean;
573
- }
574
- ];
575
- type JsdocRequireFileOverview = [] | [
576
- {
577
- tags?: {
578
- [k: string]: {
579
- initialCommentsOnly?: boolean;
580
- mustExist?: boolean;
581
- preventDuplicates?: boolean;
582
- };
583
- };
584
- }
585
- ];
586
- type JsdocRequireHyphenBeforeParamDescription = [] | [("always" | "never")] | [
587
- ("always" | "never"),
588
- {
589
- tags?: ({
590
- [k: string]: ("always" | "never");
591
- } | "any");
592
- }
593
- ];
594
- type JsdocRequireJsdoc = [] | [
595
- {
596
- checkConstructors?: boolean;
597
- checkGetters?: (boolean | "no-setter");
598
- checkSetters?: (boolean | "no-getter");
599
- contexts?: (string | {
600
- context?: string;
601
- inlineCommentBlock?: boolean;
602
- minLineCount?: number;
603
- })[];
604
- enableFixer?: boolean;
605
- exemptEmptyConstructors?: boolean;
606
- exemptEmptyFunctions?: boolean;
607
- fixerMessage?: string;
608
- minLineCount?: number;
609
- publicOnly?: (boolean | {
610
- ancestorsOnly?: boolean;
611
- cjs?: boolean;
612
- esm?: boolean;
613
- window?: boolean;
614
- });
615
- require?: {
616
- ArrowFunctionExpression?: boolean;
617
- ClassDeclaration?: boolean;
618
- ClassExpression?: boolean;
619
- FunctionDeclaration?: boolean;
620
- FunctionExpression?: boolean;
621
- MethodDefinition?: boolean;
622
- };
623
- }
624
- ];
625
- type JsdocRequireParam = [] | [
626
- {
627
- autoIncrementBase?: number;
628
- checkConstructors?: boolean;
629
- checkDestructured?: boolean;
630
- checkDestructuredRoots?: boolean;
631
- checkGetters?: boolean;
632
- checkRestProperty?: boolean;
633
- checkSetters?: boolean;
634
- checkTypesPattern?: string;
635
- contexts?: (string | {
636
- comment?: string;
637
- context?: string;
638
- })[];
639
- enableFixer?: boolean;
640
- enableRestElementFixer?: boolean;
641
- enableRootFixer?: boolean;
642
- exemptedBy?: string[];
643
- unnamedRootBase?: string[];
644
- useDefaultObjectProperties?: boolean;
645
- }
646
- ];
647
- type JsdocRequireParamDescription = [] | [
648
- {
649
- contexts?: (string | {
650
- comment?: string;
651
- context?: string;
652
- })[];
653
- defaultDestructuredRootDescription?: string;
654
- setDefaultDestructuredRootDescription?: boolean;
655
- }
656
- ];
657
- type JsdocRequireParamName = [] | [
658
- {
659
- contexts?: (string | {
660
- comment?: string;
661
- context?: string;
662
- })[];
663
- }
664
- ];
665
- type JsdocRequireParamType = [] | [
666
- {
667
- contexts?: (string | {
668
- comment?: string;
669
- context?: string;
670
- })[];
671
- defaultDestructuredRootType?: string;
672
- setDefaultDestructuredRootType?: boolean;
673
- }
674
- ];
675
- type JsdocRequireReturns = [] | [
676
- {
677
- checkConstructors?: boolean;
678
- checkGetters?: boolean;
679
- contexts?: (string | {
680
- comment?: string;
681
- context?: string;
682
- forceRequireReturn?: boolean;
683
- })[];
684
- enableFixer?: boolean;
685
- exemptedBy?: string[];
686
- forceRequireReturn?: boolean;
687
- forceReturnsWithAsync?: boolean;
688
- publicOnly?: (boolean | {
689
- ancestorsOnly?: boolean;
690
- cjs?: boolean;
691
- esm?: boolean;
692
- window?: boolean;
693
- });
694
- }
695
- ];
696
- type JsdocRequireReturnsCheck = [] | [
697
- {
698
- exemptAsync?: boolean;
699
- exemptGenerators?: boolean;
700
- reportMissingReturnForUndefinedTypes?: boolean;
701
- }
702
- ];
703
- type JsdocRequireReturnsDescription = [] | [
704
- {
705
- contexts?: (string | {
706
- comment?: string;
707
- context?: string;
708
- })[];
709
- }
710
- ];
711
- type JsdocRequireReturnsType = [] | [
712
- {
713
- contexts?: (string | {
714
- comment?: string;
715
- context?: string;
716
- })[];
717
- }
718
- ];
719
- type JsdocRequireTemplate = [] | [
720
- {
721
- requireSeparateTemplates?: boolean;
722
- }
723
- ];
724
- type JsdocRequireThrows = [] | [
725
- {
726
- contexts?: (string | {
727
- comment?: string;
728
- context?: string;
729
- })[];
730
- exemptedBy?: string[];
731
- }
732
- ];
733
- type JsdocRequireYields = [] | [
734
- {
735
- contexts?: (string | {
736
- comment?: string;
737
- context?: string;
738
- })[];
739
- exemptedBy?: string[];
740
- forceRequireNext?: boolean;
741
- forceRequireYields?: boolean;
742
- next?: boolean;
743
- nextWithGeneratorTag?: boolean;
744
- withGeneratorTag?: boolean;
745
- }
746
- ];
747
- type JsdocRequireYieldsCheck = [] | [
748
- {
749
- checkGeneratorsOnly?: boolean;
750
- contexts?: (string | {
751
- comment?: string;
752
- context?: string;
753
- })[];
754
- exemptedBy?: string[];
755
- next?: boolean;
756
- }
757
- ];
758
- type JsdocSortTags = [] | [
759
- {
760
- alphabetizeExtras?: boolean;
761
- linesBetween?: number;
762
- reportIntraTagGroupSpacing?: boolean;
763
- reportTagGroupSpacing?: boolean;
764
- tagSequence?: {
765
- tags?: string[];
766
- [k: string]: unknown | undefined;
767
- }[];
768
- }
769
- ];
770
- type JsdocTagLines = [] | [("always" | "any" | "never")] | [
771
- ("always" | "any" | "never"),
772
- {
773
- applyToEndTag?: boolean;
774
- count?: number;
775
- endLines?: (number | null);
776
- startLines?: (number | null);
777
- tags?: {
778
- [k: string]: {
779
- count?: number;
780
- lines?: ("always" | "never" | "any");
781
- };
782
- };
783
- }
784
- ];
785
- type JsdocTextEscaping = [] | [
786
- {
787
- escapeHTML?: boolean;
788
- escapeMarkdown?: boolean;
789
- }
790
- ];
791
- type JsdocValidTypes = [] | [
792
- {
793
- allowEmptyNamepaths?: boolean;
794
- }
795
- ];
796
- export {};