Skip to content

Commit

Permalink
chore: upgrade deps
Browse files Browse the repository at this point in the history
  • Loading branch information
buqiyuan committed Aug 4, 2024
1 parent 61bea44 commit 5aaf7b0
Show file tree
Hide file tree
Showing 19 changed files with 1,871 additions and 1,102 deletions.
3 changes: 0 additions & 3 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
#!/bin/sh

# shellcheck source=./_/husky.sh
. "$(dirname "$0")/_/husky.sh"

npx --no-install commitlint --edit "$1"
3 changes: 1 addition & 2 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
#!/bin/sh
. "$(dirname "$0")/common.sh"

[ -n "$CI" ] && exit 0
Expand Down
10 changes: 3 additions & 7 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,16 @@ export default defineFlatConfig([
rules: {
...pluginTypeScript.configs.strict.rules,
'@typescript-eslint/ban-types': 'off',
'@typescript-eslint/no-unused-vars': 'off',
'@typescript-eslint/no-unused-expressions': 'off',
'@typescript-eslint/no-invalid-void-type': 'off',
'@typescript-eslint/no-redeclare': 'error',
'@typescript-eslint/ban-ts-comment': 'off',
'@typescript-eslint/prefer-ts-expect-error': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/prefer-as-const': 'warn',
'@typescript-eslint/no-empty-function': 'off',
'@typescript-eslint/no-empty-object-type': 'off',
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/no-import-type-side-effects': 'error',
'@typescript-eslint/explicit-module-boundary-types': 'off',
Expand All @@ -63,13 +66,6 @@ export default defineFlatConfig([
{ disallowTypeAnnotations: false, fixStyle: 'inline-type-imports' },
],
'@typescript-eslint/prefer-literal-enum-member': ['error', { allowBitwiseExpressions: true }],
'@typescript-eslint/no-unused-vars': [
'error',
{
argsIgnorePattern: '^_',
varsIgnorePattern: '^_',
},
],
},
},
{
Expand Down
59 changes: 30 additions & 29 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,24 +46,24 @@
"@tinymce/tinymce-vue": "^6.0.1",
"@vueuse/core": "~10.11.0",
"ant-design-vue": "~4.2.3",
"axios": "~1.7.2",
"axios": "~1.7.3",
"crypto-js": "^4.2.0",
"dayjs": "~1.11.11",
"dayjs": "~1.11.12",
"echarts": "^5.5.1",
"file-saver": "~2.0.5",
"lodash-es": "~4.17.21",
"mitt": "~3.0.1",
"nprogress": "~1.0.0-1",
"pinia": "~2.1.7",
"pinia": "~2.2.0",
"pinia-plugin-persistedstate": "^3.2.1",
"qiniu-js": "^3.4.2",
"qs": "~6.12.3",
"qs": "~6.13.0",
"sortablejs": "~1.15.2",
"tinymce": "^7.2.1",
"vue": "~3.4.31",
"vue": "~3.4.35",
"vue-echarts": "^6.7.3",
"vue-i18n": "9.13.1",
"vue-router": "~4.4.0",
"vue-router": "~4.4.2",
"vue-types": "~5.1.3",
"vue-virtual-scroller": "2.0.0-beta.8",
"xlsx": "~0.18.5"
Expand All @@ -78,56 +78,57 @@
"@faker-js/faker": "^8.4.1",
"@iconify-json/ant-design": "^1.1.16",
"@iconify-json/ep": "^1.1.15",
"@iconify/json": "^2.2.215",
"@iconify/json": "^2.2.233",
"@types/crypto-js": "^4.2.2",
"@types/lodash-es": "~4.17.12",
"@types/node": "~20.13.0",
"@types/node": "~22.1.0",
"@types/qs": "^6.9.15",
"@types/sortablejs": "^1.15.8",
"@typescript-eslint/eslint-plugin": "~7.16.0",
"@typescript-eslint/parser": "~7.16.0",
"@typescript-eslint/eslint-plugin": "~8.0.0",
"@typescript-eslint/parser": "~8.0.0",
"@umijs/openapi": "^1.12.1",
"@vitejs/plugin-vue": "~5.0.5",
"@vitejs/plugin-vue": "~5.1.2",
"@vitejs/plugin-vue-jsx": "~4.0.0",
"@vue/tsconfig": "^0.5.1",
"commitizen": "~4.3.0",
"conventional-changelog-cli": "~4.1.0",
"core-js": "^3.37.1",
"cross-env": "~7.0.3",
"eslint": "~9.6.0",
"eslint": "~9.8.0",
"eslint-config-prettier": "~9.1.0",
"eslint-define-config": "~2.1.0",
"eslint-plugin-import": "~2.29.1",
"eslint-plugin-prettier": "~5.1.3",
"eslint-plugin-unused-imports": "^4.0.0",
"eslint-plugin-prettier": "~5.2.1",
"eslint-plugin-unused-imports": "^4.0.1",
"eslint-plugin-vue": "~9.27.0",
"husky": "~9.0.11",
"husky": "~9.1.4",
"less": "~4.2.0",
"lint-staged": "~15.2.7",
"lint-staged": "~15.2.8",
"msw": "^2.3.1",
"nx": "^19.4.2",
"postcss": "~8.4.39",
"nx": "^19.5.6",
"postcss": "~8.4.40",
"postcss-html": "~1.7.0",
"postcss-less": "~6.0.0",
"prettier": "~3.3.2",
"rimraf": "~5.0.8",
"stylelint": "~16.7.0",
"prettier": "~3.3.3",
"rimraf": "~5.0.9",
"stylelint": "~16.8.1",
"stylelint-config-property-sort-order-smacss": "^10.0.0",
"stylelint-config-recommended": "~14.0.1",
"stylelint-config-recommended-vue": "~1.5.0",
"stylelint-config-standard": "~36.0.1",
"stylelint-order": "~6.0.4",
"stylelint-prettier": "^5.0.0",
"typescript": "~5.5.3",
"unocss": "^0.61.3",
"unplugin-vue-components": "~0.27.2",
"vite": "~5.3.3",
"vite-plugin-checker": "~0.7.1",
"vite-plugin-inspect": "^0.8.4",
"stylelint-prettier": "^5.0.2",
"typescript": "~5.5.4",
"unocss": "^0.61.9",
"unplugin-vue-components": "~0.27.3",
"vite": "~5.3.5",
"vite-plugin-checker": "~0.7.2",
"vite-plugin-inspect": "^0.8.5",
"vite-plugin-mkcert": "^1.17.5",
"vite-plugin-svg-icons": "~2.0.1",
"vite-plugin-vue-inspector": "^5.1.3",
"vue-eslint-parser": "~9.4.3",
"vue-tsc": "~2.0.26"
"vue-tsc": "~2.0.29"
},
"__npminstall_done": false,
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion packages/vite-plugin-http2-proxy/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@
"http2-proxy": "^5.0.53"
},
"peerDependencies": {
"vite": "^5.2.11"
"vite": "^5.3.5"
}
}
5 changes: 3 additions & 2 deletions packages/vite-plugin-http2-proxy/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import http2Proxy from 'http2-proxy';
import type { Plugin, ProxyOptions } from 'vite';
import type { Plugin, PluginOption, ProxyOptions } from 'vite';

const error = (message: string): never => {
throw new Error(message);
};

export default (options?: Record<string, ProxyOptions>): Plugin => {
export default (options?: Record<string, ProxyOptions>): PluginOption => {
let routes: Record<string, ProxyOptions>;

const configure: Plugin['configureServer'] = ({ middlewares, httpServer }) => {
Expand Down Expand Up @@ -96,6 +96,7 @@ export default (options?: Record<string, ProxyOptions>): Plugin => {
}
};

// @ts-ignore
return {
name: '@admin-pkg/vite-plugin-http2-proxy',
config: (config) => {
Expand Down
2 changes: 1 addition & 1 deletion packages/vite-plugin-msw/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,6 @@
},
"peerDependencies": {
"msw": "^2.3.0",
"vite": "^5.2.11"
"vite": "^5.3.5"
}
}
2 changes: 1 addition & 1 deletion packages/vite-plugin-tinymce-resource/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
"build": "tsc"
},
"peerDependencies": {
"vite": "^5.2.11"
"vite": "^5.3.5"
}
}
Loading

0 comments on commit 5aaf7b0

Please sign in to comment.