ref: 格式化

This commit is contained in:
lbw 2023-03-03 17:57:14 +08:00
parent bb53480794
commit f88bc832af
4 changed files with 3484 additions and 3379 deletions

1
.gitignore vendored
View File

@ -15,7 +15,6 @@ pnpm-debug.log*
# Editor directories and files
.idea
.vscode
*.suo
*.ntvs*
*.njsproj

105
.vscode/settings.json vendored Normal file
View File

@ -0,0 +1,105 @@
{
"[scss]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[jsonc]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[html]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[json]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[vue]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[css]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"eslint.options": {
"extensions": [".js", ".vue", ".ts", ".tsx"]
},
"eslint.validate": ["vue", "html", "javascript", "graphql", "javascriptreact", "json", "typescript", "typescriptreact", "vue-html"],
"eslint.format.enable": true,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
"files.associations": {
"*.cjson": "jsonc",
"*.wxss": "css",
"*.wxs": "javascript",
"*.nvue": "vue"
},
"editor.formatOnSave": true,
"editor.tabSize": 2,
"editor.formatOnType": true,
"javascript.format.enable": false,
"workbench.iconTheme": "material-icon-theme",
"backgroundCover.imagePath": "d:\\360downloads\\upload.jpg",
"search.followSymlinks": false,
"backgroundCover.opacity": 0.5,
"terminal.integrated.shell.windows": "C:\\Windows\\System32\\cmd.exe",
"typescript.updateImportsOnFileMove.enabled": "always",
"[markdown]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"markdownlint.config": {
"default": true,
"no-hard-tabs": false,
"no-inline-html": false,
"first-line-heading": false,
"heading-increment": false,
"no-bare-urls": false
},
"i18n-ally.localesPaths": [
"src/i18n",
"src/i18n/lang",
"src/components/Cron/language",
"src/views/admin/i18n",
"src/views/admin/audit/i18n",
"src/views/admin/client/i18n",
"src/views/admin/dept/i18n",
"src/views/admin/dict/i18n",
"src/views/admin/file/i18n",
"src/views/admin/i18n/i18n",
"src/views/admin/log/i18n",
"src/views/admin/param/i18n",
"src/views/admin/menu/i18n",
"src/views/admin/post/i18n",
"src/views/admin/role/i18n",
"src/views/admin/social/i18n",
"src/views/admin/tenant/i18n",
"src/views/admin/token/i18n",
"src/views/admin/user/i18n",
"src/views/app/approle/i18n",
"src/views/app/appmenu/i18n",
"src/views/app/appsocial/i18n",
"src/views/app/appuser/i18n",
"src/views/gen/datasource/i18n",
"src/views/daemon/job-manage/i18n",
"src/views/gen/field-type/i18n",
"src/views/gen/table/i18n",
"src/views/gen/group/i18n",
"src/views/gen/template/i18n",
"src/views/mp/wx-account/i18n",
"src/views/mp/wx-account-fans/i18n",
"src/views/mp/wx-account-tag/i18n",
"src/views/mp/wx-fans-msg/i18n",
"src/views/oa/leave_bill/i18n",
"src/views/oa/model/i18n",
"src/views/oa/process/i18n",
"src/views/oa/task/i18n",
"src/views/pay/channel/i18n",
"src/views/pay/order/i18n",
"src/views/pay/record/i18n",
"src/views/pay/refund/i18n",
"src/views/pay/trade/i18n"
]
}

View File

@ -7,7 +7,8 @@
"scripts": {
"dev": "vite --force",
"build": "vite build",
"lint:eslint": "eslint --fix --ext .js,.ts,.vue ./src"
"lint:eslint": "eslint --fix --ext .js,.ts,.vue ./src",
"prettier": "prettier --write ."
},
"dependencies": {
"@chenfengyuan/vue-qrcode": "^2.0.0",
@ -48,7 +49,7 @@
"eslint": "8.22.0",
"eslint-plugin-vue": "^9.8.0",
"pinia-plugin-persist": "^1.0.0",
"prettier": "^2.8.1",
"prettier": "^2.8.4",
"sass": "^1.56.2",
"typescript": "^4.9.4",
"unplugin-auto-import": "^0.13.0",