eslint-plugin-jsdoc 52.0.0 → 52.0.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.
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
export function getJsdocProcessorPlugin(options?: JsdocProcessorOptions): {
|
|
2
|
+
meta: {
|
|
3
|
+
name: string;
|
|
4
|
+
version: any;
|
|
5
|
+
};
|
|
6
|
+
processors: {
|
|
7
|
+
examples: {
|
|
8
|
+
meta: {
|
|
9
|
+
name: string;
|
|
10
|
+
version: any;
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* @param {import('eslint').Linter.LintMessage[][]} messages
|
|
14
|
+
* @param {string} filename
|
|
15
|
+
*/
|
|
16
|
+
postprocess([jsMessages, ...messages]: import("eslint").Linter.LintMessage[][], filename: string): import("eslint").Linter.LintMessage[];
|
|
17
|
+
/**
|
|
18
|
+
* @param {string} text
|
|
19
|
+
* @param {string} filename
|
|
20
|
+
*/
|
|
21
|
+
preprocess(text: string, filename: string): (string | {
|
|
22
|
+
text: string;
|
|
23
|
+
filename: string | null | undefined;
|
|
24
|
+
})[];
|
|
25
|
+
supportsAutofix: boolean;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
export type Integer = number;
|
|
30
|
+
export type JsdocProcessorOptions = {
|
|
31
|
+
/**
|
|
32
|
+
* Require captions for example tags
|
|
33
|
+
*/
|
|
34
|
+
captionRequired?: boolean | undefined;
|
|
35
|
+
/**
|
|
36
|
+
* See docs
|
|
37
|
+
*/
|
|
38
|
+
paddedIndent?: number | undefined;
|
|
39
|
+
/**
|
|
40
|
+
* See docs
|
|
41
|
+
*/
|
|
42
|
+
checkDefaults?: boolean | undefined;
|
|
43
|
+
/**
|
|
44
|
+
* See docs
|
|
45
|
+
*/
|
|
46
|
+
checkParams?: boolean | undefined;
|
|
47
|
+
/**
|
|
48
|
+
* See docs
|
|
49
|
+
*/
|
|
50
|
+
checkExamples?: boolean | undefined;
|
|
51
|
+
/**
|
|
52
|
+
* See docs
|
|
53
|
+
*/
|
|
54
|
+
checkProperties?: boolean | undefined;
|
|
55
|
+
/**
|
|
56
|
+
* See docs
|
|
57
|
+
*/
|
|
58
|
+
matchingFileName?: string | undefined;
|
|
59
|
+
/**
|
|
60
|
+
* See docs
|
|
61
|
+
*/
|
|
62
|
+
matchingFileNameDefaults?: string | undefined;
|
|
63
|
+
/**
|
|
64
|
+
* See docs
|
|
65
|
+
*/
|
|
66
|
+
matchingFileNameParams?: string | undefined;
|
|
67
|
+
/**
|
|
68
|
+
* See docs
|
|
69
|
+
*/
|
|
70
|
+
matchingFileNameProperties?: string | undefined;
|
|
71
|
+
/**
|
|
72
|
+
* See docs
|
|
73
|
+
*/
|
|
74
|
+
exampleCodeRegex?: string | RegExp | undefined;
|
|
75
|
+
/**
|
|
76
|
+
* See docs
|
|
77
|
+
*/
|
|
78
|
+
rejectExampleCodeRegex?: string | RegExp | undefined;
|
|
79
|
+
/**
|
|
80
|
+
* See docs
|
|
81
|
+
*/
|
|
82
|
+
allowedLanguagesToProcess?: string[] | undefined;
|
|
83
|
+
/**
|
|
84
|
+
* See docs
|
|
85
|
+
*/
|
|
86
|
+
sourceType?: "module" | "script" | undefined;
|
|
87
|
+
/**
|
|
88
|
+
* See docs
|
|
89
|
+
*/
|
|
90
|
+
parser?: import("eslint").Linter.ESTreeParser | import("eslint").Linter.NonESTreeParser | undefined;
|
|
91
|
+
};
|
|
92
|
+
//# sourceMappingURL=getJsdocProcessorPlugin.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getJsdocProcessorPlugin.d.ts","sourceRoot":"","sources":["../src/getJsdocProcessorPlugin.js"],"names":[],"mappings":"AAkGO,kDAFI,qBAAqB;;;;;;;;;;;YAgZxB;;;eAGG;mDAFQ,OAAO,QAAQ,EAAE,MAAM,CAAC,WAAW,EAAE,EAAE,YACvC,MAAM;YAoEjB;;;eAGG;6BAFQ,MAAM,YACN,MAAM;sBAzZV,MAAM;0BACF,MAAM,GAAC,IAAI,GAAC,SAAS;;;;;EA2evC;sBApkBY,MAAM"}
|
|
@@ -0,0 +1,462 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @param {JsdocVisitor} iterator
|
|
3
|
+
* @param {RuleConfig} ruleConfig
|
|
4
|
+
* @returns {import('eslint').Rule.RuleModule}
|
|
5
|
+
*/
|
|
6
|
+
export default function iterateJsdoc(iterator: JsdocVisitor, ruleConfig: RuleConfig): import("eslint").Rule.RuleModule;
|
|
7
|
+
export { parseComment } from "@es-joy/jsdoccomment";
|
|
8
|
+
export type Integer = number;
|
|
9
|
+
export type JsdocBlockWithInline = import("@es-joy/jsdoccomment").JsdocBlockWithInline;
|
|
10
|
+
export type ContextObject = {
|
|
11
|
+
disallowName?: string;
|
|
12
|
+
allowName?: string;
|
|
13
|
+
context?: string;
|
|
14
|
+
comment?: string;
|
|
15
|
+
tags?: string[];
|
|
16
|
+
replacement?: string;
|
|
17
|
+
minimum?: Integer;
|
|
18
|
+
message?: string;
|
|
19
|
+
forceRequireReturn?: boolean;
|
|
20
|
+
};
|
|
21
|
+
export type Context = string | ContextObject;
|
|
22
|
+
export type CheckJsdoc = (info: {
|
|
23
|
+
lastIndex?: Integer;
|
|
24
|
+
isFunctionContext?: boolean;
|
|
25
|
+
selector?: string;
|
|
26
|
+
comment?: string;
|
|
27
|
+
}, handler: null | ((jsdoc: import("@es-joy/jsdoccomment").JsdocBlockWithInline) => boolean | undefined), node: import("eslint").Rule.Node) => void;
|
|
28
|
+
export type ForEachPreferredTag = (tagName: string, arrayHandler: (matchingJsdocTag: import("@es-joy/jsdoccomment").JsdocTagWithInline, targetTagName: string) => void, skipReportingBlockedTag?: boolean | undefined) => void;
|
|
29
|
+
export type ReportSettings = (message: string) => void;
|
|
30
|
+
export type ParseClosureTemplateTag = (tag: import("comment-parser").Spec) => string[];
|
|
31
|
+
export type GetPreferredTagNameObject = (cfg: {
|
|
32
|
+
tagName: string;
|
|
33
|
+
}) => string | false | {
|
|
34
|
+
message: string;
|
|
35
|
+
replacement?: string | undefined;
|
|
36
|
+
} | {
|
|
37
|
+
blocked: true;
|
|
38
|
+
tagName: string;
|
|
39
|
+
};
|
|
40
|
+
export type BasicUtils = {
|
|
41
|
+
forEachPreferredTag: ForEachPreferredTag;
|
|
42
|
+
reportSettings: ReportSettings;
|
|
43
|
+
parseClosureTemplateTag: ParseClosureTemplateTag;
|
|
44
|
+
getPreferredTagNameObject: GetPreferredTagNameObject;
|
|
45
|
+
pathDoesNotBeginWith: import("./jsdocUtils.js").PathDoesNotBeginWith;
|
|
46
|
+
};
|
|
47
|
+
export type IsIteratingFunction = () => boolean;
|
|
48
|
+
export type IsVirtualFunction = () => boolean;
|
|
49
|
+
export type Stringify = (tagBlock: import("comment-parser").Block, specRewire?: boolean | undefined) => string;
|
|
50
|
+
export type ReportJSDoc = (msg: string, tag?: import("comment-parser").Spec | {
|
|
51
|
+
line: Integer;
|
|
52
|
+
column?: Integer;
|
|
53
|
+
} | null | undefined, handler?: (() => void) | null | undefined, specRewire?: boolean | undefined, data?: undefined | {
|
|
54
|
+
[key: string]: string;
|
|
55
|
+
}) => any;
|
|
56
|
+
export type GetRegexFromString = (str: string, requiredFlags?: string | undefined) => RegExp;
|
|
57
|
+
export type GetTagDescription = (tg: import("comment-parser").Spec, returnArray?: boolean | undefined) => string[] | string;
|
|
58
|
+
export type SetTagDescription = (tg: import("comment-parser").Spec, matcher: RegExp, setter: (description: string) => string) => Integer;
|
|
59
|
+
export type GetDescription = () => {
|
|
60
|
+
description: string;
|
|
61
|
+
descriptions: string[];
|
|
62
|
+
lastDescriptionLine: Integer;
|
|
63
|
+
};
|
|
64
|
+
export type SetBlockDescription = (setter: (info: {
|
|
65
|
+
delimiter: string;
|
|
66
|
+
postDelimiter: string;
|
|
67
|
+
start: string;
|
|
68
|
+
}, seedTokens: (tokens?: Partial<import("comment-parser").Tokens>) => import("comment-parser").Tokens, descLines: string[]) => import("comment-parser").Line[]) => void;
|
|
69
|
+
export type SetDescriptionLines = (matcher: RegExp, setter: (description: string) => string) => Integer;
|
|
70
|
+
export type ChangeTag = (tag: import("comment-parser").Spec, ...tokens: Partial<import("comment-parser").Tokens>[]) => void;
|
|
71
|
+
export type SetTag = (tag: import("comment-parser").Spec & {
|
|
72
|
+
line: Integer;
|
|
73
|
+
}, tokens?: Partial<import("comment-parser").Tokens> | undefined) => void;
|
|
74
|
+
export type RemoveTag = (tagIndex: Integer, cfg?: {
|
|
75
|
+
removeEmptyBlock?: boolean;
|
|
76
|
+
tagSourceOffset?: Integer;
|
|
77
|
+
} | undefined) => void;
|
|
78
|
+
export type AddTag = (targetTagName: string, number?: number | undefined, tokens?: {} | import("comment-parser").Tokens | undefined) => void;
|
|
79
|
+
export type GetFirstLine = () => Integer | undefined;
|
|
80
|
+
export type SeedTokens = (tokens?: Partial<import("comment-parser").Tokens> | undefined) => import("comment-parser").Tokens;
|
|
81
|
+
/**
|
|
82
|
+
* Sets tokens to empty string.
|
|
83
|
+
*/
|
|
84
|
+
export type EmptyTokens = (tokens: import("comment-parser").Tokens) => void;
|
|
85
|
+
export type AddLine = (sourceIndex: Integer, tokens: Partial<import("comment-parser").Tokens>) => void;
|
|
86
|
+
export type AddLines = (tagIndex: Integer, tagSourceOffset: Integer, numLines: Integer) => void;
|
|
87
|
+
export type MakeMultiline = () => void;
|
|
88
|
+
export type GetFunctionParameterNames = (useDefaultObjectProperties?: boolean | undefined) => import("./jsdocUtils.js").ParamNameInfo[];
|
|
89
|
+
export type HasParams = () => Integer;
|
|
90
|
+
export type IsGenerator = () => boolean;
|
|
91
|
+
export type IsConstructor = () => boolean;
|
|
92
|
+
export type GetJsdocTagsDeep = (tagName: string) => false | {
|
|
93
|
+
idx: Integer;
|
|
94
|
+
name: string;
|
|
95
|
+
type: string;
|
|
96
|
+
}[];
|
|
97
|
+
export type GetPreferredTagName = (cfg: {
|
|
98
|
+
tagName: string;
|
|
99
|
+
skipReportingBlockedTag?: boolean;
|
|
100
|
+
allowObjectReturn?: boolean;
|
|
101
|
+
defaultMessage?: string;
|
|
102
|
+
}) => string | undefined | false | {
|
|
103
|
+
message: string;
|
|
104
|
+
replacement?: string | undefined;
|
|
105
|
+
} | {
|
|
106
|
+
blocked: true;
|
|
107
|
+
tagName: string;
|
|
108
|
+
};
|
|
109
|
+
export type IsValidTag = (name: string, definedTags: string[]) => boolean;
|
|
110
|
+
export type HasATag = (names: string[]) => boolean;
|
|
111
|
+
export type HasTag = (name: string) => boolean;
|
|
112
|
+
export type ComparePaths = (name: string) => (otherPathName: string) => boolean;
|
|
113
|
+
export type DropPathSegmentQuotes = (name: string) => string;
|
|
114
|
+
export type AvoidDocs = () => boolean;
|
|
115
|
+
export type TagMightHaveNamePositionTypePosition = (tagName: string, otherModeMaps?: import("./getDefaultTagStructureForMode.js").TagStructure[] | undefined) => boolean | {
|
|
116
|
+
otherMode: true;
|
|
117
|
+
};
|
|
118
|
+
export type TagMustHave = (tagName: string, otherModeMaps: import("./getDefaultTagStructureForMode.js").TagStructure[]) => boolean | {
|
|
119
|
+
otherMode: false;
|
|
120
|
+
};
|
|
121
|
+
export type TagMissingRequiredTypeOrNamepath = (tag: import("comment-parser").Spec, otherModeMaps: import("./getDefaultTagStructureForMode.js").TagStructure[]) => boolean | {
|
|
122
|
+
otherMode: false;
|
|
123
|
+
};
|
|
124
|
+
export type IsNamepathX = (tagName: string) => boolean;
|
|
125
|
+
export type GetTagStructureForMode = (mde: import("./jsdocUtils.js").ParserMode) => import("./getDefaultTagStructureForMode.js").TagStructure;
|
|
126
|
+
export type MayBeUndefinedTypeTag = (tag: import("comment-parser").Spec) => boolean;
|
|
127
|
+
export type HasValueOrExecutorHasNonEmptyResolveValue = (anyPromiseAsReturn: boolean, allBranches?: boolean | undefined) => boolean;
|
|
128
|
+
export type HasYieldValue = () => boolean;
|
|
129
|
+
export type HasYieldReturnValue = () => boolean;
|
|
130
|
+
export type HasThrowValue = () => boolean;
|
|
131
|
+
export type IsAsync = () => boolean | undefined;
|
|
132
|
+
export type GetTags = (tagName: string) => import("comment-parser").Spec[];
|
|
133
|
+
export type GetPresentTags = (tagList: string[]) => import("@es-joy/jsdoccomment").JsdocTagWithInline[];
|
|
134
|
+
export type FilterTags = (filter: (tag: import("@es-joy/jsdoccomment").JsdocTagWithInline) => boolean) => import("@es-joy/jsdoccomment").JsdocTagWithInline[];
|
|
135
|
+
export type FilterAllTags = (filter: (tag: (import("comment-parser").Spec | import("@es-joy/jsdoccomment").JsdocInlineTagNoType)) => boolean) => (import("comment-parser").Spec | import("@es-joy/jsdoccomment").JsdocInlineTagNoType)[];
|
|
136
|
+
export type GetTagsByType = (tags: import("comment-parser").Spec[]) => {
|
|
137
|
+
tagsWithNames: import("comment-parser").Spec[];
|
|
138
|
+
tagsWithoutNames: import("comment-parser").Spec[];
|
|
139
|
+
};
|
|
140
|
+
export type HasOptionTag = (tagName: string) => boolean;
|
|
141
|
+
export type GetClassNode = () => Node | null;
|
|
142
|
+
export type GetClassJsdoc = () => null | JsdocBlockWithInline;
|
|
143
|
+
export type ClassHasTag = (tagName: string) => boolean;
|
|
144
|
+
export type FindContext = (contexts: Context[], comment: string | undefined) => {
|
|
145
|
+
foundContext: Context | undefined;
|
|
146
|
+
contextStr: string;
|
|
147
|
+
};
|
|
148
|
+
export type Utils = BasicUtils & {
|
|
149
|
+
isIteratingFunction: IsIteratingFunction;
|
|
150
|
+
isVirtualFunction: IsVirtualFunction;
|
|
151
|
+
stringify: Stringify;
|
|
152
|
+
reportJSDoc: ReportJSDoc;
|
|
153
|
+
getRegexFromString: GetRegexFromString;
|
|
154
|
+
getTagDescription: GetTagDescription;
|
|
155
|
+
setTagDescription: SetTagDescription;
|
|
156
|
+
getDescription: GetDescription;
|
|
157
|
+
setBlockDescription: SetBlockDescription;
|
|
158
|
+
setDescriptionLines: SetDescriptionLines;
|
|
159
|
+
changeTag: ChangeTag;
|
|
160
|
+
setTag: SetTag;
|
|
161
|
+
removeTag: RemoveTag;
|
|
162
|
+
addTag: AddTag;
|
|
163
|
+
getFirstLine: GetFirstLine;
|
|
164
|
+
seedTokens: SeedTokens;
|
|
165
|
+
emptyTokens: EmptyTokens;
|
|
166
|
+
addLine: AddLine;
|
|
167
|
+
addLines: AddLines;
|
|
168
|
+
makeMultiline: MakeMultiline;
|
|
169
|
+
flattenRoots: import("./jsdocUtils.js").FlattenRoots;
|
|
170
|
+
getFunctionParameterNames: GetFunctionParameterNames;
|
|
171
|
+
hasParams: HasParams;
|
|
172
|
+
isGenerator: IsGenerator;
|
|
173
|
+
isConstructor: IsConstructor;
|
|
174
|
+
getJsdocTagsDeep: GetJsdocTagsDeep;
|
|
175
|
+
getPreferredTagName: GetPreferredTagName;
|
|
176
|
+
isValidTag: IsValidTag;
|
|
177
|
+
hasATag: HasATag;
|
|
178
|
+
hasTag: HasTag;
|
|
179
|
+
comparePaths: ComparePaths;
|
|
180
|
+
dropPathSegmentQuotes: DropPathSegmentQuotes;
|
|
181
|
+
avoidDocs: AvoidDocs;
|
|
182
|
+
tagMightHaveNamePosition: TagMightHaveNamePositionTypePosition;
|
|
183
|
+
tagMightHaveTypePosition: TagMightHaveNamePositionTypePosition;
|
|
184
|
+
tagMustHaveNamePosition: TagMustHave;
|
|
185
|
+
tagMustHaveTypePosition: TagMustHave;
|
|
186
|
+
tagMissingRequiredTypeOrNamepath: TagMissingRequiredTypeOrNamepath;
|
|
187
|
+
isNamepathDefiningTag: IsNamepathX;
|
|
188
|
+
isNamepathReferencingTag: IsNamepathX;
|
|
189
|
+
isNamepathOrUrlReferencingTag: IsNamepathX;
|
|
190
|
+
tagMightHaveNamepath: IsNamepathX;
|
|
191
|
+
getTagStructureForMode: GetTagStructureForMode;
|
|
192
|
+
mayBeUndefinedTypeTag: MayBeUndefinedTypeTag;
|
|
193
|
+
hasValueOrExecutorHasNonEmptyResolveValue: HasValueOrExecutorHasNonEmptyResolveValue;
|
|
194
|
+
hasYieldValue: HasYieldValue;
|
|
195
|
+
hasYieldReturnValue: HasYieldReturnValue;
|
|
196
|
+
hasThrowValue: HasThrowValue;
|
|
197
|
+
isAsync: IsAsync;
|
|
198
|
+
getTags: GetTags;
|
|
199
|
+
getPresentTags: GetPresentTags;
|
|
200
|
+
filterTags: FilterTags;
|
|
201
|
+
filterAllTags: FilterAllTags;
|
|
202
|
+
getTagsByType: GetTagsByType;
|
|
203
|
+
hasOptionTag: HasOptionTag;
|
|
204
|
+
getClassNode: GetClassNode;
|
|
205
|
+
getClassJsdoc: GetClassJsdoc;
|
|
206
|
+
classHasTag: ClassHasTag;
|
|
207
|
+
findContext: FindContext;
|
|
208
|
+
};
|
|
209
|
+
/**
|
|
210
|
+
* Should use ESLint rule's typing.
|
|
211
|
+
*/
|
|
212
|
+
export type EslintRuleMeta = import("eslint").Rule.RuleMetaData;
|
|
213
|
+
/**
|
|
214
|
+
* A plain object for tracking state as needed by rules across iterations.
|
|
215
|
+
*/
|
|
216
|
+
export type StateObject = {
|
|
217
|
+
globalTags: {};
|
|
218
|
+
hasDuplicates: {
|
|
219
|
+
[key: string]: boolean;
|
|
220
|
+
};
|
|
221
|
+
selectorMap: {
|
|
222
|
+
[selector: string]: {
|
|
223
|
+
[comment: string]: Integer;
|
|
224
|
+
};
|
|
225
|
+
};
|
|
226
|
+
hasTag: {
|
|
227
|
+
[key: string]: boolean;
|
|
228
|
+
};
|
|
229
|
+
hasNonComment: number;
|
|
230
|
+
hasNonCommentBeforeTag: {
|
|
231
|
+
[key: string]: boolean | number;
|
|
232
|
+
};
|
|
233
|
+
};
|
|
234
|
+
/**
|
|
235
|
+
* The Node AST as supplied by the parser.
|
|
236
|
+
*/
|
|
237
|
+
export type Node = import("eslint").Rule.Node;
|
|
238
|
+
export type Report = (message: string, fix?: import("eslint").Rule.ReportFixer | null | undefined, jsdocLoc?: {
|
|
239
|
+
line?: Integer;
|
|
240
|
+
column?: Integer;
|
|
241
|
+
} | (import("comment-parser").Spec & {
|
|
242
|
+
line?: Integer;
|
|
243
|
+
}) | null | undefined, data?: undefined | {
|
|
244
|
+
[key: string]: string;
|
|
245
|
+
}) => void;
|
|
246
|
+
export type PreferredTypes = {
|
|
247
|
+
[key: string]: false | string | {
|
|
248
|
+
message: string;
|
|
249
|
+
replacement?: false | string;
|
|
250
|
+
skipRootChecking?: boolean;
|
|
251
|
+
};
|
|
252
|
+
};
|
|
253
|
+
export type StructuredTags = {
|
|
254
|
+
[key: string]: {
|
|
255
|
+
name?: "text" | "namepath-defining" | "namepath-referencing" | false;
|
|
256
|
+
type?: boolean | string[];
|
|
257
|
+
required?: ("name" | "type" | "typeOrNameRequired")[];
|
|
258
|
+
};
|
|
259
|
+
};
|
|
260
|
+
/**
|
|
261
|
+
* Settings from ESLint types.
|
|
262
|
+
*/
|
|
263
|
+
export type Settings = {
|
|
264
|
+
maxLines: Integer;
|
|
265
|
+
minLines: Integer;
|
|
266
|
+
tagNamePreference: import("./jsdocUtils.js").TagNamePreference;
|
|
267
|
+
mode: import("./jsdocUtils.js").ParserMode;
|
|
268
|
+
preferredTypes: PreferredTypes;
|
|
269
|
+
structuredTags: StructuredTags;
|
|
270
|
+
[name: string]: any;
|
|
271
|
+
contexts?: Context[];
|
|
272
|
+
};
|
|
273
|
+
export type JSDocSettings = {
|
|
274
|
+
settings?: {
|
|
275
|
+
jsdoc?: {
|
|
276
|
+
ignorePrivate: boolean;
|
|
277
|
+
ignoreInternal: boolean;
|
|
278
|
+
maxLines: Integer;
|
|
279
|
+
minLines: Integer;
|
|
280
|
+
tagNamePreference: import("./jsdocUtils.js").TagNamePreference;
|
|
281
|
+
preferredTypes: PreferredTypes;
|
|
282
|
+
structuredTags: StructuredTags;
|
|
283
|
+
overrideReplacesDocs: boolean;
|
|
284
|
+
ignoreReplacesDocs: boolean;
|
|
285
|
+
implementsReplacesDocs: boolean;
|
|
286
|
+
augmentsExtendsReplacesDocs: boolean;
|
|
287
|
+
exemptDestructuredRootsFromChecks: boolean;
|
|
288
|
+
mode: import("./jsdocUtils.js").ParserMode;
|
|
289
|
+
contexts: Context[];
|
|
290
|
+
};
|
|
291
|
+
};
|
|
292
|
+
};
|
|
293
|
+
/**
|
|
294
|
+
* Create the report function
|
|
295
|
+
*/
|
|
296
|
+
export type MakeReport = (context: import("eslint").Rule.RuleContext, commentNode: import("estree").Node) => Report;
|
|
297
|
+
export type JsdocVisitorBasic = (arg: {
|
|
298
|
+
context: import("eslint").Rule.RuleContext;
|
|
299
|
+
sourceCode: import("eslint").SourceCode;
|
|
300
|
+
indent?: string;
|
|
301
|
+
info?: {
|
|
302
|
+
comment?: string | undefined;
|
|
303
|
+
lastIndex?: Integer | undefined;
|
|
304
|
+
};
|
|
305
|
+
state?: StateObject;
|
|
306
|
+
globalState?: Map<string, Map<string, string>>;
|
|
307
|
+
jsdoc?: JsdocBlockWithInline;
|
|
308
|
+
jsdocNode?: import("eslint").Rule.Node & {
|
|
309
|
+
range: [number, number];
|
|
310
|
+
};
|
|
311
|
+
node?: Node;
|
|
312
|
+
allComments?: import("estree").Node[];
|
|
313
|
+
report?: Report;
|
|
314
|
+
makeReport?: MakeReport;
|
|
315
|
+
settings: Settings;
|
|
316
|
+
utils: BasicUtils;
|
|
317
|
+
}) => any;
|
|
318
|
+
export type JsdocVisitor = (arg: {
|
|
319
|
+
context: import("eslint").Rule.RuleContext;
|
|
320
|
+
sourceCode: import("eslint").SourceCode;
|
|
321
|
+
indent: string;
|
|
322
|
+
info: {
|
|
323
|
+
comment?: string | undefined;
|
|
324
|
+
lastIndex?: Integer | undefined;
|
|
325
|
+
};
|
|
326
|
+
state: StateObject;
|
|
327
|
+
globalState: Map<string, Map<string, string>>;
|
|
328
|
+
jsdoc: JsdocBlockWithInline;
|
|
329
|
+
jsdocNode: import("eslint").Rule.Node & {
|
|
330
|
+
range: [number, number];
|
|
331
|
+
};
|
|
332
|
+
node: Node | null;
|
|
333
|
+
allComments?: import("estree").Node[];
|
|
334
|
+
report: Report;
|
|
335
|
+
makeReport?: MakeReport;
|
|
336
|
+
settings: Settings;
|
|
337
|
+
utils: Utils;
|
|
338
|
+
}) => any;
|
|
339
|
+
export type NonCommentArgs = {
|
|
340
|
+
node: Node & {
|
|
341
|
+
range: [number, number];
|
|
342
|
+
};
|
|
343
|
+
state: StateObject;
|
|
344
|
+
};
|
|
345
|
+
export type RuleConfig = {
|
|
346
|
+
/**
|
|
347
|
+
* ESLint rule meta
|
|
348
|
+
*/
|
|
349
|
+
meta: EslintRuleMeta;
|
|
350
|
+
/**
|
|
351
|
+
* Any default contexts
|
|
352
|
+
*/
|
|
353
|
+
contextDefaults?: jsdocUtils.DefaultContexts | undefined;
|
|
354
|
+
/**
|
|
355
|
+
* Whether to force a `contexts` check
|
|
356
|
+
*/
|
|
357
|
+
contextSelected?: true | undefined;
|
|
358
|
+
/**
|
|
359
|
+
* Whether to iterate all JSDoc blocks by default
|
|
360
|
+
* regardless of context
|
|
361
|
+
*/
|
|
362
|
+
iterateAllJsdocs?: true | undefined;
|
|
363
|
+
/**
|
|
364
|
+
* Whether to check `@private` blocks (normally exempted)
|
|
365
|
+
*/
|
|
366
|
+
checkPrivate?: true | undefined;
|
|
367
|
+
/**
|
|
368
|
+
* Whether to check `@internal` blocks (normally exempted)
|
|
369
|
+
*/
|
|
370
|
+
checkInternal?: true | undefined;
|
|
371
|
+
/**
|
|
372
|
+
* Whether to iterates over all JSDoc blocks regardless of attachment
|
|
373
|
+
*/
|
|
374
|
+
checkFile?: true | undefined;
|
|
375
|
+
/**
|
|
376
|
+
* Whether to avoid relying on settings for global contexts
|
|
377
|
+
*/
|
|
378
|
+
nonGlobalSettings?: true | undefined;
|
|
379
|
+
/**
|
|
380
|
+
* Whether to disable the tracking of visited comment nodes (as
|
|
381
|
+
* non-tracked may conduct further actions)
|
|
382
|
+
*/
|
|
383
|
+
noTracking?: true | undefined;
|
|
384
|
+
/**
|
|
385
|
+
* Whether the rule expects contexts to be based on a match option
|
|
386
|
+
*/
|
|
387
|
+
matchContext?: true | undefined;
|
|
388
|
+
/**
|
|
389
|
+
* Handler to be executed upon exiting iteration of program AST
|
|
390
|
+
*/
|
|
391
|
+
exit?: ((args: {
|
|
392
|
+
context: import("eslint").Rule.RuleContext;
|
|
393
|
+
state: StateObject;
|
|
394
|
+
settings: Settings;
|
|
395
|
+
utils: BasicUtils;
|
|
396
|
+
}) => void) | undefined;
|
|
397
|
+
/**
|
|
398
|
+
* Handler to be executed if rule wishes
|
|
399
|
+
* to be supplied nodes without comments
|
|
400
|
+
*/
|
|
401
|
+
nonComment?: ((nca: NonCommentArgs) => void) | undefined;
|
|
402
|
+
};
|
|
403
|
+
/**
|
|
404
|
+
* @typedef {{
|
|
405
|
+
* [key: string]: false|string|{
|
|
406
|
+
* message: string,
|
|
407
|
+
* replacement?: false|string
|
|
408
|
+
* skipRootChecking?: boolean
|
|
409
|
+
* }
|
|
410
|
+
* }} PreferredTypes
|
|
411
|
+
*/
|
|
412
|
+
/**
|
|
413
|
+
* @typedef {{
|
|
414
|
+
* [key: string]: {
|
|
415
|
+
* name?: "text"|"namepath-defining"|"namepath-referencing"|false,
|
|
416
|
+
* type?: boolean|string[],
|
|
417
|
+
* required?: ("name"|"type"|"typeOrNameRequired")[]
|
|
418
|
+
* }
|
|
419
|
+
* }} StructuredTags
|
|
420
|
+
*/
|
|
421
|
+
/**
|
|
422
|
+
* Settings from ESLint types.
|
|
423
|
+
* @typedef {{
|
|
424
|
+
* maxLines: Integer,
|
|
425
|
+
* minLines: Integer,
|
|
426
|
+
* tagNamePreference: import('./jsdocUtils.js').TagNamePreference,
|
|
427
|
+
* mode: import('./jsdocUtils.js').ParserMode,
|
|
428
|
+
* preferredTypes: PreferredTypes,
|
|
429
|
+
* structuredTags: StructuredTags,
|
|
430
|
+
* [name: string]: any,
|
|
431
|
+
* contexts?: Context[]
|
|
432
|
+
* }} Settings
|
|
433
|
+
*/
|
|
434
|
+
/**
|
|
435
|
+
* @typedef {{
|
|
436
|
+
* settings?: {
|
|
437
|
+
* jsdoc?: {
|
|
438
|
+
* ignorePrivate: boolean,
|
|
439
|
+
* ignoreInternal: boolean,
|
|
440
|
+
* maxLines: Integer,
|
|
441
|
+
* minLines: Integer,
|
|
442
|
+
* tagNamePreference: import('./jsdocUtils.js').TagNamePreference,
|
|
443
|
+
* preferredTypes: PreferredTypes,
|
|
444
|
+
* structuredTags: StructuredTags,
|
|
445
|
+
* overrideReplacesDocs: boolean,
|
|
446
|
+
* ignoreReplacesDocs: boolean,
|
|
447
|
+
* implementsReplacesDocs: boolean,
|
|
448
|
+
* augmentsExtendsReplacesDocs: boolean,
|
|
449
|
+
* exemptDestructuredRootsFromChecks: boolean,
|
|
450
|
+
* mode: import('./jsdocUtils.js').ParserMode,
|
|
451
|
+
* contexts: Context[],
|
|
452
|
+
* }
|
|
453
|
+
* }
|
|
454
|
+
* }} JSDocSettings
|
|
455
|
+
*/
|
|
456
|
+
/**
|
|
457
|
+
* @param {import('eslint').Rule.RuleContext & JSDocSettings} context
|
|
458
|
+
* @returns {Settings|false}
|
|
459
|
+
*/
|
|
460
|
+
export function getSettings(context: import("eslint").Rule.RuleContext & JSDocSettings): Settings | false;
|
|
461
|
+
import * as jsdocUtils from './jsdocUtils.js';
|
|
462
|
+
//# sourceMappingURL=iterateJsdoc.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"iterateJsdoc.d.ts","sourceRoot":"","sources":["../src/iterateJsdoc.js"],"names":[],"mappings":"AAgyEA;;;;GAIG;AACH,+CAJW,YAAY,cACZ,UAAU,GACR,OAAO,QAAQ,EAAE,IAAI,CAAC,UAAU,CA8K5C;;sBAp8EY,MAAM;mCAIN,OAAO,sBAAsB,EAAE,oBAAoB;4BAInD;IACR,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAChB,WAA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I,CAAC,WAAW,GAAG,aAAa,GAC/C,QAAQ,GAAC,KAAK,CA4D1B;4BAxxD2B,iBAAiB"}
|
package/package.json
CHANGED
package/eslint.config.js
DELETED
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
import jsdoc from './src/index.js';
|
|
2
|
-
import {
|
|
3
|
-
recommended as canonical,
|
|
4
|
-
} from 'eslint-config-canonical/canonical';
|
|
5
|
-
import {
|
|
6
|
-
recommended as canonicalJsdoc,
|
|
7
|
-
} from 'eslint-config-canonical/jsdoc';
|
|
8
|
-
import globals from 'globals';
|
|
9
|
-
|
|
10
|
-
const common = {
|
|
11
|
-
linterOptions: {
|
|
12
|
-
reportUnusedDisableDirectives: 'off',
|
|
13
|
-
},
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
export default [
|
|
17
|
-
...canonical,
|
|
18
|
-
...canonicalJsdoc,
|
|
19
|
-
...jsdoc.configs['examples-and-default-expressions'],
|
|
20
|
-
{
|
|
21
|
-
// Must be by itself
|
|
22
|
-
ignores: [
|
|
23
|
-
'dist/**', '.ignore/**', '**/*.d.ts',
|
|
24
|
-
],
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
...common,
|
|
28
|
-
languageOptions: {
|
|
29
|
-
ecmaVersion: 'latest',
|
|
30
|
-
globals: globals.node,
|
|
31
|
-
sourceType: 'module',
|
|
32
|
-
},
|
|
33
|
-
rules: {
|
|
34
|
-
'@stylistic/array-element-newline': 0,
|
|
35
|
-
'@stylistic/no-extra-parens': 0,
|
|
36
|
-
'filenames/match-regex': 0,
|
|
37
|
-
'import/extensions': 0,
|
|
38
|
-
'import/no-useless-path-segments': 0,
|
|
39
|
-
'linebreak-style': 0,
|
|
40
|
-
'no-inline-comments': 0,
|
|
41
|
-
'prefer-named-capture-group': 0,
|
|
42
|
-
'require-unicode-regexp': [
|
|
43
|
-
'error',
|
|
44
|
-
{
|
|
45
|
-
requireFlag: 'v',
|
|
46
|
-
},
|
|
47
|
-
],
|
|
48
|
-
'unicorn/import-index': 0,
|
|
49
|
-
'unicorn/no-array-reduce': 0,
|
|
50
|
-
'unicorn/no-unsafe-regex': 0,
|
|
51
|
-
'unicorn/prefer-array-some': 0,
|
|
52
|
-
'unicorn/prevent-abbreviations': 0,
|
|
53
|
-
},
|
|
54
|
-
},
|
|
55
|
-
{
|
|
56
|
-
...common,
|
|
57
|
-
files: [
|
|
58
|
-
'.ncurc.cjs',
|
|
59
|
-
],
|
|
60
|
-
languageOptions: {
|
|
61
|
-
parserOptions: {
|
|
62
|
-
ecmaFeatures: {
|
|
63
|
-
impliedStrict: false,
|
|
64
|
-
},
|
|
65
|
-
},
|
|
66
|
-
sourceType: 'script',
|
|
67
|
-
},
|
|
68
|
-
rules: {
|
|
69
|
-
'canonical/filename-match-regex': 0,
|
|
70
|
-
'import/no-commonjs': 0,
|
|
71
|
-
strict: [
|
|
72
|
-
'error',
|
|
73
|
-
'global',
|
|
74
|
-
],
|
|
75
|
-
},
|
|
76
|
-
},
|
|
77
|
-
{
|
|
78
|
-
...common,
|
|
79
|
-
files: [
|
|
80
|
-
'test/**/*.js',
|
|
81
|
-
],
|
|
82
|
-
languageOptions: {
|
|
83
|
-
ecmaVersion: 'latest',
|
|
84
|
-
globals: globals.mocha,
|
|
85
|
-
sourceType: 'module',
|
|
86
|
-
},
|
|
87
|
-
rules: {
|
|
88
|
-
'no-restricted-syntax': 0,
|
|
89
|
-
'unicorn/prevent-abbreviations': 0,
|
|
90
|
-
},
|
|
91
|
-
},
|
|
92
|
-
];
|
package/pnpm-workspace.yaml
DELETED