@depup/eslint-plugin-jsdoc 65.3.0-depup.0 → 65.3.2-depup.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.
package/README.md CHANGED
@@ -13,16 +13,17 @@ npm install @depup/eslint-plugin-jsdoc
13
13
 
14
14
  | Field | Value |
15
15
  |-------|-------|
16
- | Original | [eslint-plugin-jsdoc](https://www.npmjs.com/package/eslint-plugin-jsdoc) @ 65.3.0 |
17
- | Processed | 2026-10-12 |
16
+ | Original | [eslint-plugin-jsdoc](https://www.npmjs.com/package/eslint-plugin-jsdoc) @ 65.3.2 |
17
+ | Processed | 2026-10-13 |
18
18
  | Smoke test | passed |
19
- | Deps updated | 1 |
19
+ | Deps updated | 2 |
20
20
 
21
21
  ## Dependency Changes
22
22
 
23
23
  | Dependency | From | To |
24
24
  |------------|------|-----|
25
- | @typescript-eslint/utils | ^8.70.1 | ^8.71.1 |
25
+ | @es-joy/jsdoccomment | ~0.98.0 | ^0.99.0 |
26
+ | @typescript-eslint/utils | ^8.70.1 | ^8.71.2 |
26
27
 
27
28
  ---
28
29
 
package/changes.json CHANGED
@@ -1,10 +1,14 @@
1
1
  {
2
2
  "bumped": {
3
+ "@es-joy/jsdoccomment": {
4
+ "from": "~0.98.0",
5
+ "to": "^0.99.0"
6
+ },
3
7
  "@typescript-eslint/utils": {
4
8
  "from": "^8.70.1",
5
- "to": "^8.71.1"
9
+ "to": "^8.71.2"
6
10
  }
7
11
  },
8
- "timestamp": "2026-10-12T00:39:11.741Z",
9
- "totalUpdated": 1
12
+ "timestamp": "2026-10-13T16:10:58.556Z",
13
+ "totalUpdated": 2
10
14
  }
package/package.json CHANGED
@@ -5,9 +5,9 @@
5
5
  "url": "http://gajus.com"
6
6
  },
7
7
  "dependencies": {
8
- "@es-joy/jsdoccomment": "~0.98.0",
8
+ "@es-joy/jsdoccomment": "^0.99.0",
9
9
  "@es-joy/resolve.exports": "1.2.0",
10
- "@typescript-eslint/utils": "^8.71.1",
10
+ "@typescript-eslint/utils": "^8.71.2",
11
11
  "are-docs-informative": "^0.1.1",
12
12
  "comment-parser": "1.4.9",
13
13
  "debug": "^4.4.3",
@@ -168,18 +168,22 @@
168
168
  "test-cov": "TIMING=1 c8 --reporter text pnpm run test-no-cov",
169
169
  "test-index": "pnpm run test-no-cov test/rules/index.js"
170
170
  },
171
- "version": "65.3.0-depup.0",
171
+ "version": "65.3.2-depup.0",
172
172
  "depup": {
173
173
  "changes": {
174
+ "@es-joy/jsdoccomment": {
175
+ "from": "~0.98.0",
176
+ "to": "^0.99.0"
177
+ },
174
178
  "@typescript-eslint/utils": {
175
179
  "from": "^8.70.1",
176
- "to": "^8.71.1"
180
+ "to": "^8.71.2"
177
181
  }
178
182
  },
179
- "depsUpdated": 1,
183
+ "depsUpdated": 2,
180
184
  "originalPackage": "eslint-plugin-jsdoc",
181
- "originalVersion": "65.3.0",
182
- "processedAt": "2026-10-12T00:39:34.382Z",
185
+ "originalVersion": "65.3.2",
186
+ "processedAt": "2026-10-13T16:11:24.215Z",
183
187
  "smokeTest": "passed"
184
188
  }
185
189
  }
@@ -1,7 +1,20 @@
1
1
  import iterateJsdoc from '../iterateJsdoc.js';
2
2
 
3
+ /**
4
+ * @param {import('eslint').Rule.Node|null} node
5
+ * @returns {boolean}
6
+ */
7
+ const isAccessor = (node) => {
8
+ const methodNode = node?.type === 'FunctionExpression' ? node.parent : node;
9
+
10
+ return [
11
+ 'get', 'set',
12
+ ].includes(/** @type {{kind?: string}} */ (methodNode)?.kind ?? '');
13
+ };
14
+
3
15
  export default iterateJsdoc(({
4
16
  context,
17
+ node,
5
18
  utils,
6
19
  }) => {
7
20
  const {
@@ -26,6 +39,12 @@ export default iterateJsdoc(({
26
39
  }
27
40
  }
28
41
 
42
+ // A getter or setter has no initializer which a `@default` could repeat;
43
+ // its `@default` documents the default value of the property
44
+ if (isAccessor(node)) {
45
+ return;
46
+ }
47
+
29
48
  const defaultTags = utils.getPresentTags([
30
49
  'default', 'defaultvalue',
31
50
  ]);
@@ -59,6 +59,172 @@ const typescriptGlobals = [
59
59
  'Lowercase',
60
60
  'Capitalize',
61
61
  'Uncapitalize',
62
+
63
+ // Type-only globals of TypeScript's standard library, grouped by the
64
+ // `typescript/lib` file which first declares them
65
+
66
+ // lib.es5.d.ts
67
+ 'ArrayBufferConstructor',
68
+ 'ArrayBufferLike',
69
+ 'ArrayBufferTypes',
70
+ 'ArrayBufferView',
71
+ 'ArrayConstructor',
72
+ 'ArrayLike',
73
+ 'BooleanConstructor',
74
+ 'CallableFunction',
75
+ 'ConcatArray',
76
+ 'DataViewConstructor',
77
+ 'DateConstructor',
78
+ 'ErrorConstructor',
79
+ 'EvalErrorConstructor',
80
+ 'Float32ArrayConstructor',
81
+ 'Float64ArrayConstructor',
82
+ 'FunctionConstructor',
83
+ 'IArguments',
84
+ 'ImportAssertions',
85
+ 'ImportAttributes',
86
+ 'ImportCallOptions',
87
+ 'ImportMeta',
88
+ 'Int16ArrayConstructor',
89
+ 'Int32ArrayConstructor',
90
+ 'Int8ArrayConstructor',
91
+ 'NewableFunction',
92
+ 'NoInfer',
93
+ 'NumberConstructor',
94
+ 'ObjectConstructor',
95
+ 'PromiseConstructorLike',
96
+ 'PromiseLike',
97
+ 'PropertyDescriptor',
98
+ 'PropertyDescriptorMap',
99
+ 'PropertyKey',
100
+ 'RangeErrorConstructor',
101
+ 'ReadonlyArray',
102
+ 'ReferenceErrorConstructor',
103
+ 'RegExpConstructor',
104
+ 'RegExpExecArray',
105
+ 'RegExpMatchArray',
106
+ 'StringConstructor',
107
+ 'SyntaxErrorConstructor',
108
+ 'TemplateStringsArray',
109
+ 'TypeErrorConstructor',
110
+ 'TypedPropertyDescriptor',
111
+ 'URIErrorConstructor',
112
+ 'Uint16ArrayConstructor',
113
+ 'Uint32ArrayConstructor',
114
+ 'Uint8ArrayConstructor',
115
+ 'Uint8ClampedArrayConstructor',
116
+ 'WeakKey',
117
+ 'WeakKeyTypes',
118
+
119
+ // lib.es2015.collection.d.ts
120
+ 'MapConstructor',
121
+ 'ReadonlyMap',
122
+ 'ReadonlySet',
123
+ 'SetConstructor',
124
+ 'WeakMapConstructor',
125
+ 'WeakSetConstructor',
126
+
127
+ // lib.es2015.generator.d.ts
128
+ 'Generator',
129
+ 'GeneratorFunction',
130
+ 'GeneratorFunctionConstructor',
131
+
132
+ // lib.es2015.iterable.d.ts
133
+ 'ArrayIterator',
134
+ 'BuiltinIteratorReturn',
135
+ 'IterableIterator',
136
+ 'IteratorResult',
137
+ 'IteratorReturnResult',
138
+ 'IteratorYieldResult',
139
+ 'MapIterator',
140
+ 'PromiseConstructor',
141
+ 'SetIterator',
142
+ 'StringIterator',
143
+ 'SymbolConstructor',
144
+
145
+ // lib.es2015.proxy.d.ts
146
+ 'ProxyConstructor',
147
+ 'ProxyHandler',
148
+
149
+ // lib.es2017.sharedmemory.d.ts
150
+ 'SharedArrayBufferConstructor',
151
+
152
+ // lib.es2018.asyncgenerator.d.ts
153
+ 'AsyncGenerator',
154
+ 'AsyncGeneratorFunction',
155
+ 'AsyncGeneratorFunctionConstructor',
156
+
157
+ // lib.es2018.asynciterable.d.ts
158
+ 'AsyncIterable',
159
+ 'AsyncIterableIterator',
160
+ 'AsyncIterator',
161
+ 'AsyncIteratorObject',
162
+
163
+ // lib.es2019.array.d.ts
164
+ 'FlatArray',
165
+
166
+ // lib.es2020.bigint.d.ts
167
+ 'BigInt64ArrayConstructor',
168
+ 'BigIntConstructor',
169
+ 'BigIntToLocaleStringOptions',
170
+ 'BigUint64ArrayConstructor',
171
+
172
+ // lib.es2020.promise.d.ts
173
+ 'PromiseFulfilledResult',
174
+ 'PromiseRejectedResult',
175
+ 'PromiseSettledResult',
176
+
177
+ // lib.es2020.symbol.wellknown.d.ts
178
+ 'RegExpStringIterator',
179
+
180
+ // lib.es2021.promise.d.ts
181
+ 'AggregateErrorConstructor',
182
+
183
+ // lib.es2021.weakref.d.ts
184
+ 'FinalizationRegistryConstructor',
185
+ 'WeakRefConstructor',
186
+
187
+ // lib.es2022.error.d.ts
188
+ 'ErrorOptions',
189
+
190
+ // lib.es2022.regexp.d.ts
191
+ 'RegExpIndicesArray',
192
+
193
+ // lib.es2024.promise.d.ts
194
+ 'PromiseWithResolvers',
195
+
196
+ // lib.es2025.collection.d.ts
197
+ 'ReadonlySetLike',
198
+
199
+ // lib.es2025.iterator.d.ts
200
+ 'IteratorObjectConstructor',
201
+
202
+ // lib.esnext.disposable.d.ts
203
+ 'AsyncDisposable',
204
+ 'AsyncDisposableStackConstructor',
205
+ 'Disposable',
206
+ 'DisposableStackConstructor',
207
+ 'SuppressedErrorConstructor',
208
+
209
+ // lib.decorators.d.ts
210
+ 'ClassAccessorDecoratorContext',
211
+ 'ClassAccessorDecoratorResult',
212
+ 'ClassAccessorDecoratorTarget',
213
+ 'ClassDecoratorContext',
214
+ 'ClassFieldDecoratorContext',
215
+ 'ClassGetterDecoratorContext',
216
+ 'ClassMemberDecoratorContext',
217
+ 'ClassMethodDecoratorContext',
218
+ 'ClassSetterDecoratorContext',
219
+ 'DecoratorContext',
220
+ 'DecoratorMetadata',
221
+ 'DecoratorMetadataObject',
222
+
223
+ // lib.decorators.legacy.d.ts
224
+ 'ClassDecorator',
225
+ 'MethodDecorator',
226
+ 'ParameterDecorator',
227
+ 'PropertyDecorator',
62
228
  ];
63
229
 
64
230
  /**