build(projects): 代码优化
ISSUES CLOSED: \
This commit is contained in:
parent
c7762490de
commit
de09f82586
56
.eslintrc.js
56
.eslintrc.js
@ -26,8 +26,46 @@ module.exports = {
|
||||
'@vue/eslint-config-prettier',
|
||||
'@vue/typescript/recommended'
|
||||
],
|
||||
overrides: [
|
||||
{
|
||||
files: ['*.vue'],
|
||||
rules: {
|
||||
'no-undef': 'off'
|
||||
}
|
||||
},
|
||||
{
|
||||
files: ['*.html'],
|
||||
rules: {
|
||||
'vue/comment-directive': 'off'
|
||||
}
|
||||
}
|
||||
],
|
||||
settings: {
|
||||
'import/resolver': {
|
||||
alias: {
|
||||
map: [
|
||||
['~', '.'],
|
||||
['@', './src']
|
||||
],
|
||||
extensions: ['.js', '.jsx', '.mjs', '.ts', '.tsx', '.d.ts']
|
||||
},
|
||||
node: {
|
||||
extensions: ['.js', '.jsx', '.mjs', '.ts', '.tsx', '.d.ts']
|
||||
}
|
||||
}
|
||||
},
|
||||
rules: {
|
||||
'import/extensions': 'off',
|
||||
'import/extensions': [
|
||||
'warn',
|
||||
'ignorePackages',
|
||||
{
|
||||
js: 'never',
|
||||
jsx: 'never',
|
||||
mjs: 'never',
|
||||
ts: 'never',
|
||||
tsx: 'never'
|
||||
}
|
||||
],
|
||||
'import/no-extraneous-dependencies': 'off',
|
||||
'import/order': [
|
||||
'error',
|
||||
@ -175,19 +213,5 @@ module.exports = {
|
||||
'@typescript-eslint/no-shadow': 'error',
|
||||
'@typescript-eslint/no-unused-vars': ['warn', { ignoreRestSiblings: true, varsIgnorePattern: '^_' }],
|
||||
'@typescript-eslint/no-use-before-define': ['error', { classes: true, functions: false, typedefs: false }]
|
||||
},
|
||||
overrides: [
|
||||
{
|
||||
files: ['*.vue'],
|
||||
rules: {
|
||||
'no-undef': 'off'
|
||||
}
|
||||
},
|
||||
{
|
||||
files: ['*.html'],
|
||||
rules: {
|
||||
'vue/comment-directive': 'off'
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
};
|
||||
|
24
package.json
24
package.json
@ -31,7 +31,7 @@
|
||||
"@better-scroll/core": "^2.4.2",
|
||||
"@soybeanjs/vue-admin-layout": "^1.0.4",
|
||||
"@soybeanjs/vue-admin-tab": "^1.0.2",
|
||||
"@vueuse/core": "^8.5.0",
|
||||
"@vueuse/core": "^8.6.0",
|
||||
"axios": "^0.27.2",
|
||||
"clipboard": "^2.0.11",
|
||||
"colord": "^2.9.2",
|
||||
@ -44,7 +44,7 @@
|
||||
"pinia": "^2.0.14",
|
||||
"print-js": "^1.6.0",
|
||||
"qs": "^6.10.3",
|
||||
"swiper": "^8.1.6",
|
||||
"swiper": "^8.2.2",
|
||||
"ua-parser-js": "^1.0.2",
|
||||
"vditor": "^3.8.15",
|
||||
"vue": "3.2.36",
|
||||
@ -54,17 +54,17 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@amap/amap-jsapi-types": "^0.0.8",
|
||||
"@commitlint/cli": "^17.0.1",
|
||||
"@commitlint/config-conventional": "^17.0.0",
|
||||
"@iconify/json": "^2.1.54",
|
||||
"@commitlint/cli": "^17.0.2",
|
||||
"@commitlint/config-conventional": "^17.0.2",
|
||||
"@iconify/json": "^2.1.55",
|
||||
"@iconify/vue": "^3.2.1",
|
||||
"@types/bmapgl": "^0.0.5",
|
||||
"@types/crypto-js": "^4.1.1",
|
||||
"@types/node": "^17.0.36",
|
||||
"@types/node": "^17.0.38",
|
||||
"@types/qs": "^6.9.7",
|
||||
"@types/ua-parser-js": "^0.7.36",
|
||||
"@typescript-eslint/eslint-plugin": "^5.26.0",
|
||||
"@typescript-eslint/parser": "^5.26.0",
|
||||
"@typescript-eslint/eslint-plugin": "^5.27.0",
|
||||
"@typescript-eslint/parser": "^5.27.0",
|
||||
"@vitejs/plugin-vue": "^2.3.3",
|
||||
"@vitejs/plugin-vue-jsx": "^1.3.10",
|
||||
"@vue/eslint-config-prettier": "^7.0.0",
|
||||
@ -76,11 +76,12 @@
|
||||
"eslint": "^8.16.0",
|
||||
"eslint-config-airbnb-base": "^15.0.0",
|
||||
"eslint-config-prettier": "^8.5.0",
|
||||
"eslint-import-resolver-alias": "^1.1.2",
|
||||
"eslint-plugin-import": "^2.26.0",
|
||||
"eslint-plugin-prettier": "^4.0.0",
|
||||
"eslint-plugin-vue": "8.7.1",
|
||||
"eslint-plugin-vue": "9.1.0",
|
||||
"husky": "^8.0.1",
|
||||
"lint-staged": "^12.4.3",
|
||||
"lint-staged": "^13.0.0",
|
||||
"mockjs": "^1.1.0",
|
||||
"patch-package": "^6.4.7",
|
||||
"postinstall-postinstall": "^2.1.0",
|
||||
@ -89,7 +90,7 @@
|
||||
"sass": "^1.52.1",
|
||||
"standard-version": "^9.5.0",
|
||||
"typescript": "^4.7.2",
|
||||
"unocss": "^0.36.0",
|
||||
"unocss": "^0.37.2",
|
||||
"unplugin-icons": "^0.14.3",
|
||||
"unplugin-vue-components": "0.19.6",
|
||||
"unplugin-vue-define-options": "^0.6.1",
|
||||
@ -97,6 +98,7 @@
|
||||
"vite-plugin-compression": "^0.5.1",
|
||||
"vite-plugin-html": "^3.2.0",
|
||||
"vite-plugin-mock": "^2.9.6",
|
||||
"vue-eslint-parser": "^9.0.2",
|
||||
"vue-tsc": "^0.35.2"
|
||||
}
|
||||
}
|
||||
|
487
pnpm-lock.yaml
487
pnpm-lock.yaml
File diff suppressed because it is too large
Load Diff
@ -1,5 +1,5 @@
|
||||
import { createRequest } from './request';
|
||||
import { getEnvConfig } from '~/.env-config';
|
||||
import { createRequest } from './request';
|
||||
|
||||
const envConfig = getEnvConfig(import.meta.env);
|
||||
const isHttpProxy = import.meta.env.VITE_HTTP_PROXY === 'true';
|
||||
|
@ -39,12 +39,12 @@
|
||||
import { ref } from 'vue';
|
||||
import { Icon } from '@iconify/vue';
|
||||
import { icons } from './icons';
|
||||
import CustomActivity from '~icons/custom/activity';
|
||||
import CustomAtSign from '~icons/custom/at-sign';
|
||||
import CustomCast from '~icons/custom/cast';
|
||||
import CustomChrome from '~icons/custom/chrome';
|
||||
import CustomCopy from '~icons/custom/copy';
|
||||
import CustomWind from '~icons/custom/wind';
|
||||
import CustomActivity from '~icons/custom/activity.svg';
|
||||
import CustomAtSign from '~icons/custom/at-sign.svg';
|
||||
import CustomCast from '~icons/custom/cast.svg';
|
||||
import CustomChrome from '~icons/custom/chrome.svg';
|
||||
import CustomCopy from '~icons/custom/copy.svg';
|
||||
import CustomWind from '~icons/custom/wind.svg';
|
||||
|
||||
const selectValue = ref('');
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user