mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2025-06-07 17:07:19 +08:00
style: prettierrc code
This commit is contained in:
parent
113874b6b9
commit
0063261fd5
@ -1,9 +1,12 @@
|
||||
const chalk = require("chalk")
|
||||
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
||||
const chalk = require("chalk");
|
||||
|
||||
const msgPath = process.env.HUSKY_GIT_PARAMS
|
||||
const msg = require("fs").readFileSync(msgPath, "utf-8").trim()
|
||||
const msgPath = process.env.HUSKY_GIT_PARAMS;
|
||||
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
||||
const msg = require("fs").readFileSync(msgPath, "utf-8").trim();
|
||||
|
||||
const commitRE = /^(revert: )?(feat|fix|polish|docs|style|refactor|perf|test|workflow|ci|chore|types)(\(.+\))?: .{1,50}/
|
||||
const commitRE =
|
||||
/^(revert: )?(feat|fix|polish|docs|style|refactor|perf|test|workflow|ci|chore|types)(\(.+\))?: .{1,50}/;
|
||||
|
||||
if (!commitRE.test(msg)) {
|
||||
console.error(
|
||||
@ -16,7 +19,7 @@ if (!commitRE.test(msg)) {
|
||||
chalk.red(
|
||||
" 请查看 git commit 提交规范:https://github.com/vuejs/vue/blob/dev/.github/COMMIT_CONVENTION.md \n"
|
||||
)
|
||||
)
|
||||
);
|
||||
|
||||
process.exit(1)
|
||||
process.exit(1);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user