Skip to content

Commit 44d4d33

Browse files
committed
✨ feat: 格式化
1 parent 14892c4 commit 44d4d33

File tree

103 files changed

+8386
-3827
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

103 files changed

+8386
-3827
lines changed

.prettierignore

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Build outputs
2+
**/dist/
3+
4+
# Dependencies
5+
node_modules/
6+
7+
# Minified files
8+
*.min.js
9+
*.min.css
10+
11+
# Generated files
12+
*.d.ts
13+
14+
# Logs
15+
*.log
16+
17+
# Cache directories
18+
.cache/
19+
.temp/
20+
.tmp/
21+
22+
# IDE files
23+
.vscode/
24+
.idea/
25+
26+
# OS files
27+
.DS_Store
28+
Thumbs.db

.prettierrc.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{}

CHANGELOG.md

Lines changed: 64 additions & 107 deletions
Large diffs are not rendered by default.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# Vue 命令式组件
22

3-
👉 [文档网站](https://pandavips.github.io/Vue-Command-Component/)
3+
👉 [文档网站](https://pandavips.github.io/Vue-Command-Component/)

commitlint.config.js

Lines changed: 47 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -1,89 +1,89 @@
11
module.exports = {
2-
extends: ['@commitlint/config-conventional'],
2+
extends: ["@commitlint/config-conventional"],
33
prompt: {
4-
alias: { fd: 'docs: fix typos' },
4+
alias: { fd: "docs: fix typos" },
55
messages: {
6-
type: '选择你要提交的类型 :',
7-
scope: '选择一个提交范围(可选):',
8-
customScope: '请输入自定义的提交范围 :',
9-
subject: '填写简短精炼的变更描述 :\n',
6+
type: "选择你要提交的类型 :",
7+
scope: "选择一个提交范围(可选):",
8+
customScope: "请输入自定义的提交范围 :",
9+
subject: "填写简短精炼的变更描述 :\n",
1010
body: '填写更加详细的变更描述(可选)。使用 "|" 换行 :\n',
1111
breaking: '列举非兼容性重大的变更(可选)。使用 "|" 换行 :\n',
12-
footerPrefixsSelect: '选择关联issue前缀(可选):',
13-
customFooterPrefixs: '输入自定义issue前缀 :',
14-
footer: '列举关联issue (可选) 例如: #31, #I3244 :\n',
15-
confirmCommit: '是否提交或修改commit ?'
12+
footerPrefixsSelect: "选择关联issue前缀(可选):",
13+
customFooterPrefixs: "输入自定义issue前缀 :",
14+
footer: "列举关联issue (可选) 例如: #31, #I3244 :\n",
15+
confirmCommit: "是否提交或修改commit ?",
1616
},
1717
types: [
18-
{ value: 'feat', name: 'feat: 新增功能 | A new feature' },
19-
{ value: 'fix', name: 'fix: 修复缺陷 | A bug fix' },
18+
{ value: "feat", name: "feat: 新增功能 | A new feature" },
19+
{ value: "fix", name: "fix: 修复缺陷 | A bug fix" },
2020
{
21-
value: 'docs',
22-
name: 'docs: 文档更新 | Documentation only changes'
21+
value: "docs",
22+
name: "docs: 文档更新 | Documentation only changes",
2323
},
2424
{
25-
value: 'style',
26-
name: 'style: 代码格式 | Changes that do not affect the meaning of the code'
25+
value: "style",
26+
name: "style: 代码格式 | Changes that do not affect the meaning of the code",
2727
},
2828
{
29-
value: 'refactor',
30-
name: 'refactor: 代码重构 | A code change that neither fixes a bug nor adds a feature'
29+
value: "refactor",
30+
name: "refactor: 代码重构 | A code change that neither fixes a bug nor adds a feature",
3131
},
3232
{
33-
value: 'perf',
34-
name: 'perf: 性能提升 | A code change that improves performance'
33+
value: "perf",
34+
name: "perf: 性能提升 | A code change that improves performance",
3535
},
3636
{
37-
value: 'test',
38-
name: 'test: 测试相关 | Adding missing tests or correcting existing tests'
37+
value: "test",
38+
name: "test: 测试相关 | Adding missing tests or correcting existing tests",
3939
},
4040
{
41-
value: 'build',
42-
name: 'build: 构建相关 | Changes that affect the build system or external dependencies'
41+
value: "build",
42+
name: "build: 构建相关 | Changes that affect the build system or external dependencies",
4343
},
4444
{
45-
value: 'ci',
46-
name: 'ci: 持续集成 | Changes to our CI configuration files and scripts'
45+
value: "ci",
46+
name: "ci: 持续集成 | Changes to our CI configuration files and scripts",
4747
},
48-
{ value: 'revert', name: 'revert: 回退代码 | Revert to a commit' },
48+
{ value: "revert", name: "revert: 回退代码 | Revert to a commit" },
4949
{
50-
value: 'chore',
51-
name: 'chore: 其他修改 | Other changes that do not modify src or test files'
52-
}
50+
value: "chore",
51+
name: "chore: 其他修改 | Other changes that do not modify src or test files",
52+
},
5353
],
5454
useEmoji: false,
55-
emojiAlign: 'center',
56-
themeColorCode: '',
55+
emojiAlign: "center",
56+
themeColorCode: "",
5757
scopes: [],
5858
allowCustomScopes: true,
5959
allowEmptyScopes: true,
60-
customScopesAlign: 'bottom',
61-
customScopesAlias: 'custom',
62-
emptyScopesAlias: 'empty',
60+
customScopesAlign: "bottom",
61+
customScopesAlias: "custom",
62+
emptyScopesAlias: "empty",
6363
upperCaseSubject: false,
6464
markBreakingChangeMode: false,
65-
allowBreakingChanges: ['feat', 'fix'],
65+
allowBreakingChanges: ["feat", "fix"],
6666
breaklineNumber: 100,
67-
breaklineChar: '|',
67+
breaklineChar: "|",
6868
skipQuestions: [],
6969
issuePrefixs: [
7070
// 如果使用 gitee 作为开发管理
71-
{ value: 'link', name: 'link: 链接 ISSUES 进行中' },
72-
{ value: 'closed', name: 'closed: 标记 ISSUES 已完成' }
71+
{ value: "link", name: "link: 链接 ISSUES 进行中" },
72+
{ value: "closed", name: "closed: 标记 ISSUES 已完成" },
7373
],
74-
customIssuePrefixsAlign: 'top',
75-
emptyIssuePrefixsAlias: 'skip',
76-
customIssuePrefixsAlias: 'custom',
74+
customIssuePrefixsAlign: "top",
75+
emptyIssuePrefixsAlias: "skip",
76+
customIssuePrefixsAlias: "custom",
7777
allowCustomIssuePrefixs: true,
7878
allowEmptyIssuePrefixs: true,
7979
confirmColorize: true,
8080
maxHeaderLength: Infinity,
8181
maxSubjectLength: Infinity,
8282
minSubjectLength: 0,
8383
scopeOverrides: undefined,
84-
defaultBody: '',
85-
defaultIssues: '',
86-
defaultScope: '',
87-
defaultSubject: ''
88-
}
84+
defaultBody: "",
85+
defaultIssues: "",
86+
defaultScope: "",
87+
defaultSubject: "",
88+
},
8989
};

components.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// @ts-nocheck
33
// Generated by unplugin-vue-components
44
// Read more: https://github.com/vuejs/core/pull/3399
5-
export {}
5+
export {};
66

77
/* prettier-ignore */
88
declare module 'vue' {

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
"doc:build": "vitepress build packages/docs",
1010
"doc:dev": "vitepress dev packages/docs --port 3000",
1111
"doc:preview": "vitepress preview packages/docs --port 3000",
12-
"publish": "pnpm --filter '@vue-cmd/*' publish --no-git-checks --access public"
12+
"publish": "pnpm --filter '@vue-cmd/*' publish --no-git-checks --access public",
13+
"format": "prettier --write ."
1314
},
1415
"engines": {
1516
"node": ">=16",
@@ -42,6 +43,7 @@
4243
"@vitejs/plugin-vue-jsx": "^4.0.1",
4344
"@vue/tsconfig": "^0.5.1",
4445
"glob": "^11.0.3",
46+
"prettier": "^3.6.2",
4547
"sass": "^1.79.4",
4648
"semantic-release": "^21.0.1",
4749
"terser": "^5.43.1",

packages/core/components.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// @ts-nocheck
33
// Generated by unplugin-vue-components
44
// Read more: https://github.com/vuejs/core/pull/3399
5-
export {}
5+
export {};
66

77
/* prettier-ignore */
88
declare module 'vue' {

packages/core/dist/index.cjs.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)