From 8733c3e42e2ee3d9df50c70426b19e0992ed8c62 Mon Sep 17 00:00:00 2001 From: mini2024 Date: Sun, 9 Mar 2025 23:30:29 +0800 Subject: [PATCH] =?UTF-8?q?chore(deps):=20=E5=8D=87=E7=BA=A7=20oxlint?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- eslint.config.ts | 2 +- package.json | 4 +- pnpm-lock.yaml | 98 ++++++++++--------- src/layouts/sakai-vue/AppMenu.vue | 4 +- src/pages/SAT/CesiumViewer.vue | 15 +-- .../cesium-helper/00.cesium-init.globe.ts | 7 +- src/pages/cesium/cesium-helper/README.md | 3 + src/pages/cesium/index.page.vue | 9 +- src/pages/index.page.vue | 2 +- typed-router.d.ts | 2 +- 10 files changed, 72 insertions(+), 74 deletions(-) diff --git a/eslint.config.ts b/eslint.config.ts index 0540af3..9d6d349 100644 --- a/eslint.config.ts +++ b/eslint.config.ts @@ -42,7 +42,7 @@ export default defineConfigWithVueTs( // ...pluginCypress.configs.recommended, // files: ['cypress/e2e/**/*.{cy,spec}.{js,ts,jsx,tsx}', 'cypress/support/**/*.{js,ts,jsx,tsx}'], // }, - oxlint.configs['flat/recommended'], + ...oxlint.configs['flat/recommended'], skipFormatting, [ diff --git a/package.json b/package.json index 1be1384..9d16929 100644 --- a/package.json +++ b/package.json @@ -99,7 +99,7 @@ "eruda": "^3.4.1", "eslint": "^9.20.1", "eslint-plugin-import-x": "^4.6.1", - "eslint-plugin-oxlint": "^0.15.10", + "eslint-plugin-oxlint": "^0.15.13", "eslint-plugin-perfectionist": "^4.8.0", "eslint-plugin-vue": "^9.32.0", "husky": "^9.1.7", @@ -107,7 +107,7 @@ "lint-staged": "^15.4.3", "mockjs": "^1.1.0", "npm-run-all2": "^7.0.2", - "oxlint": "^0.15.10", + "oxlint": "^0.15.13", "prettier": "3.4.2", "sass-embedded": "^1.83.4", "surge": "^0.24.6", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 93c911c..2beb9eb 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -192,8 +192,8 @@ importers: specifier: ^4.6.1 version: 4.6.1(eslint@9.20.1(jiti@2.4.2))(typescript@5.7.3) eslint-plugin-oxlint: - specifier: ^0.15.10 - version: 0.15.10 + specifier: ^0.15.13 + version: 0.15.13 eslint-plugin-perfectionist: specifier: ^4.8.0 version: 4.8.0(eslint@9.20.1(jiti@2.4.2))(typescript@5.7.3) @@ -216,8 +216,8 @@ importers: specifier: ^7.0.2 version: 7.0.2 oxlint: - specifier: ^0.15.10 - version: 0.15.10 + specifier: ^0.15.13 + version: 0.15.13 prettier: specifier: 3.4.2 version: 3.4.2 @@ -973,6 +973,10 @@ packages: resolution: {integrity: sha512-2kGiWoXaeV8HZlhU/Nml12oTbhv7j2ufsJ5vQaa0VTjzUmZVdd/nmKFRAOJ/FtjO90Qba5AnZDwsrY7ZND5udA==} engines: {node: '>= 16'} + '@intlify/shared@11.1.2': + resolution: {integrity: sha512-dF2iMMy8P9uKVHV/20LA1ulFLL+MKSbfMiixSmn6fpwqzvix38OIc7ebgnFbBqElvghZCW9ACtzKTGKsTGTWGA==} + engines: {node: '>= 16'} + '@intlify/unplugin-vue-i18n@6.0.3': resolution: {integrity: sha512-9ZDjBlhUHtgjRl23TVcgfJttgu8cNepwVhWvOv3mUMRDAhjW0pur1mWKEUKr1I8PNwE4Gvv2IQ1xcl4RL0nG0g==} engines: {node: '>= 18'} @@ -1134,43 +1138,43 @@ packages: cpu: [x64] os: [win32] - '@oxlint/darwin-arm64@0.15.10': - resolution: {integrity: sha512-nGuKO+lZh4vS2Lb9lceePSQkXLhKcBPIAlux8BY+ewk2LnNNWsCbHhoslBwLF2h0MB8HiqOIk8WzRwllCY8sBg==} + '@oxlint/darwin-arm64@0.15.13': + resolution: {integrity: sha512-YxUmq/J8+RKniDOFTbmMu6OEd6LliL7gVr9vRk3J3r59AGlV9oprcovWtf65wtDRjGWPwu1y94ghunSTw395+Q==} cpu: [arm64] os: [darwin] - '@oxlint/darwin-x64@0.15.10': - resolution: {integrity: sha512-Xpyk8PiNKIrxYuundViBsxLcltYPGy+M5w/mO7EI9eeqSizMvWNimQgfPzK5fgh3V0gv8bJG0IyPZJVN0uEE9A==} + '@oxlint/darwin-x64@0.15.13': + resolution: {integrity: sha512-JWKp7iAnFYbWmGSiFgGzzlykunCLVEVdA3P1KdYRc8VFMWt4m1guPsvqwGkqyRmv4wzCIdhNHIUa7/tAGPp6kg==} cpu: [x64] os: [darwin] - '@oxlint/linux-arm64-gnu@0.15.10': - resolution: {integrity: sha512-fUxOOYlQBXc6Cz7d40zE2G6VG4yhR9vz+P1M8T1NhTe6yFUzfCCWV+zmHxpUPEy9dgGZPIvodIx7bP+kOPEmuA==} + '@oxlint/linux-arm64-gnu@0.15.13': + resolution: {integrity: sha512-2ruYMs1Dex7GutXbsj5qAU1c0GGow5s+BCS6f1ls288yXqzE+NHElCQR8OzKl6JcPEwLosfuLJGRhpz5kFcFwQ==} cpu: [arm64] os: [linux] - '@oxlint/linux-arm64-musl@0.15.10': - resolution: {integrity: sha512-JESSO73nplnTftaBpWdgjsOtuSfl7Jeg3I37qJYVtHIxxyJMtHuuUd9g0K0MLbwcue2K7DFCnzlDNlxer2yrgQ==} + '@oxlint/linux-arm64-musl@0.15.13': + resolution: {integrity: sha512-TlQLe8bPr3FG5qhHkMNRvhdxITKNwLIqTLb0er84yQGFjQnvoLEVVe56BPsCNs9AwO8bw9WgLo22AlP7wuBOAw==} cpu: [arm64] os: [linux] - '@oxlint/linux-x64-gnu@0.15.10': - resolution: {integrity: sha512-NS4joBtL8Hg7zPBlPxSzrSRqkxtZfABf+fAY8vNxwYMsG8I8VoQZQdhz7+0p6ecg0+jH3CmIpDQfo73eaUBwoA==} + '@oxlint/linux-x64-gnu@0.15.13': + resolution: {integrity: sha512-duyk1FXb45D1PEbdOhnS4GCyD3MxcCJaDurG+VCGUeZOEzvQXI5vdOqmieA3nsizzoTFjHR98wwXCE426ETlcw==} cpu: [x64] os: [linux] - '@oxlint/linux-x64-musl@0.15.10': - resolution: {integrity: sha512-zC2eEEe4scfsoUV87YsZFOSfPutxeaAmCI9Ys2G1lQoTyZ+9G9nuxTzBMla/yspX6mQGxonXPxLxYbIlDT24vA==} + '@oxlint/linux-x64-musl@0.15.13': + resolution: {integrity: sha512-fs53fyfXRVtsy+QGA0zp8o1+3XL+e6FDtdvdjsdVBif0O7gpuVJuLFpyv2AlL7r3J4J8E4WaVk0poAvmlwoOZg==} cpu: [x64] os: [linux] - '@oxlint/win32-arm64@0.15.10': - resolution: {integrity: sha512-u8nHap9L96zTQvwHYqn1ZcoiHzLR24ifuKDBIwlmwEVYucUgE55tUc+ea8kPUUB4uvfOv0HtAxNFuKr43biPzg==} + '@oxlint/win32-arm64@0.15.13': + resolution: {integrity: sha512-QcgHzVpFK6oBARsgjc4DjApsbkdMi/aJgv2r885vvVWABlzKV302J5FyHs4osmaTVEImf8B8FAX+MlWGAIQtEw==} cpu: [arm64] os: [win32] - '@oxlint/win32-x64@0.15.10': - resolution: {integrity: sha512-OvG4lRw2AnTDJnCb1Jm1bzE2KuRvJLE+fQ6TDSj0UQSmTGHLXIZLc+Y8HMxntCx0p850FVBtYixdg2sHkv+i3g==} + '@oxlint/win32-x64@0.15.13': + resolution: {integrity: sha512-YQ52fcXHyK2dmUAiM1U4UTBFxeQ3f4HyeE19CinceIzz6gRev1c0aK2JzCCLZnajO2IB5/z5tkdcFDzisKx/Pw==} cpu: [x64] os: [win32] @@ -2917,8 +2921,8 @@ packages: peerDependencies: eslint: ^8.57.0 || ^9.0.0 - eslint-plugin-oxlint@0.15.10: - resolution: {integrity: sha512-e8Q1xdvGhmy3jUpszrbLT2dX7X0xl2B2QmPSvkIlU+ozixXDw7EJCj8XsB/zO2wLLE1R73yF4wy5oqQXe5SLKA==} + eslint-plugin-oxlint@0.15.13: + resolution: {integrity: sha512-yTIxhdPILY44pjbUx/0s7W+yRBmqchDy6OlOGTCGmklcEglo3jtL1fWKxf1pFTZKSiHbeTfZqJzEmwBEtv9Wcw==} eslint-plugin-perfectionist@4.8.0: resolution: {integrity: sha512-ZF04IAPGItYMlj9xjgvvl/QpksZf79g0dkxbNcuxDjbcUSZ4CwucJ7h5Yzt5JuHe+i6igQbUYEp40j4ndfbvWQ==} @@ -4121,8 +4125,8 @@ packages: oxc-resolver@3.0.3: resolution: {integrity: sha512-fU5lhDCb9fCv/CP2YJiBEcuC+ZhTdOBzyacoUvPlZxA4NpF6JPVbgeYD9rthQIjfWlAwi5qfxQj2dyqxLoJ9HA==} - oxlint@0.15.10: - resolution: {integrity: sha512-962UBhpbd041fnx1GjQIY7uGIAXcAl/t45Xd6IZi11PyXVRHz7TjC4qpndrwp98Lfg7HuDaMXoOWOaNsgtEgag==} + oxlint@0.15.13: + resolution: {integrity: sha512-MmzoIxomX7wmM3x55Nq7yKVirkXDJePXrUUqyQPSk/PhixeTZ8PVTsZ32jqjBiSphoL6cZIXYkd5iBmqW/zA1Q==} engines: {node: '>=8.*'} hasBin: true @@ -6245,12 +6249,14 @@ snapshots: '@intlify/shared@11.1.1': {} + '@intlify/shared@11.1.2': {} + '@intlify/unplugin-vue-i18n@6.0.3(@vue/compiler-dom@3.5.13)(eslint@9.20.1(jiti@2.4.2))(rollup@4.30.1)(typescript@5.7.3)(vue-i18n@11.1.1(vue@3.5.13(typescript@5.7.3)))(vue@3.5.13(typescript@5.7.3))': dependencies: '@eslint-community/eslint-utils': 4.4.1(eslint@9.20.1(jiti@2.4.2)) '@intlify/bundle-utils': 10.0.0(vue-i18n@11.1.1(vue@3.5.13(typescript@5.7.3))) - '@intlify/shared': 11.1.1 - '@intlify/vue-i18n-extensions': 8.0.0(@intlify/shared@11.1.1)(@vue/compiler-dom@3.5.13)(vue-i18n@11.1.1(vue@3.5.13(typescript@5.7.3)))(vue@3.5.13(typescript@5.7.3)) + '@intlify/shared': 11.1.2 + '@intlify/vue-i18n-extensions': 8.0.0(@intlify/shared@11.1.2)(@vue/compiler-dom@3.5.13)(vue-i18n@11.1.1(vue@3.5.13(typescript@5.7.3)))(vue@3.5.13(typescript@5.7.3)) '@rollup/pluginutils': 5.1.4(rollup@4.30.1) '@typescript-eslint/scope-manager': 8.19.1 '@typescript-eslint/typescript-estree': 8.19.1(typescript@5.7.3) @@ -6272,11 +6278,11 @@ snapshots: - supports-color - typescript - '@intlify/vue-i18n-extensions@8.0.0(@intlify/shared@11.1.1)(@vue/compiler-dom@3.5.13)(vue-i18n@11.1.1(vue@3.5.13(typescript@5.7.3)))(vue@3.5.13(typescript@5.7.3))': + '@intlify/vue-i18n-extensions@8.0.0(@intlify/shared@11.1.2)(@vue/compiler-dom@3.5.13)(vue-i18n@11.1.1(vue@3.5.13(typescript@5.7.3)))(vue@3.5.13(typescript@5.7.3))': dependencies: '@babel/parser': 7.26.3 optionalDependencies: - '@intlify/shared': 11.1.1 + '@intlify/shared': 11.1.2 '@vue/compiler-dom': 3.5.13 vue: 3.5.13(typescript@5.7.3) vue-i18n: 11.1.1(vue@3.5.13(typescript@5.7.3)) @@ -6442,28 +6448,28 @@ snapshots: '@oxc-resolver/binding-win32-x64-msvc@3.0.3': optional: true - '@oxlint/darwin-arm64@0.15.10': + '@oxlint/darwin-arm64@0.15.13': optional: true - '@oxlint/darwin-x64@0.15.10': + '@oxlint/darwin-x64@0.15.13': optional: true - '@oxlint/linux-arm64-gnu@0.15.10': + '@oxlint/linux-arm64-gnu@0.15.13': optional: true - '@oxlint/linux-arm64-musl@0.15.10': + '@oxlint/linux-arm64-musl@0.15.13': optional: true - '@oxlint/linux-x64-gnu@0.15.10': + '@oxlint/linux-x64-gnu@0.15.13': optional: true - '@oxlint/linux-x64-musl@0.15.10': + '@oxlint/linux-x64-musl@0.15.13': optional: true - '@oxlint/win32-arm64@0.15.10': + '@oxlint/win32-arm64@0.15.13': optional: true - '@oxlint/win32-x64@0.15.10': + '@oxlint/win32-x64@0.15.13': optional: true '@pinia/colada@0.13.5(pinia@3.0.1(typescript@5.7.3)(vue@3.5.13(typescript@5.7.3)))': @@ -8536,7 +8542,7 @@ snapshots: - supports-color - typescript - eslint-plugin-oxlint@0.15.10: + eslint-plugin-oxlint@0.15.13: dependencies: jsonc-parser: 3.3.1 @@ -9764,16 +9770,16 @@ snapshots: '@oxc-resolver/binding-win32-arm64-msvc': 3.0.3 '@oxc-resolver/binding-win32-x64-msvc': 3.0.3 - oxlint@0.15.10: + oxlint@0.15.13: optionalDependencies: - '@oxlint/darwin-arm64': 0.15.10 - '@oxlint/darwin-x64': 0.15.10 - '@oxlint/linux-arm64-gnu': 0.15.10 - '@oxlint/linux-arm64-musl': 0.15.10 - '@oxlint/linux-x64-gnu': 0.15.10 - '@oxlint/linux-x64-musl': 0.15.10 - '@oxlint/win32-arm64': 0.15.10 - '@oxlint/win32-x64': 0.15.10 + '@oxlint/darwin-arm64': 0.15.13 + '@oxlint/darwin-x64': 0.15.13 + '@oxlint/linux-arm64-gnu': 0.15.13 + '@oxlint/linux-arm64-musl': 0.15.13 + '@oxlint/linux-x64-gnu': 0.15.13 + '@oxlint/linux-x64-musl': 0.15.13 + '@oxlint/win32-arm64': 0.15.13 + '@oxlint/win32-x64': 0.15.13 p-limit@3.1.0: dependencies: diff --git a/src/layouts/sakai-vue/AppMenu.vue b/src/layouts/sakai-vue/AppMenu.vue index 60b56ed..4bb6b20 100644 --- a/src/layouts/sakai-vue/AppMenu.vue +++ b/src/layouts/sakai-vue/AppMenu.vue @@ -16,7 +16,7 @@ const menuItems = computed(() => { routeName: route.name as string, })); - flatArray = flatArray.map((item, index) => { + flatArray = flatArray.map((item /* index */) => { let id = item.id; if (flatArray.some((item) => item.id.startsWith(`${id}/`))) { id = `${id}/index`; @@ -60,7 +60,7 @@ const menuItems = computed(() => { if (item.children.length) { item.items = _convertChildrenToItems(item.children); } else { - item.command = (event) => { + item.command = (/* event */) => { router.push({ name: item.routeName as never }); }; } diff --git a/src/pages/SAT/CesiumViewer.vue b/src/pages/SAT/CesiumViewer.vue index 57108b1..566de82 100644 --- a/src/pages/SAT/CesiumViewer.vue +++ b/src/pages/SAT/CesiumViewer.vue @@ -1,19 +1,6 @@ diff --git a/src/pages/index.page.vue b/src/pages/index.page.vue index 33993c6..409a53c 100644 --- a/src/pages/index.page.vue +++ b/src/pages/index.page.vue @@ -17,7 +17,7 @@ useHead({ consola.info('routes', routes); -const FComponent: import('vue').FunctionalComponent<{ prop: string }> = (props, context) => ( +const FComponent: import('vue').FunctionalComponent<{ prop: string }> = (props /* context */) => ( <> , Record>, '$Path': RouteRecordInfo<'$Path', '/:path(.*)', { path: ParamValue }, { path: ParamValue }>, 'AntdV': RouteRecordInfo<'AntdV', '/AntdV', Record, Record>, - 'Api': RouteRecordInfo<'Api', '/api', Record, Record>, + 'API': RouteRecordInfo<'API', '/API', Record, Record>, 'Cesium': RouteRecordInfo<'Cesium', '/cesium', Record, Record>, 'DataLoadersId': RouteRecordInfo<'DataLoadersId', '/data-loaders/:id', { id: ParamValue }, { id: ParamValue }>, 'DataLoadersIdSub1UserId': RouteRecordInfo<'DataLoadersIdSub1UserId', '/data-loaders/:id/sub-1/:userId', { id: ParamValue, userId: ParamValue }, { id: ParamValue, userId: ParamValue }>,