Skip to content

Commit 328fb2e

Browse files
committed
chore: update header comment info of files
1 parent 8557221 commit 328fb2e

File tree

14 files changed

+35
-29
lines changed

14 files changed

+35
-29
lines changed

docs/.vitepress/theme/components/markdown/plugins/image.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import type MarkdownIt from 'markdown-it'
88
* `![Image Example](/img/a.png) <!-- -->` use lazy attrs
99
* `![Image Example](/img/a.png) <!-- size=200 -->` use lazy attrs. width 200. height 200.
1010
* `![Image Example](/img/a.gif) <!-- size=900x220 -->` use lazy attrs. width 900. height 220.
11-
* @author Zhengqbbb
11+
* @author Zhengqbbb <zhengqbbb@gmail.com>
1212
*/
1313
export function ImagePlugin(md: MarkdownIt) {
1414
const imageRender = md.renderer.rules.image!

packages/@cz-git/plugin-inquirer/src/checkbox/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
* @description inquirer plugin - Search Checkbox
3-
* @author @Zhengqbbb (zhengqbbb@gmail.com)
3+
* @author Zhengqbbb <zhengqbbb@gmail.com>
44
* @license MIT
55
*/
66

packages/@cz-git/plugin-inquirer/src/input/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
2-
* @description inquirer plugin - Search Checkbox
3-
* @author @Zhengqbbb (zhengqbbb@gmail.com)
2+
* @description inquirer plugin - Support completion of input
3+
* @author Zhengqbbb <zhengqbbb@gmail.com>
44
* @license MIT
55
*/
66

packages/@cz-git/plugin-inquirer/src/list/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
* @description inquirer plugin - Search List
3-
* @author @Zhengqbbb (zhengqbbb@gmail.com)
3+
* @author Zhengqbbb <zhengqbbb@gmail.com>
44
* @license MIT
55
* Powered by `inquirer-autocomplete-prompt`
66
*/

packages/@cz-git/plugin-inquirer/src/shared/utils/fuzzy.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
/**
2-
* @description provide list and checkBox fuzzy search
3-
* @author @Zhengqbbb (zhengqbbb@gmail.com)
2+
* @description Provide list and checkBox fuzzy search
3+
* @author Zhengqbbb <zhengqbbb@gmail.com>
44
* @license MIT
55
*/
66

77
import type { FilterArrayItemType } from '../types'
88

99
/**
10-
* @description inputString match targetString return match score
10+
* input string match target string return match score
11+
*
1112
* @param {string} input input string
1213
* @param {string} target target string
1314
* @param {boolean} caseSensitive isCaseSensitive, default: false
@@ -50,7 +51,8 @@ export function fuzzyMatch(
5051
}
5152

5253
/**
53-
* @description Array fuzzy filter
54+
* Array fuzzy filter
55+
*
5456
* @param {string} input input string
5557
* @param {Array<FilterArrayItemType | unknown>} arr target Array
5658
* @return {Array<FilterArrayItemType>} filtered array

packages/@cz-git/plugin-inquirer/src/shared/utils/style.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* Terminal style output colorizen
3-
* Inspired by picocolors(https://www.npmjs.com/package/picocolors)
4-
* @author: @Zhengqbbb (zhengqbbb@gmail.com)
3+
* Inspired by `picocolors` (https://www.npmjs.com/package/picocolors)
4+
* @author Zhengqbbb <zhengqbbb@gmail.com>
55
* @license MIT
66
*/
77

packages/@cz-git/plugin-loader/src/index.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/**
2+
* @description Commitizen and Commitlint config loader (Main: `configLoader`)
3+
* @author Zhengqbbb <zhengqbbb@gmail.com>
4+
* @license MIT
5+
*/
6+
17
import '@commitlint/types'
28
import path from 'node:path'
39
import os from 'node:os'

packages/cz-git/src/generator/message.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
2-
* @description generate commit message `generateMessage`
3-
* @author @Zhengqbbb (zhengqbbb@gmail.com)
2+
* @description (Main: `generateMessage`) - Generate commit message
3+
* @author Zhengqbbb <zhengqbbb@gmail.com>
44
* @license MIT
55
*/
66

packages/cz-git/src/generator/option.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
2-
* @description generate commitizen config option(generateOptions)
3-
* @author @Zhengqbbb (zhengqbbb@gmail.com)
2+
* @description (Main: `generateOptions`) - Generate commitizen config option
3+
* @author Zhengqbbb <zhengqbbb@gmail.com>
44
* @license MIT
55
*/
66

packages/cz-git/src/generator/question.ts

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* @description generate commitizen questions(generateQuestions)
2+
* @description (Main: `generateQuestions`) - Generate commitizen questions
33
* @author @Zhengqbbb (zhengqbbb@gmail.com)
44
* @license MIT
55
*/
@@ -227,14 +227,14 @@ export function generateQuestions(options: CommitizenGitOptions, cz: any) {
227227
completeValue: options.defaultBody || undefined,
228228
when: (answers: Answers) => {
229229
const answerType = getAnswersType(options, answers)
230+
230231
if (
231232
options.allowBreakingChanges
232233
&& answerType
233234
&& options.allowBreakingChanges.includes(answerType)
234235
) {
235236
return true
236237
}
237-
238238
else {
239239
return answers.markBreaking || Boolean(process.env.break === '1') || false
240240
}
@@ -286,10 +286,9 @@ export function generateQuestions(options: CommitizenGitOptions, cz: any) {
286286
transformer: (input: string) => useThemeCode(input, options.themeColorCode),
287287
},
288288
].filter(
289-
i =>
290-
!options.skipQuestions?.includes(
291-
i.name as 'scope' | 'body' | 'breaking' | 'footer' | 'footerPrefix' | 'confirmCommit',
292-
),
289+
i => !options.skipQuestions?.includes(
290+
i.name as 'scope' | 'body' | 'breaking' | 'footer' | 'footerPrefix' | 'confirmCommit',
291+
),
293292
)
294293
}
295294

0 commit comments

Comments
 (0)