build(projects): 升级依赖,添加对json的eslint检测及格式化
This commit is contained in:
parent
d9cfeabb47
commit
711a4ae34f
@ -11,6 +11,5 @@ lib
|
||||
/docs
|
||||
.vscode
|
||||
.local
|
||||
package.json
|
||||
!.env-config.ts
|
||||
components.d.ts
|
||||
|
@ -38,6 +38,12 @@ module.exports = {
|
||||
rules: {
|
||||
'vue/comment-directive': 'off'
|
||||
}
|
||||
},
|
||||
{
|
||||
files: ['*.json'],
|
||||
rules: {
|
||||
'no-unused-expressions': 'off'
|
||||
}
|
||||
}
|
||||
],
|
||||
settings: {
|
||||
|
6
.vscode/settings.json
vendored
6
.vscode/settings.json
vendored
@ -9,6 +9,8 @@
|
||||
"strings": true
|
||||
},
|
||||
"editor.tabSize": 2,
|
||||
"eslint.alwaysShowStatus": true,
|
||||
"eslint.validate": ["javascript", "javascriptreact", "vue", "typescript", "typescriptreact", "html", "json", "jsonc"],
|
||||
"files.associations": {
|
||||
"*.env.*": "dotenv"
|
||||
},
|
||||
@ -48,10 +50,10 @@
|
||||
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
||||
},
|
||||
"[json]": {
|
||||
"editor.defaultFormatter": "vscode.json-language-features"
|
||||
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
||||
},
|
||||
"[jsonc]": {
|
||||
"editor.defaultFormatter": "vscode.json-language-features"
|
||||
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
||||
},
|
||||
"[javascript]": {
|
||||
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
||||
|
16
package.json
16
package.json
@ -16,14 +16,14 @@
|
||||
"build:vercel": "cross-env VITE_HASH_ROUTE=1 VITE_VERCEL=1 vite build",
|
||||
"preview": "vite preview",
|
||||
"typecheck": "vue-tsc --noEmit --skipLibCheck",
|
||||
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix",
|
||||
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts,.json --fix",
|
||||
"prepare": "husky install",
|
||||
"postinstall": "patch-package",
|
||||
"release": "standard-version",
|
||||
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0 && git add CHANGELOG.md"
|
||||
},
|
||||
"lint-staged": {
|
||||
"*.{vue,js,jsx,ts,tsx}": "eslint --fix"
|
||||
"*.{vue,js,jsx,ts,tsx,json}": "eslint --fix"
|
||||
},
|
||||
"config": {
|
||||
"commitizen": {
|
||||
@ -46,10 +46,10 @@
|
||||
"form-data": "^4.0.0",
|
||||
"lodash-es": "^4.17.21",
|
||||
"naive-ui": "^2.31.0",
|
||||
"pinia": "^2.0.15",
|
||||
"pinia": "^2.0.16",
|
||||
"print-js": "^1.6.0",
|
||||
"qs": "^6.11.0",
|
||||
"swiper": "^8.3.0",
|
||||
"swiper": "^8.3.1",
|
||||
"ua-parser-js": "^1.0.2",
|
||||
"vditor": "^3.8.15",
|
||||
"vue": "3.2.37",
|
||||
@ -61,7 +61,7 @@
|
||||
"@amap/amap-jsapi-types": "^0.0.8",
|
||||
"@commitlint/cli": "^17.0.3",
|
||||
"@commitlint/config-conventional": "^17.0.3",
|
||||
"@iconify/json": "^2.1.76",
|
||||
"@iconify/json": "^2.1.77",
|
||||
"@iconify/vue": "^3.2.1",
|
||||
"@types/bmapgl": "^0.0.5",
|
||||
"@types/crypto-js": "^4.1.1",
|
||||
@ -70,8 +70,8 @@
|
||||
"@types/ua-parser-js": "^0.7.36",
|
||||
"@typescript-eslint/eslint-plugin": "^5.30.6",
|
||||
"@typescript-eslint/parser": "^5.30.6",
|
||||
"@vitejs/plugin-vue": "^2.3.3",
|
||||
"@vitejs/plugin-vue-jsx": "^1.3.10",
|
||||
"@vitejs/plugin-vue": "^3.0.0",
|
||||
"@vitejs/plugin-vue-jsx": "^2.0.0",
|
||||
"@vue/eslint-config-prettier": "^7.0.0",
|
||||
"@vue/eslint-config-typescript": "^11.0.0",
|
||||
"commitizen": "^4.2.4",
|
||||
@ -99,7 +99,7 @@
|
||||
"unplugin-icons": "^0.14.7",
|
||||
"unplugin-vue-components": "0.21.1",
|
||||
"unplugin-vue-define-options": "^0.6.2",
|
||||
"vite": "^2.9.14",
|
||||
"vite": "^3.0.0",
|
||||
"vite-plugin-compression": "^0.5.1",
|
||||
"vite-plugin-html": "^3.2.0",
|
||||
"vite-plugin-mock": "^2.9.6",
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -1,145 +1,145 @@
|
||||
{
|
||||
"darkMode": false,
|
||||
"followSystemTheme": true,
|
||||
"layout": {
|
||||
"minWidth": 900,
|
||||
"mode": "vertical",
|
||||
"modeList": [
|
||||
{
|
||||
"value": "vertical",
|
||||
"label": "左侧菜单模式"
|
||||
},
|
||||
{
|
||||
"value": "vertical-mix",
|
||||
"label": "左侧菜单混合模式"
|
||||
},
|
||||
{
|
||||
"value": "horizontal",
|
||||
"label": "顶部菜单模式"
|
||||
},
|
||||
{
|
||||
"value": "horizontal-mix",
|
||||
"label": "顶部菜单混合模式"
|
||||
}
|
||||
]
|
||||
},
|
||||
"themeColor": "#1890ff",
|
||||
"themeColorList": [
|
||||
"#1890ff",
|
||||
"#409EFF",
|
||||
"#2d8cf0",
|
||||
"#007AFF",
|
||||
"#5ac8fa",
|
||||
"#5856D6",
|
||||
"#536dfe",
|
||||
"#9c27b0",
|
||||
"#AF52DE",
|
||||
"#0096c7",
|
||||
"#00C1D4",
|
||||
"#34C759",
|
||||
"#43a047",
|
||||
"#7cb342",
|
||||
"#c0ca33",
|
||||
"#78DEC7",
|
||||
"#e53935",
|
||||
"#d81b60",
|
||||
"#f4511e",
|
||||
"#fb8c00",
|
||||
"#ffb300",
|
||||
"#fdd835",
|
||||
"#6d4c41",
|
||||
"#546e7a"
|
||||
],
|
||||
"otherColor": {
|
||||
"info": "#0099ad",
|
||||
"success": "#52c41a",
|
||||
"warning": "#faad14",
|
||||
"error": "#f5222d"
|
||||
},
|
||||
"isCustomizeInfoColor": false,
|
||||
"fixedHeaderAndTab": true,
|
||||
"showReload": true,
|
||||
"header": {
|
||||
"inverted": false,
|
||||
"height": 56,
|
||||
"crumb": {
|
||||
"visible": true,
|
||||
"showIcon": true
|
||||
}
|
||||
},
|
||||
"tab": {
|
||||
"visible": true,
|
||||
"height": 44,
|
||||
"mode": "chrome",
|
||||
"modeList": [
|
||||
{
|
||||
"value": "chrome",
|
||||
"label": "谷歌风格"
|
||||
},
|
||||
{
|
||||
"value": "button",
|
||||
"label": "按钮风格"
|
||||
}
|
||||
],
|
||||
"isCache": true
|
||||
},
|
||||
"sider": {
|
||||
"inverted": false,
|
||||
"width": 220,
|
||||
"collapsedWidth": 64,
|
||||
"mixWidth": 80,
|
||||
"mixCollapsedWidth": 48,
|
||||
"mixChildMenuWidth": 200
|
||||
},
|
||||
"menu": {
|
||||
"horizontalPosition": "flex-start",
|
||||
"horizontalPositionList": [
|
||||
{
|
||||
"value": "flex-start",
|
||||
"label": "居左"
|
||||
},
|
||||
{
|
||||
"value": "center",
|
||||
"label": "居中"
|
||||
},
|
||||
{
|
||||
"value": "flex-end",
|
||||
"label": "居右"
|
||||
}
|
||||
]
|
||||
},
|
||||
"footer": {
|
||||
"fixed": false,
|
||||
"height": 48
|
||||
},
|
||||
"page": {
|
||||
"animate": true,
|
||||
"animateMode": "fade-slide",
|
||||
"animateModeList": [
|
||||
{
|
||||
"value": "fade-slide",
|
||||
"label": "滑动"
|
||||
},
|
||||
{
|
||||
"value": "fade",
|
||||
"label": "消退"
|
||||
},
|
||||
{
|
||||
"value": "fade-bottom",
|
||||
"label": "底部消退"
|
||||
},
|
||||
{
|
||||
"value": "fade-scale",
|
||||
"label": "缩放消退"
|
||||
},
|
||||
{
|
||||
"value": "zoom-fade",
|
||||
"label": "渐变"
|
||||
},
|
||||
{
|
||||
"value": "zoom-out",
|
||||
"label": "闪现"
|
||||
}
|
||||
]
|
||||
}
|
||||
"darkMode": false,
|
||||
"followSystemTheme": true,
|
||||
"layout": {
|
||||
"minWidth": 900,
|
||||
"mode": "vertical",
|
||||
"modeList": [
|
||||
{
|
||||
"value": "vertical",
|
||||
"label": "左侧菜单模式"
|
||||
},
|
||||
{
|
||||
"value": "vertical-mix",
|
||||
"label": "左侧菜单混合模式"
|
||||
},
|
||||
{
|
||||
"value": "horizontal",
|
||||
"label": "顶部菜单模式"
|
||||
},
|
||||
{
|
||||
"value": "horizontal-mix",
|
||||
"label": "顶部菜单混合模式"
|
||||
}
|
||||
]
|
||||
},
|
||||
"themeColor": "#1890ff",
|
||||
"themeColorList": [
|
||||
"#1890ff",
|
||||
"#409EFF",
|
||||
"#2d8cf0",
|
||||
"#007AFF",
|
||||
"#5ac8fa",
|
||||
"#5856D6",
|
||||
"#536dfe",
|
||||
"#9c27b0",
|
||||
"#AF52DE",
|
||||
"#0096c7",
|
||||
"#00C1D4",
|
||||
"#34C759",
|
||||
"#43a047",
|
||||
"#7cb342",
|
||||
"#c0ca33",
|
||||
"#78DEC7",
|
||||
"#e53935",
|
||||
"#d81b60",
|
||||
"#f4511e",
|
||||
"#fb8c00",
|
||||
"#ffb300",
|
||||
"#fdd835",
|
||||
"#6d4c41",
|
||||
"#546e7a"
|
||||
],
|
||||
"otherColor": {
|
||||
"info": "#0099ad",
|
||||
"success": "#52c41a",
|
||||
"warning": "#faad14",
|
||||
"error": "#f5222d"
|
||||
},
|
||||
"isCustomizeInfoColor": false,
|
||||
"fixedHeaderAndTab": true,
|
||||
"showReload": true,
|
||||
"header": {
|
||||
"inverted": false,
|
||||
"height": 56,
|
||||
"crumb": {
|
||||
"visible": true,
|
||||
"showIcon": true
|
||||
}
|
||||
},
|
||||
"tab": {
|
||||
"visible": true,
|
||||
"height": 44,
|
||||
"mode": "chrome",
|
||||
"modeList": [
|
||||
{
|
||||
"value": "chrome",
|
||||
"label": "谷歌风格"
|
||||
},
|
||||
{
|
||||
"value": "button",
|
||||
"label": "按钮风格"
|
||||
}
|
||||
],
|
||||
"isCache": true
|
||||
},
|
||||
"sider": {
|
||||
"inverted": false,
|
||||
"width": 220,
|
||||
"collapsedWidth": 64,
|
||||
"mixWidth": 80,
|
||||
"mixCollapsedWidth": 48,
|
||||
"mixChildMenuWidth": 200
|
||||
},
|
||||
"menu": {
|
||||
"horizontalPosition": "flex-start",
|
||||
"horizontalPositionList": [
|
||||
{
|
||||
"value": "flex-start",
|
||||
"label": "居左"
|
||||
},
|
||||
{
|
||||
"value": "center",
|
||||
"label": "居中"
|
||||
},
|
||||
{
|
||||
"value": "flex-end",
|
||||
"label": "居右"
|
||||
}
|
||||
]
|
||||
},
|
||||
"footer": {
|
||||
"fixed": false,
|
||||
"height": 48
|
||||
},
|
||||
"page": {
|
||||
"animate": true,
|
||||
"animateMode": "fade-slide",
|
||||
"animateModeList": [
|
||||
{
|
||||
"value": "fade-slide",
|
||||
"label": "滑动"
|
||||
},
|
||||
{
|
||||
"value": "fade",
|
||||
"label": "消退"
|
||||
},
|
||||
{
|
||||
"value": "fade-bottom",
|
||||
"label": "底部消退"
|
||||
},
|
||||
{
|
||||
"value": "fade-scale",
|
||||
"label": "缩放消退"
|
||||
},
|
||||
{
|
||||
"value": "zoom-fade",
|
||||
"label": "渐变"
|
||||
},
|
||||
{
|
||||
"value": "zoom-out",
|
||||
"label": "闪现"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
@ -2,7 +2,7 @@ import type { Component } from 'vue';
|
||||
|
||||
type ViewComponent = Record<string, () => Promise<Component>>;
|
||||
|
||||
const importViews = import.meta.glob('./**/index.vue');
|
||||
const importViews = import.meta.glob('./**/index.vue') as ViewComponent;
|
||||
|
||||
const COMPONENTS_KEY = 'components';
|
||||
const PREFIX = './';
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"baseUrl": ".",
|
||||
"compilerOptions": {
|
||||
"baseUrl": ".",
|
||||
"module": "ESNext",
|
||||
"target": "ESNext",
|
||||
"lib": ["DOM", "ESNext"],
|
||||
@ -12,16 +12,11 @@
|
||||
"noUnusedLocals": true,
|
||||
"strictNullChecks": true,
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"paths": {
|
||||
"~/*": ["./*"],
|
||||
"@/*": ["./src/*"]
|
||||
},
|
||||
"types": [
|
||||
"vite/client",
|
||||
"node",
|
||||
"unplugin-icons/types/vue",
|
||||
"naive-ui/volar"
|
||||
]
|
||||
},
|
||||
"exclude": ["node_modules", "dist"]
|
||||
"paths": {
|
||||
"~/*": ["./*"],
|
||||
"@/*": ["./src/*"]
|
||||
},
|
||||
"types": ["vite/client", "node", "unplugin-icons/types/vue", "naive-ui/volar"]
|
||||
},
|
||||
"exclude": ["node_modules", "dist"]
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user