Skip to content

Commit

Permalink
build(projects): 代码优化
Browse files Browse the repository at this point in the history
ISSUES CLOSED: \
  • Loading branch information
honghuangdc committed Jun 1, 2022
1 parent c776249 commit de09f82
Show file tree
Hide file tree
Showing 5 changed files with 347 additions and 234 deletions.
56 changes: 40 additions & 16 deletions .eslintrc.js
Expand Up @@ -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',
Expand Down Expand Up @@ -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 changes: 13 additions & 11 deletions package.json
Expand Up @@ -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",
Expand All @@ -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",
Expand All @@ -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",
Expand All @@ -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",
Expand All @@ -89,14 +90,15 @@
"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",
"vite": "^2.9.9",
"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"
}
}

1 comment on commit de09f82

@vercel
Copy link

@vercel vercel bot commented on de09f82 Jun 1, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.