@@ -18,15 +18,15 @@ npm i -g code-genius
1818
1919## 终端命令
2020
21- | 命令 | 参数 | 功能描述 |
22- | -------- | ------------------------------------------------------------------- | ---------------------------------------------- |
23- | cm | --noEmoji | 帮助生成规范的 git 提交内容 |
24- | cmv | -- | 帮助验证 git commit 的内容是否符合规范 |
25- | cup | --ignore \< path\> | 清理运行时生成的文件 |
26- | ihooks | -- | 使用且有修改 simple-git-hooks 后需要重新初始化 |
27- | run | -- | 运行列出的脚本 |
28- | lint | --eslintrc \< file\> , --path \< path\> , --staged, --suffix \< suffix\> | 检查代码并尝试修复 |
29- | prettier | --path \< path\> , --staged, --suffix \< suffix\> | 格式化代码风格 |
21+ | 命令 | 参数 | 功能描述 |
22+ | ------ | ------------------------------------------------------------------- | ---------------------------------------------- |
23+ | cm | --noEmoji | 帮助生成规范的 git 提交内容 |
24+ | cmv | -- | 帮助验证 git commit 的内容是否符合规范 |
25+ | cup | --ignore \< path\> | 清理运行时生成的文件 |
26+ | ihooks | -- | 使用且有修改 simple-git-hooks 后需要重新初始化 |
27+ | run | -- | 运行列出的脚本 |
28+ | lint | --eslintrc \< file\> , --path \< path\> , --staged, --suffix \< suffix\> | 检查代码并尝试修复 |
29+ | format | --prettierrc \< file \> , -- path \< path\> , --staged, --suffix \< suffix\> | 格式化代码风格 |
3030
3131## API
3232
@@ -38,7 +38,7 @@ npm i -g code-genius
3838| 4 | ` gitInitSimpleHooks(cwd) ` | ` cwd?: string ` | ` Promise<void> ` |
3939| 5 | ` npmRun(cwd) ` | ` cwd?: string ` | ` Promise<void> ` |
4040| 6 | ` eslintFix(cwd, options) ` | ` cwd?: string ` ,` options:(EsLintOptions) ` | ` Promise<void> ` |
41- | 7 | ` prettierFormat(cwd, options) ` | ` cwd?: string ` ,` options:(PrettierFormatOptions) ` | ` Promise<void> ` |
41+ | 7 | ` prettierFormat(cwd, options) ` | ` cwd?: string ` ,` options:(PrettierFormatOptions) ` | ` Promise<void> ` |
4242
4343## API 示例
4444
0 commit comments