Skip to content

Commit 497e749

Browse files
fix: jsdoc/type-formatting setting for trailing comma (#107)
1 parent 65cd23e commit 497e749

File tree

4 files changed

+18
-16
lines changed

4 files changed

+18
-16
lines changed

configs/typescript.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,8 @@ async function getTypescriptJSDocRecommendedConfig() {
294294
{
295295
objectTypeBracketSpacing: " ",
296296
objectFieldSeparator: "comma-and-linebreak",
297+
objectFieldSeparatorTrailingPunctuation: true,
298+
trailingPunctuationMultilineOnly: true,
297299
},
298300
],
299301

package-lock.json

Lines changed: 13 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
"eslint-config-prettier": "^10.1.8",
4545
"eslint-plugin-import": "^2.32.0",
4646
"eslint-plugin-jest": "^29.12.1",
47-
"eslint-plugin-jsdoc": "^62.3.0",
47+
"eslint-plugin-jsdoc": "^62.4.1",
4848
"eslint-plugin-n": "^17.23.2",
4949
"eslint-plugin-prettier": "^5.5.5",
5050
"eslint-plugin-react": "^7.37.5",

validation/code.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -496,14 +496,14 @@ handler();
496496
/**
497497
* @typedef {{
498498
* foo: boolean | number,
499-
* bar: (baz: number) => void
499+
* bar: (baz: number) => void,
500500
* }} Example1
501501
*/
502502

503503
/**
504504
* @typedef {{
505505
* (context: `test${string}`, path: string, request: string): string | false,
506-
* (path: string, request: string): string | false
506+
* (path: string, request: string): string | false,
507507
* }} Example3
508508
*/
509509

0 commit comments

Comments
 (0)