Skip to content

Commit

Permalink
chore: 代码格式化
Browse files Browse the repository at this point in the history
  • Loading branch information
markthree committed Aug 2, 2023
1 parent d62fa78 commit 86d3b2d
Show file tree
Hide file tree
Showing 21 changed files with 1,076 additions and 877 deletions.
75 changes: 37 additions & 38 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,46 +1,45 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/typescript-node
{
"name": "Node.js & TypeScript",
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
"image": "mcr.microsoft.com/devcontainers/typescript-node:1-18-buster",
"features": {
"ghcr.io/devcontainers-contrib/features/pnpm:2": {}
},
"customizations": {
"vscode": {
"extensions": [
"antfu.goto-alias",
"mikestead.dotenv",
"redhat.vscode-yaml",
"Lokalise.i18n-ally",
"Vue.volar",
"steoates.autoimport",
"dbaeumer.vscode-eslint",
"esbenp.prettier-vscode",
"EditorConfig.EditorConfig",
"usernamehw.errorlens",
"shd101wyy.markdown-preview-enhanced",
"voorjaar.windicss-intellisense",
"yoavbls.pretty-ts-errors",
"bodil.prettier-toml",
"bungcip.better-toml"
]
}
}
"name": "Node.js & TypeScript",
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
"image": "mcr.microsoft.com/devcontainers/typescript-node:1-18-buster",
"features": {
"ghcr.io/devcontainers-contrib/features/pnpm:2": {}
},
"customizations": {
"vscode": {
"extensions": [
"antfu.goto-alias",
"mikestead.dotenv",
"redhat.vscode-yaml",
"Lokalise.i18n-ally",
"Vue.volar",
"steoates.autoimport",
"dbaeumer.vscode-eslint",
"esbenp.prettier-vscode",
"EditorConfig.EditorConfig",
"usernamehw.errorlens",
"shd101wyy.markdown-preview-enhanced",
"voorjaar.windicss-intellisense",
"yoavbls.pretty-ts-errors",
"bodil.prettier-toml",
"bungcip.better-toml"
]
}
}
// Features to add to the dev container. More info: https://containers.dev/features.
// "features": {},

// Features to add to the dev container. More info: https://containers.dev/features.
// "features": {},
// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [],

// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [],
// Use 'postCreateCommand' to run commands after the container is created.
// "postCreateCommand": "yarn install",

// Use 'postCreateCommand' to run commands after the container is created.
// "postCreateCommand": "yarn install",
// Configure tool-specific properties.
// "customizations": {},

// Configure tool-specific properties.
// "customizations": {},

// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
// "remoteUser": "root"
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
// "remoteUser": "root"
}
66 changes: 33 additions & 33 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,35 +1,35 @@
{
"root": true, // 禁止接着往上找
"env": {
"node": true,
"es2021": true,
"browser": true // 浏览器
},
"parser": "vue-eslint-parser",
"parserOptions": {
"ecmaVersion": "latest",
"parser": "@typescript-eslint/parser",
"ecmaFeatures": {
"jsx": true // 启用 jsx
}
},
"plugins": ["prettier"],
"extends": [
"@unocss",
"eslint:recommended", // 内置规则
"plugin:vue/vue3-recommended", // 支持 vue sfc
"prettier",
"./presets/eslint/.eslintrc-auto-import.json"
],
"rules": {
// 允许相同组件名
"vue/multi-word-component-names": "off",
// prettier 作为规则
"prettier/prettier": "error",
// 禁止使用 var,而应该用 let 或 const
"no-var": "error"
},
"globals": {
"defineOptions": true
}
"root": true, // 禁止接着往上找
"env": {
"node": true,
"es2021": true,
"browser": true // 浏览器
},
"parser": "vue-eslint-parser",
"parserOptions": {
"ecmaVersion": "latest",
"parser": "@typescript-eslint/parser",
"ecmaFeatures": {
"jsx": true // 启用 jsx
}
},
"plugins": ["prettier"],
"extends": [
"@unocss",
"eslint:recommended", // 内置规则
"plugin:vue/vue3-recommended", // 支持 vue sfc
"prettier",
"./presets/eslint/.eslintrc-auto-import.json"
],
"rules": {
// 允许相同组件名
"vue/multi-word-component-names": "off",
// prettier 作为规则
"prettier/prettier": "error",
// 禁止使用 var,而应该用 let 或 const
"no-var": "error"
},
"globals": {
"defineOptions": true
}
}
10 changes: 2 additions & 8 deletions .gitee/ISSUE_TEMPLATE.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,30 +4,24 @@

TODO


(推荐使用 `v18` 以上)

<br />


### 包管理器及其版本
### 包管理器及其版本

TODO


(请使用 `pnpm`)


<br />


### 系统

TODO

(该项目开发环境系统为 `win11`)


<br />
<br />

Expand All @@ -47,4 +41,4 @@ TODO

### 最小测试仓库

TODO
TODO
10 changes: 2 additions & 8 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,30 +9,24 @@ about: 请提供系统详细信息

TODO


(推荐使用 `v18` 以上)

<br />


### 包管理器及其版本
### 包管理器及其版本

TODO


(请使用 `pnpm`)


<br />


### 系统

TODO

(该项目开发环境系统为 `win11`)


<br />
<br />

Expand All @@ -52,4 +46,4 @@ TODO

### 最小测试仓库

TODO
TODO
7 changes: 3 additions & 4 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"semi": false,
"singleQuote": true,
"endOfLine": "auto"
"semi": false,
"singleQuote": true,
"endOfLine": "auto"
}

36 changes: 18 additions & 18 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
{
"recommendations": [
"antfu.iconify",
"mikestead.dotenv",
"redhat.vscode-yaml",
"lokalise.i18n-ally",
"Vue.volar",
"steoates.autoimport",
"dbaeumer.vscode-eslint",
"esbenp.prettier-vscode",
"EditorConfig.EditorConfig",
"usernamehw.errorlens",
"shd101wyy.markdown-preview-enhanced",
"antfu.goto-alias",
"voorjaar.windicss-intellisense",
"yoavbls.pretty-ts-errors",
"bodil.prettier-toml",
"bungcip.better-toml"
]
"recommendations": [
"antfu.iconify",
"mikestead.dotenv",
"redhat.vscode-yaml",
"lokalise.i18n-ally",
"Vue.volar",
"steoates.autoimport",
"dbaeumer.vscode-eslint",
"esbenp.prettier-vscode",
"EditorConfig.EditorConfig",
"usernamehw.errorlens",
"shd101wyy.markdown-preview-enhanced",
"antfu.goto-alias",
"voorjaar.windicss-intellisense",
"yoavbls.pretty-ts-errors",
"bodil.prettier-toml",
"bungcip.better-toml"
]
}
34 changes: 17 additions & 17 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
{
"configurations": [
{
"name": "edge debug",
"request": "launch",
"type": "msedge",
"url": "http://localhost:5173",
"webRoot": "${workspaceFolder}/src"
},
{
"name": "chrome debug",
"request": "launch",
"type": "chrome",
"url": "http://localhost:5173",
"webRoot": "${workspaceFolder}/src"
}
]
}
"configurations": [
{
"name": "edge debug",
"request": "launch",
"type": "msedge",
"url": "http://localhost:5173",
"webRoot": "${workspaceFolder}/src"
},
{
"name": "chrome debug",
"request": "launch",
"type": "chrome",
"url": "http://localhost:5173",
"webRoot": "${workspaceFolder}/src"
}
]
}

0 comments on commit 86d3b2d

Please sign in to comment.