Skip to content

Commit 208ef44

Browse files
author
liyuhang
committed
build: 📦 升级版本
1 parent 609d87b commit 208ef44

37 files changed

+5613
-8767
lines changed

.changelogrc.yml

Lines changed: 0 additions & 3 deletions
This file was deleted.

.commitlintrc.js

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
/*
2+
* @Description: Copyright (c) ydfk. All rights reserved
3+
* @Author: ydfk
4+
* @Date: 2023-05-15 20:14:15
5+
* @LastEditors: ydfk
6+
* @LastEditTime: 2024-02-22 11:09:50
7+
*/
8+
// .commitlintrc.js
9+
/** @type {import('cz-git').UserConfig} */
10+
module.exports = {
11+
rules: {
12+
// @see: https://commitlint.js.org/#/reference-rules
13+
},
14+
prompt: {
15+
alias: { fd: "docs: fix typos" },
16+
messages: {
17+
type: "选择你要提交的类型 :",
18+
scope: "选择一个提交范围(可选):",
19+
customScope: "请输入自定义的提交范围 :",
20+
subject: "填写简短精炼的变更描述 :\n",
21+
body: '填写更加详细的变更描述(可选)。使用 "|" 换行 :\n',
22+
breaking: '列举非兼容性重大的变更(可选)。使用 "|" 换行 :\n',
23+
footerPrefixesSelect: "选择关联issue前缀(可选):",
24+
customFooterPrefix: "输入自定义issue前缀 :",
25+
footer: "列举关联issue (可选) 例如: #31, #I3244 :\n",
26+
confirmCommit: "是否提交或修改commit ?",
27+
},
28+
types: [
29+
{ value: "feat", name: "feat: ✨ 新增功能 | A new feature", emoji: ":sparkles:" },
30+
{ value: "fix", name: "fix: 🐛 修复缺陷 | A bug fix", emoji: ":bug:" },
31+
{ value: "docs", name: "docs: 📝 文档更新 | Documentation only changes", emoji: ":memo:" },
32+
{ value: "style", name: "style: 💄 代码格式 | Changes that do not affect the meaning of the code", emoji: ":lipstick:" },
33+
{ value: "refactor", name: "refactor: ♻️ 代码重构 | A code change that neither fixes a bug nor adds a feature", emoji: ":recycle:" },
34+
{ value: "perf", name: "perf: ⚡️ 性能提升 | A code change that improves performance", emoji: ":zap:" },
35+
{ value: "test", name: "test: ✅ 测试相关 | Adding missing tests or correcting existing tests", emoji: ":white_check_mark:" },
36+
{ value: "build", name: "build: 📦️ 构建相关 | Changes that affect the build system or external dependencies", emoji: ":package:" },
37+
{ value: "ci", name: "ci: 🎡 持续集成 | Changes to our CI configuration files and scripts", emoji: ":ferris_wheel:" },
38+
{ value: "revert", name: "revert: 🔨 回退代码 | Revert to a commit", emoji: ":hammer:" },
39+
{ value: "chore", name: "chore: ⏪️ 其他修改 | Other changes that do not modify src or test files", emoji: ":rewind:" },
40+
],
41+
useEmoji: true,
42+
emojiAlign: "center",
43+
useAI: false,
44+
aiNumber: 1,
45+
themeColorCode: "",
46+
scopes: [],
47+
allowCustomScopes: true,
48+
allowEmptyScopes: true,
49+
customScopesAlign: "bottom",
50+
customScopesAlias: "custom",
51+
emptyScopesAlias: "empty",
52+
upperCaseSubject: false,
53+
markBreakingChangeMode: false,
54+
allowBreakingChanges: ["feat", "fix"],
55+
breaklineNumber: 100,
56+
breaklineChar: "|",
57+
skipQuestions: [],
58+
issuePrefixes: [
59+
// 如果使用 gitee 作为开发管理
60+
{ value: "link", name: "link: 链接 ISSUES 进行中" },
61+
{ value: "closed", name: "closed: 标记 ISSUES 已完成" },
62+
],
63+
customIssuePrefixAlign: "top",
64+
emptyIssuePrefixAlias: "skip",
65+
customIssuePrefixAlias: "custom",
66+
allowCustomIssuePrefix: true,
67+
allowEmptyIssuePrefix: true,
68+
confirmColorize: true,
69+
maxHeaderLength: Infinity,
70+
maxSubjectLength: Infinity,
71+
minSubjectLength: 0,
72+
scopeOverrides: undefined,
73+
defaultBody: "",
74+
defaultIssues: "",
75+
defaultScope: "",
76+
defaultSubject: "",
77+
},
78+
};

.cz-config.js

Lines changed: 0 additions & 42 deletions
This file was deleted.

.eslintrc.js

Lines changed: 45 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
* @Author: ydfk
44
* @Date: 2021-08-24 21:36:55
55
* @LastEditors: ydfk
6-
* @LastEditTime: 2022-04-20 10:59:47
6+
* @LastEditTime: 2024-02-22 14:59:14
77
*/
8-
// @ts-check
8+
// @ts-ignore
99
const { defineConfig } = require("eslint-define-config");
10+
1011
module.exports = defineConfig({
11-
root: true,
1212
env: {
1313
browser: true,
1414
node: true,
@@ -23,48 +23,54 @@ module.exports = defineConfig({
2323
ecmaFeatures: {
2424
jsx: true,
2525
},
26+
project: "./tsconfig.*?.json",
27+
createDefaultProgram: false,
28+
extraFileExtensions: [".vue"],
2629
},
27-
extends: ["plugin:vue/vue3-recommended", "plugin:@typescript-eslint/recommended", "prettier", "plugin:prettier/recommended"],
30+
plugins: ["vue", "@typescript-eslint", "import"],
31+
extends: ["eslint:recommended", "plugin:vue/vue3-recommended", "plugin:@typescript-eslint/recommended", "plugin:prettier/recommended"],
2832
rules: {
29-
"vue/script-setup-uses-vars": "error",
33+
"no-undef": "off",
34+
"no-useless-escape": "off",
35+
"no-unused-vars": "off",
36+
"no-case-declarations": "off",
37+
"no-use-before-define": "off",
38+
"space-before-function-paren": "off",
39+
40+
"import/first": "error",
41+
"import/newline-after-import": "error",
42+
"import/no-duplicates": "error",
43+
44+
// "@typescript-eslint/no-unused-vars": [
45+
// "error",
46+
// {
47+
// argsIgnorePattern: "^_",
48+
// varsIgnorePattern: "^_",
49+
// },
50+
// ],
51+
"@typescript-eslint/no-unused-vars": "off",
3052
"@typescript-eslint/ban-ts-ignore": "off",
53+
"@typescript-eslint/ban-ts-comment": "off",
54+
"@typescript-eslint/ban-types": "off",
3155
"@typescript-eslint/explicit-function-return-type": "off",
3256
"@typescript-eslint/no-explicit-any": "off",
3357
"@typescript-eslint/no-var-requires": "off",
3458
"@typescript-eslint/no-empty-function": "off",
35-
"vue/custom-event-name-casing": "off",
36-
"no-use-before-define": "off",
3759
"@typescript-eslint/no-use-before-define": "off",
38-
"@typescript-eslint/ban-ts-comment": "off",
39-
"@typescript-eslint/ban-types": "off",
4060
"@typescript-eslint/no-non-null-assertion": "off",
4161
"@typescript-eslint/explicit-module-boundary-types": "off",
42-
"@typescript-eslint/no-unused-vars": [
43-
"warn",
44-
{
45-
argsIgnorePattern: "^_",
46-
varsIgnorePattern: "^_",
47-
},
48-
],
49-
"no-unused-vars": [
50-
"warn",
51-
{
52-
argsIgnorePattern: "^_",
53-
varsIgnorePattern: "^_",
54-
},
55-
],
56-
"space-before-function-paren": "off",
57-
58-
"vue/no-setup-props-destructure": "off",
62+
"vue/script-setup-uses-vars": "error",
63+
"vue/no-reserved-component-names": "off",
64+
"vue/custom-event-name-casing": "off",
5965
"vue/attributes-order": "off",
6066
"vue/one-component-per-file": "off",
6167
"vue/html-closing-bracket-newline": "off",
6268
"vue/max-attributes-per-line": "off",
6369
"vue/multiline-html-element-content-newline": "off",
64-
"vue/multi-word-component-names": "off",
6570
"vue/singleline-html-element-content-newline": "off",
6671
"vue/attribute-hyphenation": "off",
6772
"vue/require-default-prop": "off",
73+
"vue/require-explicit-emits": "off",
6874
"vue/html-self-closing": [
6975
"error",
7076
{
@@ -77,11 +83,17 @@ module.exports = defineConfig({
7783
math: "always",
7884
},
7985
],
80-
"prettier/prettier": [
81-
"error",
82-
{
83-
singleQuote: false,
84-
},
85-
],
86+
"vue/multi-word-component-names": "off",
87+
// 'sort-imports': [
88+
// 'error',
89+
// {
90+
// ignoreCase: true,
91+
// ignoreDeclarationSort: false,
92+
// ignoreMemberSort: false,
93+
// memberSyntaxSortOrder: ['none', 'all', 'multiple', 'single'],
94+
// allowSeparatedGroups: false,
95+
// },
96+
// ],
8697
},
98+
globals: { defineOptions: "readonly" },
8799
});

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,7 @@ fabric.properties
3939
.idea/httpRequests
4040

4141
# Android studio 3.1+ serialized cache file
42-
.idea/caches/build_file_checksums.ser
42+
.idea/caches/build_file_checksums.ser
43+
.idea
44+
.idea/*
45+
.tsbuildinfo

.husky/commit-msg

Lines changed: 0 additions & 6 deletions
This file was deleted.

.husky/lintstagedrc.js

Lines changed: 0 additions & 13 deletions
This file was deleted.

.husky/pre-commit

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1 @@
1-
#!/bin/sh
2-
. "$(dirname "$0")/_/husky.sh"
3-
4-
yarn lint
1+
pnpm exec lint-staged

.pnpm-debug.log

Lines changed: 0 additions & 20 deletions
This file was deleted.

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@
77
**/*.sh
88

99
/public/*
10+
.tsbuildinfo

0 commit comments

Comments
 (0)