Skip to content

Commit d480352

Browse files
committed
add jsdoc
1 parent 0255fb6 commit d480352

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

bin/commands/list.mjs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,12 @@ import rules from '../../src/linter/rules/index.mjs';
55
const availableRules = Object.keys(rules);
66
const availableReporters = Object.keys(reporters);
77

8+
export const types = ['generators', 'rules', 'reporters'];
9+
810
/**
11+
* Lists available generators, rules, or reporters based on the given type.
912
*
10-
* @param type
13+
* @param {'generators' | 'rules' | 'reporters'} type - The type of items to list.
1114
*/
1215
export default function list(type) {
1316
const list =
@@ -22,5 +25,3 @@ export default function list(type) {
2225

2326
console.log(list.join('\n'));
2427
}
25-
26-
export const types = ['generators', 'rules', 'reporters'];

0 commit comments

Comments
 (0)