Skip to content

Commit 4ccf979

Browse files
committed
💅 ci(app): 增加导入模块顺序修复
1 parent 1f362ac commit 4ccf979

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

scripts/lint-script.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,14 @@ import { eslintFix } from "@/command/eslint-fix";
22
import { checkGitUserEmail } from "@/command/git-user";
33
import { prettierFormat } from "@/command/prettier-format";
44
import { execCommand } from "@/helper";
5+
import { impSort } from "@/command/eslint-import-sort";
56

67
async function lint() {
78
await checkGitUserEmail("^[a-zA-Z0-9._%+-]+@(gmail)\\.(com)$");
89
await prettierFormat(["./src/", "./scripts/"]);
910
await execCommand("git", ["add", "."]);
1011
await eslintFix(["./src/", "./scripts/"]);
12+
await impSort(["./src/", "./scripts/"]);
1113
}
1214

1315
lint();

0 commit comments

Comments
 (0)