Skip to content

Commit adf8a92

Browse files
committed
refactor(core): 重构format、lint
1 parent 2fa6d5b commit adf8a92

File tree

11 files changed

+488
-190
lines changed

11 files changed

+488
-190
lines changed

README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)