From cd3907d242d125a610ecd649e4d0271dda9ca7b2 Mon Sep 17 00:00:00 2001 From: Chilfish Date: Wed, 15 May 2024 09:05:07 +0800 Subject: [PATCH] chore: lint files --- apps/cli/build.ts | 2 +- eslint.config.js | 17 + eslint.config.ts | 23 -- package.json | 8 +- packages/core/src/utils/image.ts | 2 +- packages/core/src/utils/storage.ts | 4 +- packages/shared/src/parse.ts | 6 +- packages/shared/src/protocol.ts | 2 +- pnpm-lock.yaml | 529 ++++++++++++++++++----------- scripts/download.mjs | 4 +- tsconfig.json | 4 +- 11 files changed, 363 insertions(+), 238 deletions(-) create mode 100644 eslint.config.js delete mode 100644 eslint.config.ts diff --git a/apps/cli/build.ts b/apps/cli/build.ts index 5d241bb..63e496d 100644 --- a/apps/cli/build.ts +++ b/apps/cli/build.ts @@ -7,7 +7,7 @@ const root = path.resolve(path.resolve(), '../../') const pkg = await readFile('package.json', 'utf-8') // 移除 dist 前缀 - .then(data => data.replace(/dist\//gm, '')) + .then(data => data.replace(/dist\//g, '')) // 移除 devDependencies .then(data => JSON.parse(data)) .then((data) => { diff --git a/eslint.config.js b/eslint.config.js new file mode 100644 index 0000000..68fcaf7 --- /dev/null +++ b/eslint.config.js @@ -0,0 +1,17 @@ +import antfu from '@antfu/eslint-config' + +export default antfu({ + unocss: true, + formatters: true, + rules: { + 'no-console': 'off', + 'vue/no-multiple-template-root': 'off', + 'node/prefer-global/process': 'off', + 'format/prettier': 'off', + 'antfu/no-import-dist': 'off', + }, + ignores: [ + 'pnpm-lock.yaml', + ], +}, +) diff --git a/eslint.config.ts b/eslint.config.ts deleted file mode 100644 index c03b095..0000000 --- a/eslint.config.ts +++ /dev/null @@ -1,23 +0,0 @@ -import antfu from '@antfu/eslint-config' - -export default antfu( - { - unocss: true, - formatters: true, - }, - { - rules: { - 'no-console': 'off', - 'vue/no-multiple-template-root': 'off', - 'node/prefer-global/process': 'off', - 'format/prettier': 'off', - 'antfu/no-import-dist': 'off', - }, - }, - { - ignores: [ - 'dist', - '.output', - ], - }, -) diff --git a/package.json b/package.json index 09c0dab..aeef698 100644 --- a/package.json +++ b/package.json @@ -30,17 +30,15 @@ "postinstall": "simple-git-hooks" }, "devDependencies": { - "@antfu/eslint-config": "^2.17.0", + "@antfu/eslint-config": "^2.18.0", "@unocss/eslint-config": "^0.60.2", "@unocss/eslint-plugin": "^0.60.2", - "eslint": "npm:eslint-ts-patch@8.55.0-1", "eslint-plugin-format": "^0.1.1", - "eslint-ts-patch": "8.55.0-1", "jszip": "3.9.1", "lint-staged": "^15.2.2", - "pnpm": "^9.1.0", + "pnpm": "^9.1.1", "simple-git-hooks": "^2.11.1", - "tsx": "^4.10.1", + "tsx": "^4.10.2", "typescript": "^5.4.5", "unbuild": "^2.0.0", "vue-tsc": "^2.0.17" diff --git a/packages/core/src/utils/image.ts b/packages/core/src/utils/image.ts index 26e1a02..2221959 100644 --- a/packages/core/src/utils/image.ts +++ b/packages/core/src/utils/image.ts @@ -25,7 +25,7 @@ export function replaceImg(img: string, forceCdn = false) { } const name = img.split('/').pop()?.replace(/\?.+/, '') // 同时去除 params - const prefix = img.match(/^(?:https?:\/\/)?([^:\/\n]+)/im)?.[1] // 域名 + const prefix = img.match(/^(?:https?:\/\/)?([^:/\n]+)/im)?.[1] // 域名 if (!prefix || !name) return img diff --git a/packages/core/src/utils/storage.ts b/packages/core/src/utils/storage.ts index 454f40e..d7c465c 100644 --- a/packages/core/src/utils/storage.ts +++ b/packages/core/src/utils/storage.ts @@ -246,8 +246,8 @@ export class IDB { .replace(/<[^>]+>/g, ' ') // 移除所有 HTML 标签 .replace(/(undefined|查看图片|查看链接|转发微博)/, '') .replace(/&[a-z]+;/g, ' ') // 移除 HTML 实体字符 - .replace(/[\s\n]+/g, ' ') // 移除多余的空白字符 - .replace(/@[\u4E00-\u9FA5a-zA-Z0-9_-]+/g, '') // 移除 @ 用户名 + .replace(/\s+/g, ' ') // 移除多余的空白字符 + .replace(/@[\u4E00-\u9FA5\w-]+/g, '') // 移除 @ 用户名 .trim(), } }) diff --git a/packages/shared/src/parse.ts b/packages/shared/src/parse.ts index c251026..f63fbaa 100644 --- a/packages/shared/src/parse.ts +++ b/packages/shared/src/parse.ts @@ -30,11 +30,11 @@ export function parseText(text?: string) { /]*>(@[^<]+)<\/a>/g, // @用户 (_, user) => link(`${user}`, `${weibo}/n/${user.replace('@', '')}`), ) - .replace(/]+alt="([^"]*)"[^>]*>/gm, (_, alt) => alt) // 表情图片 - .replace(/]*>/gm, '') // 图标 + .replace(/]+alt="([^"]*)"[^>]*>/g, (_, alt) => alt) // 表情图片 + .replace(/]*>/g, '') // 图标 .replace(/(https:)?\/\/weibo.cn\/sinaurl\?u=(.+)/, (_, __, href) => decodeURIComponent(href)) // 去掉微博的链接跳转 - const retweetImg = /]*href="([^"]*)"[^>]*>查看图片<\/a>/gm.exec(parsed) + const retweetImg = /]*href="([^"]*)"[^>]*>查看图片<\/a>/.exec(parsed) let textImg = null if (retweetImg && retweetImg[1]) { diff --git a/packages/shared/src/protocol.ts b/packages/shared/src/protocol.ts index 1cb1bfc..a4f7f32 100644 --- a/packages/shared/src/protocol.ts +++ b/packages/shared/src/protocol.ts @@ -3,7 +3,7 @@ import type { ProtocolMap } from './types' export const protocolMap: ProtocolMap = { img: { text: '查看图片', - reg: /\[img:\/\/(.+?)]/gm, + reg: /\[img:\/\/(.+?)\]/g, /** * 解析包含查看图片协议的文本 * 将返回包含 组件和原文本的 VNode diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index a30d91c..1e972da 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -9,23 +9,17 @@ importers: .: devDependencies: '@antfu/eslint-config': - specifier: ^2.17.0 - version: 2.17.0(@unocss/eslint-plugin@0.60.2(eslint-ts-patch@8.55.0-1)(typescript@5.4.5))(@vue/compiler-sfc@3.4.27)(eslint-plugin-format@0.1.1(eslint-ts-patch@8.55.0-1))(eslint-ts-patch@8.55.0-1)(svelte@4.2.12)(typescript@5.4.5) + specifier: ^2.18.0 + version: 2.18.0(@unocss/eslint-plugin@0.60.2(eslint@8.56.0)(typescript@5.4.5))(@vue/compiler-sfc@3.4.27)(eslint-plugin-format@0.1.1(eslint@8.56.0))(eslint@8.56.0)(svelte@4.2.12)(typescript@5.4.5) '@unocss/eslint-config': specifier: ^0.60.2 - version: 0.60.2(eslint-ts-patch@8.55.0-1)(typescript@5.4.5) + version: 0.60.2(eslint@8.56.0)(typescript@5.4.5) '@unocss/eslint-plugin': specifier: ^0.60.2 - version: 0.60.2(eslint-ts-patch@8.55.0-1)(typescript@5.4.5) - eslint: - specifier: npm:eslint-ts-patch@8.55.0-1 - version: eslint-ts-patch@8.55.0-1 + version: 0.60.2(eslint@8.56.0)(typescript@5.4.5) eslint-plugin-format: specifier: ^0.1.1 - version: 0.1.1(eslint-ts-patch@8.55.0-1) - eslint-ts-patch: - specifier: 8.55.0-1 - version: 8.55.0-1 + version: 0.1.1(eslint@8.56.0) jszip: specifier: 3.9.1 version: 3.9.1 @@ -33,14 +27,14 @@ importers: specifier: ^15.2.2 version: 15.2.2 pnpm: - specifier: ^9.1.0 - version: 9.1.0 + specifier: ^9.1.1 + version: 9.1.1 simple-git-hooks: specifier: ^2.11.1 version: 2.11.1 tsx: - specifier: ^4.10.1 - version: 4.10.1 + specifier: ^4.10.2 + version: 4.10.2 typescript: specifier: ^5.4.5 version: 5.4.5 @@ -233,11 +227,12 @@ packages: '@ant-design/colors@7.0.2': resolution: {integrity: sha512-7KJkhTiPiLHSu+LmMJnehfJ6242OCxSlR3xHVBecYxnMW8MS/878NXct1GqYARyL59fyeFdKRxXTfvR9SnDgJg==} - '@antfu/eslint-config@2.17.0': - resolution: {integrity: sha512-OvLgETKfNTFD1PaGToM/Mu1A53lbMCXN4TLLL3QloGK3IkuSvNoGumLwkK1wQ1AsZAG+hfGoe+Rkd7V9Wv7MlA==} + '@antfu/eslint-config@2.18.0': + resolution: {integrity: sha512-aK9xjU8jnOfEO449A34wypCUiAz9S4/d0Tvup6FS7IsR3Y1xtF3KQI4OYYM2OqFLHEsRLrGAcE9FbUb+oC6EiA==} hasBin: true peerDependencies: '@eslint-react/eslint-plugin': ^1.5.8 + '@prettier/plugin-xml': ^3.4.1 '@unocss/eslint-plugin': '>=0.50.0' astro-eslint-parser: ^0.16.3 eslint: '>=8.40.0' @@ -253,6 +248,8 @@ packages: peerDependenciesMeta: '@eslint-react/eslint-plugin': optional: true + '@prettier/plugin-xml': + optional: true '@unocss/eslint-plugin': optional: true astro-eslint-parser: @@ -672,8 +669,8 @@ packages: '@emotion/hash@0.8.0': resolution: {integrity: sha512-kBJtf7PH6aWwZ6fka3zQ0p6SBYzx4fl1LoZXE2RrnYST9Xljm7WfKJrU4g/Xr3Beg72MLrp1AWNUmuYJTL7Cow==} - '@es-joy/jsdoccomment@0.42.0': - resolution: {integrity: sha512-R1w57YlVA6+YE01wch3GPYn6bCsrOV3YW/5oGGE2tmX6JcL9Nr+b5IikrjMPF+v9CV3ay+obImEdsDhovhJrzw==} + '@es-joy/jsdoccomment@0.43.0': + resolution: {integrity: sha512-Q1CnsQrytI3TlCB1IVWXWeqUIPGVEKGaE7IbVdt13Nq/3i0JESAkQQERrfiQkmlpijl+++qyqPgaS31Bvc1jRQ==} engines: {node: '>=16'} '@esbuild/aix-ppc64@0.19.12': @@ -1843,8 +1840,8 @@ packages: '@types/web-bluetooth@0.0.20': resolution: {integrity: sha512-g9gZnnXVq7gM7v3tJCWV/qw7w+KeOlSHAhgF9RytFyifW6AF61hdT2ucrYhPq9hLs5JIryeupHV3qGk95dH9ow==} - '@typescript-eslint/eslint-plugin@7.8.0': - resolution: {integrity: sha512-gFTT+ezJmkwutUPmB0skOj3GZJtlEGnlssems4AjkVweUPGj7jRwwqg0Hhg7++kPGJqKtTYx+R05Ftww372aIg==} + '@typescript-eslint/eslint-plugin@7.9.0': + resolution: {integrity: sha512-6e+X0X3sFe/G/54aC3jt0txuMTURqLyekmEHViqyA2VnxhLMpvA6nqmcjIy+Cr9tLDHPssA74BP5Mx9HQIxBEA==} engines: {node: ^18.18.0 || >=20.0.0} peerDependencies: '@typescript-eslint/parser': ^7.0.0 @@ -1854,8 +1851,8 @@ packages: typescript: optional: true - '@typescript-eslint/parser@7.8.0': - resolution: {integrity: sha512-KgKQly1pv0l4ltcftP59uQZCi4HUYswCLbTqVZEJu7uLX8CTLyswqMLqLN+2QFz4jCptqWVV4SB7vdxcH2+0kQ==} + '@typescript-eslint/parser@7.9.0': + resolution: {integrity: sha512-qHMJfkL5qvgQB2aLvhUSXxbK7OLnDkwPzFalg458pxQgfxKDfT1ZDbHQM/I6mDIf/svlMkj21kzKuQ2ixJlatQ==} engines: {node: ^18.18.0 || >=20.0.0} peerDependencies: eslint: ^8.56.0 @@ -1868,8 +1865,12 @@ packages: resolution: {integrity: sha512-viEmZ1LmwsGcnr85gIq+FCYI7nO90DVbE37/ll51hjv9aG+YZMb4WDE2fyWpUR4O/UrhGRpYXK/XajcGTk2B8g==} engines: {node: ^18.18.0 || >=20.0.0} - '@typescript-eslint/type-utils@7.8.0': - resolution: {integrity: sha512-H70R3AefQDQpz9mGv13Uhi121FNMh+WEaRqcXTX09YEDky21km4dV1ZXJIp8QjXc4ZaVkXVdohvWDzbnbHDS+A==} + '@typescript-eslint/scope-manager@7.9.0': + resolution: {integrity: sha512-ZwPK4DeCDxr3GJltRz5iZejPFAAr4Wk3+2WIBaj1L5PYK5RgxExu/Y68FFVclN0y6GGwH8q+KgKRCvaTmFBbgQ==} + engines: {node: ^18.18.0 || >=20.0.0} + + '@typescript-eslint/type-utils@7.9.0': + resolution: {integrity: sha512-6Qy8dfut0PFrFRAZsGzuLoM4hre4gjzWJB6sUvdunCYZsYemTkzZNwF1rnGea326PHPT3zn5Lmg32M/xfJfByA==} engines: {node: ^18.18.0 || >=20.0.0} peerDependencies: eslint: ^8.56.0 @@ -1882,6 +1883,10 @@ packages: resolution: {integrity: sha512-wf0peJ+ZGlcH+2ZS23aJbOv+ztjeeP8uQ9GgwMJGVLx/Nj9CJt17GWgWWoSmoRVKAX2X+7fzEnAjxdvK2gqCLw==} engines: {node: ^18.18.0 || >=20.0.0} + '@typescript-eslint/types@7.9.0': + resolution: {integrity: sha512-oZQD9HEWQanl9UfsbGVcZ2cGaR0YT5476xfWE0oE5kQa2sNK2frxOlkeacLOTh9po4AlUT5rtkGyYM5kew0z5w==} + engines: {node: ^18.18.0 || >=20.0.0} + '@typescript-eslint/typescript-estree@7.8.0': resolution: {integrity: sha512-5pfUCOwK5yjPaJQNy44prjCwtr981dO8Qo9J9PwYXZ0MosgAbfEMB008dJ5sNo3+/BN6ytBPuSvXUg9SAqB0dg==} engines: {node: ^18.18.0 || >=20.0.0} @@ -1891,16 +1896,35 @@ packages: typescript: optional: true + '@typescript-eslint/typescript-estree@7.9.0': + resolution: {integrity: sha512-zBCMCkrb2YjpKV3LA0ZJubtKCDxLttxfdGmwZvTqqWevUPN0FZvSI26FalGFFUZU/9YQK/A4xcQF9o/VVaCKAg==} + engines: {node: ^18.18.0 || >=20.0.0} + peerDependencies: + typescript: '*' + peerDependenciesMeta: + typescript: + optional: true + '@typescript-eslint/utils@7.8.0': resolution: {integrity: sha512-L0yFqOCflVqXxiZyXrDr80lnahQfSOfc9ELAAZ75sqicqp2i36kEZZGuUymHNFoYOqxRT05up760b4iGsl02nQ==} engines: {node: ^18.18.0 || >=20.0.0} peerDependencies: eslint: ^8.56.0 + '@typescript-eslint/utils@7.9.0': + resolution: {integrity: sha512-5KVRQCzZajmT4Ep+NEgjXCvjuypVvYHUW7RHlXzNPuak2oWpVoD1jf5xCP0dPAuNIchjC7uQyvbdaSTFaLqSdA==} + engines: {node: ^18.18.0 || >=20.0.0} + peerDependencies: + eslint: ^8.56.0 + '@typescript-eslint/visitor-keys@7.8.0': resolution: {integrity: sha512-q4/gibTNBQNA0lGyYQCmWRS5D15n8rXh4QjK3KV+MBPlTYHpfBUT3D3PaPR/HeNiI9W6R7FvlkcGhNyAoP+caA==} engines: {node: ^18.18.0 || >=20.0.0} + '@typescript-eslint/visitor-keys@7.9.0': + resolution: {integrity: sha512-iESPx2TNLDNGQLyjKhUvIKprlP49XNEK+MvIf9nIO7ZZaZdbnfWKHnXAgufpxqfA0YryH8XToi4+CjBgVnFTSQ==} + engines: {node: ^18.18.0 || >=20.0.0} + '@ungap/structured-clone@1.2.0': resolution: {integrity: sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==} @@ -3440,8 +3464,8 @@ packages: peerDependencies: eslint: ^8.56.0 || ^9.0.0-0 - eslint-plugin-jsdoc@48.2.3: - resolution: {integrity: sha512-r9DMAmFs66VNvNqRLLjHejdnJtILrt3xGi+Qx0op0oRfFGVpOR1Hb3BC++MacseHx93d8SKYPhyrC9BS7Os2QA==} + eslint-plugin-jsdoc@48.2.4: + resolution: {integrity: sha512-3ebvVgCJFy06gpmuS2ynz13uh9iFSzZ1C1dDkgcSAqVVg82zlORKMk2fvjq708pAO6bwfs5YLttknFEbaoDiGw==} engines: {node: '>=18'} peerDependencies: eslint: ^7.0.0 || ^8.0.0 || ^9.0.0 @@ -3458,8 +3482,8 @@ packages: peerDependencies: eslint: '>=8' - eslint-plugin-n@17.5.1: - resolution: {integrity: sha512-+E242KoY16xtwqqBRgSsDCrZ3K40jg3Np9fOgQyakcHaqymK3bnxYB1F1oe8Ksts8TDDViROFgraoLzbWhfHVw==} + eslint-plugin-n@17.7.0: + resolution: {integrity: sha512-4Jg4ZKVE4VjHig2caBqPHYNW5na84RVufUuipFLJbgM/G57O6FdpUKJbHakCDJb/yjQuyqVzYWRtU3HNYaZUwg==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} peerDependencies: eslint: '>=8.23.0' @@ -3486,6 +3510,12 @@ packages: vue-eslint-parser: optional: true + eslint-plugin-regexp@2.5.0: + resolution: {integrity: sha512-I7vKcP0o75WS5SHiVNXN+Eshq49sbrweMQIuqSL3AId9AwDe9Dhbfug65vw64LxmOd4v+yf5l5Xt41y9puiq0g==} + engines: {node: ^18 || >=20} + peerDependencies: + eslint: '>=8.44.0' + eslint-plugin-toml@0.11.0: resolution: {integrity: sha512-sau+YvPU4fWTjB+qtBt3n8WS87aoDCs+BVbSUAemGaIsRNbvR9uEk+Tt892iLHTGvp/DPWYoCX4/8DoyAbB+sQ==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} @@ -3521,8 +3551,8 @@ packages: vitest: optional: true - eslint-plugin-vue@9.25.0: - resolution: {integrity: sha512-tDWlx14bVe6Bs+Nnh3IGrD+hb11kf2nukfm6jLsmJIhmiRQ1SUaksvwY9U5MvPB0pcrg0QK0xapQkfITs3RKOA==} + eslint-plugin-vue@9.26.0: + resolution: {integrity: sha512-eTvlxXgd4ijE1cdur850G6KalZqk65k1JKoOI2d1kT3hr8sPD07j1q98FRFdNnpxBELGPWxZmInxeHGF/GxtqQ==} engines: {node: ^14.17.0 || >=16.0.0} peerDependencies: eslint: ^6.2.0 || ^7.0.0 || ^8.0.0 || ^9.0.0 @@ -3551,10 +3581,6 @@ packages: resolution: {integrity: sha512-dOt21O7lTMhDM+X9mB4GX+DZrZtCUJPL/wlcTqxyrx5IvO0IYtILdtrQGQp+8n5S0gwSVmOf9NQrjMOgfQZlIg==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} - eslint-ts-patch@8.55.0-1: - resolution: {integrity: sha512-faEg7TFREggvW/n0fo0ih6AF6tBAKafBUOtWErwBh8HS8+2uEtCulJt6UF96H1opuPKudjAFRC6yHmQ3KCix5w==} - hasBin: true - eslint-visitor-keys@3.4.3: resolution: {integrity: sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} @@ -3863,8 +3889,8 @@ packages: resolution: {integrity: sha512-AhO5QUcj8llrbG09iWhPU2B204J1xnPeL8kQmVorSsy+Sjj1sk8gIyh6cUocGmH4L0UuhAJy+hJMRA4mgA4mFQ==} engines: {node: '>=8'} - globals@15.1.0: - resolution: {integrity: sha512-926gJqg+4mkxwYKiFvoomM4J0kWESfk3qfTvRL2/oc/tK/eTDBbrfcKnSa2KtfdxB5onoL7D3A3qIHQFpd4+UA==} + globals@15.2.0: + resolution: {integrity: sha512-FQ5YwCHZM3nCmtb5FzEWwdUc9K5d3V/w9mzcz8iGD1gC/aOTHc6PouYu0kkKipNJqHAT7m51sqzQjEjIP+cK0A==} engines: {node: '>=18'} globby@11.1.0: @@ -4015,9 +4041,15 @@ packages: engines: {node: '>=16.x'} hasBin: true + immediate@3.0.6: + resolution: {integrity: sha512-XXOFtyqDjNDAQxVfYxuF7g9Il/IbWmmlQg2MYKOH8ExIT1qg6xc4zyS3HaEEATgs1btfzxq15ciUiY7gjSXRGQ==} + immutable-json-patch@6.0.1: resolution: {integrity: sha512-BHL/cXMjwFZlTOffiWNdY8ZTvNyYLrutCnWxrcKPHr5FqpAb6vsO6WWSPnVSys3+DruFN6lhHJJPHi8uELQL5g==} + immutable@4.3.6: + resolution: {integrity: sha512-Ju0+lEMyzMVZarkTn/gqRpdqd5dOPaz1mCZ0SH3JV6iFw81PldE/PEB1hWVEA288HPt4WXW8O7AWxB10M+03QQ==} + import-fresh@3.3.0: resolution: {integrity: sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==} engines: {node: '>=6'} @@ -4322,6 +4354,9 @@ packages: resolution: {integrity: sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==} engines: {node: '>= 0.8.0'} + lie@3.3.0: + resolution: {integrity: sha512-UaiMJzeWRlEujzAuw5LokY1L5ecNQYZKfmyZ9L7wDHb/p5etKaxXhohBcrw0EYby+G/NA52vRSN4N39dxHAIwQ==} + lighthouse-logger@2.0.1: resolution: {integrity: sha512-ioBrW3s2i97noEmnXxmUq7cjIcVRjT5HBpAYy8zE11CxU9HqlWHHeRxfeN1tn8F7OEMVPIC9x1f8t3Z7US9ehQ==} @@ -4922,6 +4957,9 @@ packages: pako@0.2.9: resolution: {integrity: sha512-NUcwaKxUxWrZLpDG+z/xZaCgQITkA/Dv4V/T6bw7VON6l1Xz/VnrBqrYjZQ12TamKHzITTfOEIYUj48y2KXImA==} + pako@1.0.11: + resolution: {integrity: sha512-4hLB8Py4zZce5s4yd9XzopqwVv/yGNhV1Bl8NTmCq1763HeK2+EwVTv+leGeL13Dnh2wfbqowVPXCIO0z4taYw==} + parent-module@1.0.1: resolution: {integrity: sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==} engines: {node: '>=6'} @@ -5053,8 +5091,8 @@ packages: resolution: {integrity: sha512-Nc3IT5yHzflTfbjgqWcCPpo7DaKy4FnpB0l/zCAW0Tc7jxAiuqSxHasntB3D7887LSrA93kDJ9IXovxJYxyLCA==} engines: {node: '>=4'} - pnpm@9.1.0: - resolution: {integrity: sha512-Z/WHmRapKT5c8FnCOFPVcb6vT3U8cH9AyyK+1fsVeMaq07bEEHzLO6CzW+AD62IaFkcayDbIe+tT+dVLtGEnJA==} + pnpm@9.1.1: + resolution: {integrity: sha512-FOkVdZwR936sB/q6TQGcGT7IY3Ip5i7Jnu+3zzw7dcZER4grfEhRQkUe46a0CAWc37e3+gNBuXXxLQ92KccRlQ==} engines: {node: '>=18.12'} hasBin: true @@ -5364,9 +5402,17 @@ packages: resolution: {integrity: sha512-DJnGAeenTdpMEH6uAJRK/uiyEIH9WVsUmoLwzudwGJUwZPp80PDBWPHXSAGNPwNvIXAbe7MSUB1zQFugFml66A==} engines: {node: '>=4'} + refa@0.12.1: + resolution: {integrity: sha512-J8rn6v4DBb2nnFqkqwy6/NnTYMcgLA+sLr0iIO41qpv0n+ngb7ksag2tMRl0inb1bbO/esUwzW1vbJi7K0sI0g==} + engines: {node: ^12.0.0 || ^14.0.0 || >=16.0.0} + regenerator-runtime@0.14.1: resolution: {integrity: sha512-dYnhHh0nJoMfnkZs6GmmhFknAGRrLznOu5nc9ML+EJxGvrx6H7teuevqVqCuPcPK//3eDrrjQhehXVx9cnkGdw==} + regexp-ast-analysis@0.7.1: + resolution: {integrity: sha512-sZuz1dYW/ZsfG17WSAG7eS85r5a0dDsvg+7BiiYR5o6lKCAtUrEwdmRmaGF6rwVj3LcmAeYkOWKEPlbPzN3Y3A==} + engines: {node: ^12.0.0 || ^14.0.0 || >=16.0.0} + regexp-tree@0.1.27: resolution: {integrity: sha512-iETxpjK6YoRWJG5o6hXLwvjYAoW+FEZn9os0PD/b6AP6xQwsa/Y7lCVgIixBbUPMfhu+i2LtdeAqVTgGlQarfA==} hasBin: true @@ -5481,6 +5527,10 @@ packages: resolution: {integrity: sha512-pN/yOAvcC+5rQ5nERGuwrjLlYvLTbCibnZ1I7B1LaiAz9BRBlE9GMgE/eqV30P7aJQUf7Ddimy/RsbYO/GrVGg==} engines: {node: '>= 10.13.0'} + scslre@0.3.0: + resolution: {integrity: sha512-3A6sD0WYP7+QrjbfNA2FN3FsOaGGFoekCVgTyypy53gPxhbkCIjtO6YWgdrfM+n/8sI8JeXZOIxsHjMTNxQ4nQ==} + engines: {node: ^14.0.0 || >=16.0.0} + scule@1.2.0: resolution: {integrity: sha512-CRCmi5zHQnSoeCik9565PONMg0kfkvYmcSqrbOJY4txFfy1wvVULV4FDaiXhUblUgahdqz3F2NwHZ8i4eBTwUw==} @@ -5523,6 +5573,10 @@ packages: set-blocking@2.0.0: resolution: {integrity: sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw==} + set-immediate-shim@1.0.1: + resolution: {integrity: sha512-Li5AOqrZWCVA2n5kryzEmqai6bKSIvpz5oUJHPVj6+dsbD3X1ixtsY5tEnsaNpH3pFAHmG8eIHUrtEtohrg+UQ==} + engines: {node: '>=0.10.0'} + setprototypeof@1.2.0: resolution: {integrity: sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==} @@ -5900,8 +5954,8 @@ packages: tslib@2.6.2: resolution: {integrity: sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==} - tsx@4.10.1: - resolution: {integrity: sha512-G+CcyTOopwhuI81FU+KpzGN5UBhHgGEDlGt8mHAXKxv8pDGr6WI7hI7aRjTRol5WzFVsSNuzl3ekCZ0eLIJlEQ==} + tsx@4.10.2: + resolution: {integrity: sha512-gOfACgv1ElsIjvt7Fp0rMJKGnMGjox0JfGOfX3kmZCV/yZumaNqtHGKBXt1KgaYS9KjDOmqGeI8gHk/W7kWVZg==} engines: {node: '>=18.0.0'} hasBin: true @@ -6528,46 +6582,47 @@ snapshots: dependencies: '@ctrl/tinycolor': 3.6.1 - '@antfu/eslint-config@2.17.0(@unocss/eslint-plugin@0.60.2(eslint-ts-patch@8.55.0-1)(typescript@5.4.5))(@vue/compiler-sfc@3.4.27)(eslint-plugin-format@0.1.1(eslint-ts-patch@8.55.0-1))(eslint-ts-patch@8.55.0-1)(svelte@4.2.12)(typescript@5.4.5)': + '@antfu/eslint-config@2.18.0(@unocss/eslint-plugin@0.60.2(eslint@8.56.0)(typescript@5.4.5))(@vue/compiler-sfc@3.4.27)(eslint-plugin-format@0.1.1(eslint@8.56.0))(eslint@8.56.0)(svelte@4.2.12)(typescript@5.4.5)': dependencies: '@antfu/install-pkg': 0.3.3 '@clack/prompts': 0.7.0 - '@stylistic/eslint-plugin': 2.1.0(eslint-ts-patch@8.55.0-1)(typescript@5.4.5) - '@typescript-eslint/eslint-plugin': 7.8.0(@typescript-eslint/parser@7.8.0(eslint-ts-patch@8.55.0-1)(typescript@5.4.5))(eslint-ts-patch@8.55.0-1)(typescript@5.4.5) - '@typescript-eslint/parser': 7.8.0(eslint-ts-patch@8.55.0-1)(typescript@5.4.5) - eslint: eslint-ts-patch@8.55.0-1 + '@stylistic/eslint-plugin': 2.1.0(eslint@8.56.0)(typescript@5.4.5) + '@typescript-eslint/eslint-plugin': 7.9.0(@typescript-eslint/parser@7.9.0(eslint@8.56.0)(typescript@5.4.5))(eslint@8.56.0)(typescript@5.4.5) + '@typescript-eslint/parser': 7.9.0(eslint@8.56.0)(typescript@5.4.5) + eslint: 8.56.0 eslint-config-flat-gitignore: 0.1.5 eslint-flat-config-utils: 0.2.4 - eslint-merge-processors: 0.1.0(eslint-ts-patch@8.55.0-1) - eslint-plugin-antfu: 2.2.0(eslint-ts-patch@8.55.0-1) - eslint-plugin-command: 0.2.0(eslint-ts-patch@8.55.0-1) - eslint-plugin-eslint-comments: 3.2.0(eslint-ts-patch@8.55.0-1) - eslint-plugin-import-x: 0.5.0(eslint-ts-patch@8.55.0-1)(typescript@5.4.5) - eslint-plugin-jsdoc: 48.2.3(eslint-ts-patch@8.55.0-1) - eslint-plugin-jsonc: 2.15.1(eslint-ts-patch@8.55.0-1) - eslint-plugin-markdown: 5.0.0(eslint-ts-patch@8.55.0-1) - eslint-plugin-n: 17.5.1(eslint-ts-patch@8.55.0-1) + eslint-merge-processors: 0.1.0(eslint@8.56.0) + eslint-plugin-antfu: 2.2.0(eslint@8.56.0) + eslint-plugin-command: 0.2.0(eslint@8.56.0) + eslint-plugin-eslint-comments: 3.2.0(eslint@8.56.0) + eslint-plugin-import-x: 0.5.0(eslint@8.56.0)(typescript@5.4.5) + eslint-plugin-jsdoc: 48.2.4(eslint@8.56.0) + eslint-plugin-jsonc: 2.15.1(eslint@8.56.0) + eslint-plugin-markdown: 5.0.0(eslint@8.56.0) + eslint-plugin-n: 17.7.0(eslint@8.56.0) eslint-plugin-no-only-tests: 3.1.0 - eslint-plugin-perfectionist: 2.10.0(eslint-ts-patch@8.55.0-1)(svelte@4.2.12)(typescript@5.4.5)(vue-eslint-parser@9.4.2(eslint-ts-patch@8.55.0-1)) - eslint-plugin-toml: 0.11.0(eslint-ts-patch@8.55.0-1) - eslint-plugin-unicorn: 52.0.0(eslint-ts-patch@8.55.0-1) - eslint-plugin-unused-imports: 3.2.0(@typescript-eslint/eslint-plugin@7.8.0(@typescript-eslint/parser@7.8.0(eslint-ts-patch@8.55.0-1)(typescript@5.4.5))(eslint-ts-patch@8.55.0-1)(typescript@5.4.5))(eslint-ts-patch@8.55.0-1) - eslint-plugin-vitest: 0.5.4(@typescript-eslint/eslint-plugin@7.8.0(@typescript-eslint/parser@7.8.0(eslint-ts-patch@8.55.0-1)(typescript@5.4.5))(eslint-ts-patch@8.55.0-1)(typescript@5.4.5))(eslint-ts-patch@8.55.0-1)(typescript@5.4.5) - eslint-plugin-vue: 9.25.0(eslint-ts-patch@8.55.0-1) - eslint-plugin-yml: 1.14.0(eslint-ts-patch@8.55.0-1) - eslint-processor-vue-blocks: 0.1.2(@vue/compiler-sfc@3.4.27)(eslint-ts-patch@8.55.0-1) - globals: 15.1.0 + eslint-plugin-perfectionist: 2.10.0(eslint@8.56.0)(svelte@4.2.12)(typescript@5.4.5)(vue-eslint-parser@9.4.2(eslint@8.56.0)) + eslint-plugin-regexp: 2.5.0(eslint@8.56.0) + eslint-plugin-toml: 0.11.0(eslint@8.56.0) + eslint-plugin-unicorn: 52.0.0(eslint@8.56.0) + eslint-plugin-unused-imports: 3.2.0(@typescript-eslint/eslint-plugin@7.9.0(@typescript-eslint/parser@7.9.0(eslint@8.56.0)(typescript@5.4.5))(eslint@8.56.0)(typescript@5.4.5))(eslint@8.56.0) + eslint-plugin-vitest: 0.5.4(@typescript-eslint/eslint-plugin@7.9.0(@typescript-eslint/parser@7.9.0(eslint@8.56.0)(typescript@5.4.5))(eslint@8.56.0)(typescript@5.4.5))(eslint@8.56.0)(typescript@5.4.5) + eslint-plugin-vue: 9.26.0(eslint@8.56.0) + eslint-plugin-yml: 1.14.0(eslint@8.56.0) + eslint-processor-vue-blocks: 0.1.2(@vue/compiler-sfc@3.4.27)(eslint@8.56.0) + globals: 15.2.0 jsonc-eslint-parser: 2.4.0 local-pkg: 0.5.0 parse-gitignore: 2.0.0 picocolors: 1.0.0 toml-eslint-parser: 0.9.3 - vue-eslint-parser: 9.4.2(eslint-ts-patch@8.55.0-1) + vue-eslint-parser: 9.4.2(eslint@8.56.0) yaml-eslint-parser: 1.2.2 yargs: 17.7.2 optionalDependencies: - '@unocss/eslint-plugin': 0.60.2(eslint-ts-patch@8.55.0-1)(typescript@5.4.5) - eslint-plugin-format: 0.1.1(eslint-ts-patch@8.55.0-1) + '@unocss/eslint-plugin': 0.60.2(eslint@8.56.0)(typescript@5.4.5) + eslint-plugin-format: 0.1.1(eslint@8.56.0) transitivePeerDependencies: - '@vue/compiler-sfc' - supports-color @@ -7199,8 +7254,11 @@ snapshots: '@emotion/hash@0.8.0': {} - '@es-joy/jsdoccomment@0.42.0': + '@es-joy/jsdoccomment@0.43.0': dependencies: + '@types/eslint': 8.56.10 + '@types/estree': 1.0.5 + '@typescript-eslint/types': 7.8.0 comment-parser: 1.4.1 esquery: 1.5.0 jsdoc-type-pratt-parser: 4.0.0 @@ -7412,11 +7470,6 @@ snapshots: '@esbuild/win32-x64@0.20.2': optional: true - '@eslint-community/eslint-utils@4.4.0(eslint-ts-patch@8.55.0-1)': - dependencies: - eslint: eslint-ts-patch@8.55.0-1 - eslint-visitor-keys: 3.4.3 - '@eslint-community/eslint-utils@4.4.0(eslint@8.56.0)': dependencies: eslint: 8.56.0 @@ -7497,7 +7550,9 @@ snapshots: dependencies: '@iconify/types': 2.0.0 - '@iconify-json/tabler@1.1.111': {} + '@iconify-json/tabler@1.1.111': + dependencies: + '@iconify/types': 2.0.0 '@iconify/collections@1.0.402': dependencies: @@ -8459,49 +8514,49 @@ snapshots: '@sphinxxxx/color-conversion@2.2.2': {} - '@stylistic/eslint-plugin-js@2.1.0(eslint-ts-patch@8.55.0-1)': + '@stylistic/eslint-plugin-js@2.1.0(eslint@8.56.0)': dependencies: '@types/eslint': 8.56.10 acorn: 8.11.3 - eslint: eslint-ts-patch@8.55.0-1 + eslint: 8.56.0 eslint-visitor-keys: 4.0.0 espree: 10.0.1 - '@stylistic/eslint-plugin-jsx@2.1.0(eslint-ts-patch@8.55.0-1)': + '@stylistic/eslint-plugin-jsx@2.1.0(eslint@8.56.0)': dependencies: - '@stylistic/eslint-plugin-js': 2.1.0(eslint-ts-patch@8.55.0-1) + '@stylistic/eslint-plugin-js': 2.1.0(eslint@8.56.0) '@types/eslint': 8.56.10 - eslint: eslint-ts-patch@8.55.0-1 + eslint: 8.56.0 estraverse: 5.3.0 picomatch: 4.0.2 - '@stylistic/eslint-plugin-plus@2.1.0(eslint-ts-patch@8.55.0-1)(typescript@5.4.5)': + '@stylistic/eslint-plugin-plus@2.1.0(eslint@8.56.0)(typescript@5.4.5)': dependencies: '@types/eslint': 8.56.10 - '@typescript-eslint/utils': 7.8.0(eslint-ts-patch@8.55.0-1)(typescript@5.4.5) - eslint: eslint-ts-patch@8.55.0-1 + '@typescript-eslint/utils': 7.8.0(eslint@8.56.0)(typescript@5.4.5) + eslint: 8.56.0 transitivePeerDependencies: - supports-color - typescript - '@stylistic/eslint-plugin-ts@2.1.0(eslint-ts-patch@8.55.0-1)(typescript@5.4.5)': + '@stylistic/eslint-plugin-ts@2.1.0(eslint@8.56.0)(typescript@5.4.5)': dependencies: - '@stylistic/eslint-plugin-js': 2.1.0(eslint-ts-patch@8.55.0-1) + '@stylistic/eslint-plugin-js': 2.1.0(eslint@8.56.0) '@types/eslint': 8.56.10 - '@typescript-eslint/utils': 7.8.0(eslint-ts-patch@8.55.0-1)(typescript@5.4.5) - eslint: eslint-ts-patch@8.55.0-1 + '@typescript-eslint/utils': 7.8.0(eslint@8.56.0)(typescript@5.4.5) + eslint: 8.56.0 transitivePeerDependencies: - supports-color - typescript - '@stylistic/eslint-plugin@2.1.0(eslint-ts-patch@8.55.0-1)(typescript@5.4.5)': + '@stylistic/eslint-plugin@2.1.0(eslint@8.56.0)(typescript@5.4.5)': dependencies: - '@stylistic/eslint-plugin-js': 2.1.0(eslint-ts-patch@8.55.0-1) - '@stylistic/eslint-plugin-jsx': 2.1.0(eslint-ts-patch@8.55.0-1) - '@stylistic/eslint-plugin-plus': 2.1.0(eslint-ts-patch@8.55.0-1)(typescript@5.4.5) - '@stylistic/eslint-plugin-ts': 2.1.0(eslint-ts-patch@8.55.0-1)(typescript@5.4.5) + '@stylistic/eslint-plugin-js': 2.1.0(eslint@8.56.0) + '@stylistic/eslint-plugin-jsx': 2.1.0(eslint@8.56.0) + '@stylistic/eslint-plugin-plus': 2.1.0(eslint@8.56.0)(typescript@5.4.5) + '@stylistic/eslint-plugin-ts': 2.1.0(eslint@8.56.0)(typescript@5.4.5) '@types/eslint': 8.56.10 - eslint: eslint-ts-patch@8.55.0-1 + eslint: 8.56.0 transitivePeerDependencies: - supports-color - typescript @@ -8565,34 +8620,32 @@ snapshots: '@types/web-bluetooth@0.0.20': {} - '@typescript-eslint/eslint-plugin@7.8.0(@typescript-eslint/parser@7.8.0(eslint-ts-patch@8.55.0-1)(typescript@5.4.5))(eslint-ts-patch@8.55.0-1)(typescript@5.4.5)': + '@typescript-eslint/eslint-plugin@7.9.0(@typescript-eslint/parser@7.9.0(eslint@8.56.0)(typescript@5.4.5))(eslint@8.56.0)(typescript@5.4.5)': dependencies: '@eslint-community/regexpp': 4.10.0 - '@typescript-eslint/parser': 7.8.0(eslint-ts-patch@8.55.0-1)(typescript@5.4.5) - '@typescript-eslint/scope-manager': 7.8.0 - '@typescript-eslint/type-utils': 7.8.0(eslint-ts-patch@8.55.0-1)(typescript@5.4.5) - '@typescript-eslint/utils': 7.8.0(eslint-ts-patch@8.55.0-1)(typescript@5.4.5) - '@typescript-eslint/visitor-keys': 7.8.0 - debug: 4.3.4 - eslint: eslint-ts-patch@8.55.0-1 + '@typescript-eslint/parser': 7.9.0(eslint@8.56.0)(typescript@5.4.5) + '@typescript-eslint/scope-manager': 7.9.0 + '@typescript-eslint/type-utils': 7.9.0(eslint@8.56.0)(typescript@5.4.5) + '@typescript-eslint/utils': 7.9.0(eslint@8.56.0)(typescript@5.4.5) + '@typescript-eslint/visitor-keys': 7.9.0 + eslint: 8.56.0 graphemer: 1.4.0 ignore: 5.3.1 natural-compare: 1.4.0 - semver: 7.6.0 ts-api-utils: 1.3.0(typescript@5.4.5) optionalDependencies: typescript: 5.4.5 transitivePeerDependencies: - supports-color - '@typescript-eslint/parser@7.8.0(eslint-ts-patch@8.55.0-1)(typescript@5.4.5)': + '@typescript-eslint/parser@7.9.0(eslint@8.56.0)(typescript@5.4.5)': dependencies: - '@typescript-eslint/scope-manager': 7.8.0 - '@typescript-eslint/types': 7.8.0 - '@typescript-eslint/typescript-estree': 7.8.0(typescript@5.4.5) - '@typescript-eslint/visitor-keys': 7.8.0 + '@typescript-eslint/scope-manager': 7.9.0 + '@typescript-eslint/types': 7.9.0 + '@typescript-eslint/typescript-estree': 7.9.0(typescript@5.4.5) + '@typescript-eslint/visitor-keys': 7.9.0 debug: 4.3.4 - eslint: eslint-ts-patch@8.55.0-1 + eslint: 8.56.0 optionalDependencies: typescript: 5.4.5 transitivePeerDependencies: @@ -8603,12 +8656,17 @@ snapshots: '@typescript-eslint/types': 7.8.0 '@typescript-eslint/visitor-keys': 7.8.0 - '@typescript-eslint/type-utils@7.8.0(eslint-ts-patch@8.55.0-1)(typescript@5.4.5)': + '@typescript-eslint/scope-manager@7.9.0': dependencies: - '@typescript-eslint/typescript-estree': 7.8.0(typescript@5.4.5) - '@typescript-eslint/utils': 7.8.0(eslint-ts-patch@8.55.0-1)(typescript@5.4.5) + '@typescript-eslint/types': 7.9.0 + '@typescript-eslint/visitor-keys': 7.9.0 + + '@typescript-eslint/type-utils@7.9.0(eslint@8.56.0)(typescript@5.4.5)': + dependencies: + '@typescript-eslint/typescript-estree': 7.9.0(typescript@5.4.5) + '@typescript-eslint/utils': 7.9.0(eslint@8.56.0)(typescript@5.4.5) debug: 4.3.4 - eslint: eslint-ts-patch@8.55.0-1 + eslint: 8.56.0 ts-api-utils: 1.3.0(typescript@5.4.5) optionalDependencies: typescript: 5.4.5 @@ -8617,6 +8675,8 @@ snapshots: '@typescript-eslint/types@7.8.0': {} + '@typescript-eslint/types@7.9.0': {} + '@typescript-eslint/typescript-estree@7.8.0(typescript@5.4.5)': dependencies: '@typescript-eslint/types': 7.8.0 @@ -8632,25 +8692,56 @@ snapshots: transitivePeerDependencies: - supports-color - '@typescript-eslint/utils@7.8.0(eslint-ts-patch@8.55.0-1)(typescript@5.4.5)': + '@typescript-eslint/typescript-estree@7.9.0(typescript@5.4.5)': dependencies: - '@eslint-community/eslint-utils': 4.4.0(eslint-ts-patch@8.55.0-1) + '@typescript-eslint/types': 7.9.0 + '@typescript-eslint/visitor-keys': 7.9.0 + debug: 4.3.4 + globby: 11.1.0 + is-glob: 4.0.3 + minimatch: 9.0.4 + semver: 7.6.0 + ts-api-utils: 1.3.0(typescript@5.4.5) + optionalDependencies: + typescript: 5.4.5 + transitivePeerDependencies: + - supports-color + + '@typescript-eslint/utils@7.8.0(eslint@8.56.0)(typescript@5.4.5)': + dependencies: + '@eslint-community/eslint-utils': 4.4.0(eslint@8.56.0) '@types/json-schema': 7.0.15 '@types/semver': 7.5.8 '@typescript-eslint/scope-manager': 7.8.0 '@typescript-eslint/types': 7.8.0 '@typescript-eslint/typescript-estree': 7.8.0(typescript@5.4.5) - eslint: eslint-ts-patch@8.55.0-1 + eslint: 8.56.0 semver: 7.6.0 transitivePeerDependencies: - supports-color - typescript + '@typescript-eslint/utils@7.9.0(eslint@8.56.0)(typescript@5.4.5)': + dependencies: + '@eslint-community/eslint-utils': 4.4.0(eslint@8.56.0) + '@typescript-eslint/scope-manager': 7.9.0 + '@typescript-eslint/types': 7.9.0 + '@typescript-eslint/typescript-estree': 7.9.0(typescript@5.4.5) + eslint: 8.56.0 + transitivePeerDependencies: + - supports-color + - typescript + '@typescript-eslint/visitor-keys@7.8.0': dependencies: '@typescript-eslint/types': 7.8.0 eslint-visitor-keys: 3.4.3 + '@typescript-eslint/visitor-keys@7.9.0': + dependencies: + '@typescript-eslint/types': 7.9.0 + eslint-visitor-keys: 3.4.3 + '@ungap/structured-clone@1.2.0': {} '@unhead/addons@1.8.12(rollup@4.14.0)': @@ -8782,17 +8873,17 @@ snapshots: '@unocss/core@0.60.2': {} - '@unocss/eslint-config@0.60.2(eslint-ts-patch@8.55.0-1)(typescript@5.4.5)': + '@unocss/eslint-config@0.60.2(eslint@8.56.0)(typescript@5.4.5)': dependencies: - '@unocss/eslint-plugin': 0.60.2(eslint-ts-patch@8.55.0-1)(typescript@5.4.5) + '@unocss/eslint-plugin': 0.60.2(eslint@8.56.0)(typescript@5.4.5) transitivePeerDependencies: - eslint - supports-color - typescript - '@unocss/eslint-plugin@0.60.2(eslint-ts-patch@8.55.0-1)(typescript@5.4.5)': + '@unocss/eslint-plugin@0.60.2(eslint@8.56.0)(typescript@5.4.5)': dependencies: - '@typescript-eslint/utils': 7.8.0(eslint-ts-patch@8.55.0-1)(typescript@5.4.5) + '@typescript-eslint/utils': 7.8.0(eslint@8.56.0)(typescript@5.4.5) '@unocss/config': 0.60.2 '@unocss/core': 0.60.2 magic-string: 0.30.10 @@ -10631,13 +10722,13 @@ snapshots: escape-string-regexp@5.0.0: {} - eslint-compat-utils@0.1.2(eslint-ts-patch@8.55.0-1): + eslint-compat-utils@0.1.2(eslint@8.56.0): dependencies: - eslint: eslint-ts-patch@8.55.0-1 + eslint: 8.56.0 - eslint-compat-utils@0.5.0(eslint-ts-patch@8.55.0-1): + eslint-compat-utils@0.5.0(eslint@8.56.0): dependencies: - eslint: eslint-ts-patch@8.55.0-1 + eslint: 8.56.0 semver: 7.6.0 eslint-config-flat-gitignore@0.1.5: @@ -10650,9 +10741,9 @@ snapshots: '@types/eslint': 8.56.10 pathe: 1.1.2 - eslint-formatting-reporter@0.0.0(eslint-ts-patch@8.55.0-1): + eslint-formatting-reporter@0.0.0(eslint@8.56.0): dependencies: - eslint: eslint-ts-patch@8.55.0-1 + eslint: 8.56.0 prettier-linter-helpers: 1.0.0 eslint-import-resolver-node@0.3.9: @@ -10663,51 +10754,51 @@ snapshots: transitivePeerDependencies: - supports-color - eslint-merge-processors@0.1.0(eslint-ts-patch@8.55.0-1): + eslint-merge-processors@0.1.0(eslint@8.56.0): dependencies: - eslint: eslint-ts-patch@8.55.0-1 + eslint: 8.56.0 eslint-parser-plain@0.1.0: {} - eslint-plugin-antfu@2.2.0(eslint-ts-patch@8.55.0-1): + eslint-plugin-antfu@2.2.0(eslint@8.56.0): dependencies: '@antfu/utils': 0.7.8 - eslint: eslint-ts-patch@8.55.0-1 + eslint: 8.56.0 - eslint-plugin-command@0.2.0(eslint-ts-patch@8.55.0-1): + eslint-plugin-command@0.2.0(eslint@8.56.0): dependencies: - eslint: eslint-ts-patch@8.55.0-1 + eslint: 8.56.0 - eslint-plugin-es-x@7.5.0(eslint-ts-patch@8.55.0-1): + eslint-plugin-es-x@7.5.0(eslint@8.56.0): dependencies: - '@eslint-community/eslint-utils': 4.4.0(eslint-ts-patch@8.55.0-1) + '@eslint-community/eslint-utils': 4.4.0(eslint@8.56.0) '@eslint-community/regexpp': 4.10.0 - eslint: eslint-ts-patch@8.55.0-1 - eslint-compat-utils: 0.1.2(eslint-ts-patch@8.55.0-1) + eslint: 8.56.0 + eslint-compat-utils: 0.1.2(eslint@8.56.0) - eslint-plugin-eslint-comments@3.2.0(eslint-ts-patch@8.55.0-1): + eslint-plugin-eslint-comments@3.2.0(eslint@8.56.0): dependencies: escape-string-regexp: 1.0.5 - eslint: eslint-ts-patch@8.55.0-1 + eslint: 8.56.0 ignore: 5.3.1 - eslint-plugin-format@0.1.1(eslint-ts-patch@8.55.0-1): + eslint-plugin-format@0.1.1(eslint@8.56.0): dependencies: '@dprint/formatter': 0.2.1 '@dprint/markdown': 0.16.4 '@dprint/toml': 0.6.1 - eslint: eslint-ts-patch@8.55.0-1 - eslint-formatting-reporter: 0.0.0(eslint-ts-patch@8.55.0-1) + eslint: 8.56.0 + eslint-formatting-reporter: 0.0.0(eslint@8.56.0) eslint-parser-plain: 0.1.0 prettier: 3.2.5 synckit: 0.9.0 - eslint-plugin-import-x@0.5.0(eslint-ts-patch@8.55.0-1)(typescript@5.4.5): + eslint-plugin-import-x@0.5.0(eslint@8.56.0)(typescript@5.4.5): dependencies: - '@typescript-eslint/utils': 7.8.0(eslint-ts-patch@8.55.0-1)(typescript@5.4.5) + '@typescript-eslint/utils': 7.8.0(eslint@8.56.0)(typescript@5.4.5) debug: 4.3.4 doctrine: 3.0.0 - eslint: eslint-ts-patch@8.55.0-1 + eslint: 8.56.0 eslint-import-resolver-node: 0.3.9 get-tsconfig: 4.7.3 is-glob: 4.0.3 @@ -10717,14 +10808,14 @@ snapshots: - supports-color - typescript - eslint-plugin-jsdoc@48.2.3(eslint-ts-patch@8.55.0-1): + eslint-plugin-jsdoc@48.2.4(eslint@8.56.0): dependencies: - '@es-joy/jsdoccomment': 0.42.0 + '@es-joy/jsdoccomment': 0.43.0 are-docs-informative: 0.0.2 comment-parser: 1.4.1 debug: 4.3.4 escape-string-regexp: 4.0.0 - eslint: eslint-ts-patch@8.55.0-1 + eslint: 8.56.0 esquery: 1.5.0 is-builtin-module: 3.2.1 semver: 7.6.0 @@ -10732,70 +10823,81 @@ snapshots: transitivePeerDependencies: - supports-color - eslint-plugin-jsonc@2.15.1(eslint-ts-patch@8.55.0-1): + eslint-plugin-jsonc@2.15.1(eslint@8.56.0): dependencies: - '@eslint-community/eslint-utils': 4.4.0(eslint-ts-patch@8.55.0-1) - eslint: eslint-ts-patch@8.55.0-1 - eslint-compat-utils: 0.5.0(eslint-ts-patch@8.55.0-1) + '@eslint-community/eslint-utils': 4.4.0(eslint@8.56.0) + eslint: 8.56.0 + eslint-compat-utils: 0.5.0(eslint@8.56.0) espree: 9.6.1 graphemer: 1.4.0 jsonc-eslint-parser: 2.4.0 natural-compare: 1.4.0 synckit: 0.6.2 - eslint-plugin-markdown@5.0.0(eslint-ts-patch@8.55.0-1): + eslint-plugin-markdown@5.0.0(eslint@8.56.0): dependencies: - eslint: eslint-ts-patch@8.55.0-1 + eslint: 8.56.0 mdast-util-from-markdown: 0.8.5 transitivePeerDependencies: - supports-color - eslint-plugin-n@17.5.1(eslint-ts-patch@8.55.0-1): + eslint-plugin-n@17.7.0(eslint@8.56.0): dependencies: - '@eslint-community/eslint-utils': 4.4.0(eslint-ts-patch@8.55.0-1) + '@eslint-community/eslint-utils': 4.4.0(eslint@8.56.0) enhanced-resolve: 5.15.1 - eslint: eslint-ts-patch@8.55.0-1 - eslint-plugin-es-x: 7.5.0(eslint-ts-patch@8.55.0-1) + eslint: 8.56.0 + eslint-plugin-es-x: 7.5.0(eslint@8.56.0) get-tsconfig: 4.7.3 - globals: 15.1.0 + globals: 15.2.0 ignore: 5.3.1 minimatch: 9.0.4 semver: 7.6.0 eslint-plugin-no-only-tests@3.1.0: {} - eslint-plugin-perfectionist@2.10.0(eslint-ts-patch@8.55.0-1)(svelte@4.2.12)(typescript@5.4.5)(vue-eslint-parser@9.4.2(eslint-ts-patch@8.55.0-1)): + eslint-plugin-perfectionist@2.10.0(eslint@8.56.0)(svelte@4.2.12)(typescript@5.4.5)(vue-eslint-parser@9.4.2(eslint@8.56.0)): dependencies: - '@typescript-eslint/utils': 7.8.0(eslint-ts-patch@8.55.0-1)(typescript@5.4.5) - eslint: eslint-ts-patch@8.55.0-1 + '@typescript-eslint/utils': 7.8.0(eslint@8.56.0)(typescript@5.4.5) + eslint: 8.56.0 minimatch: 9.0.4 natural-compare-lite: 1.4.0 optionalDependencies: svelte: 4.2.12 - vue-eslint-parser: 9.4.2(eslint-ts-patch@8.55.0-1) + vue-eslint-parser: 9.4.2(eslint@8.56.0) transitivePeerDependencies: - supports-color - typescript - eslint-plugin-toml@0.11.0(eslint-ts-patch@8.55.0-1): + eslint-plugin-regexp@2.5.0(eslint@8.56.0): + dependencies: + '@eslint-community/eslint-utils': 4.4.0(eslint@8.56.0) + '@eslint-community/regexpp': 4.10.0 + comment-parser: 1.4.1 + eslint: 8.56.0 + jsdoc-type-pratt-parser: 4.0.0 + refa: 0.12.1 + regexp-ast-analysis: 0.7.1 + scslre: 0.3.0 + + eslint-plugin-toml@0.11.0(eslint@8.56.0): dependencies: debug: 4.3.4 - eslint: eslint-ts-patch@8.55.0-1 - eslint-compat-utils: 0.5.0(eslint-ts-patch@8.55.0-1) + eslint: 8.56.0 + eslint-compat-utils: 0.5.0(eslint@8.56.0) lodash: 4.17.21 toml-eslint-parser: 0.9.3 transitivePeerDependencies: - supports-color - eslint-plugin-unicorn@52.0.0(eslint-ts-patch@8.55.0-1): + eslint-plugin-unicorn@52.0.0(eslint@8.56.0): dependencies: - '@babel/helper-validator-identifier': 7.22.20 - '@eslint-community/eslint-utils': 4.4.0(eslint-ts-patch@8.55.0-1) + '@babel/helper-validator-identifier': 7.24.5 + '@eslint-community/eslint-utils': 4.4.0(eslint@8.56.0) '@eslint/eslintrc': 2.1.4 ci-info: 4.0.0 clean-regexp: 1.0.0 core-js-compat: 3.36.0 - eslint: eslint-ts-patch@8.55.0-1 + eslint: 8.56.0 esquery: 1.5.0 indent-string: 4.0.0 is-builtin-module: 3.2.1 @@ -10809,52 +10911,52 @@ snapshots: transitivePeerDependencies: - supports-color - eslint-plugin-unused-imports@3.2.0(@typescript-eslint/eslint-plugin@7.8.0(@typescript-eslint/parser@7.8.0(eslint-ts-patch@8.55.0-1)(typescript@5.4.5))(eslint-ts-patch@8.55.0-1)(typescript@5.4.5))(eslint-ts-patch@8.55.0-1): + eslint-plugin-unused-imports@3.2.0(@typescript-eslint/eslint-plugin@7.9.0(@typescript-eslint/parser@7.9.0(eslint@8.56.0)(typescript@5.4.5))(eslint@8.56.0)(typescript@5.4.5))(eslint@8.56.0): dependencies: - eslint: eslint-ts-patch@8.55.0-1 + eslint: 8.56.0 eslint-rule-composer: 0.3.0 optionalDependencies: - '@typescript-eslint/eslint-plugin': 7.8.0(@typescript-eslint/parser@7.8.0(eslint-ts-patch@8.55.0-1)(typescript@5.4.5))(eslint-ts-patch@8.55.0-1)(typescript@5.4.5) + '@typescript-eslint/eslint-plugin': 7.9.0(@typescript-eslint/parser@7.9.0(eslint@8.56.0)(typescript@5.4.5))(eslint@8.56.0)(typescript@5.4.5) - eslint-plugin-vitest@0.5.4(@typescript-eslint/eslint-plugin@7.8.0(@typescript-eslint/parser@7.8.0(eslint-ts-patch@8.55.0-1)(typescript@5.4.5))(eslint-ts-patch@8.55.0-1)(typescript@5.4.5))(eslint-ts-patch@8.55.0-1)(typescript@5.4.5): + eslint-plugin-vitest@0.5.4(@typescript-eslint/eslint-plugin@7.9.0(@typescript-eslint/parser@7.9.0(eslint@8.56.0)(typescript@5.4.5))(eslint@8.56.0)(typescript@5.4.5))(eslint@8.56.0)(typescript@5.4.5): dependencies: - '@typescript-eslint/utils': 7.8.0(eslint-ts-patch@8.55.0-1)(typescript@5.4.5) - eslint: eslint-ts-patch@8.55.0-1 + '@typescript-eslint/utils': 7.8.0(eslint@8.56.0)(typescript@5.4.5) + eslint: 8.56.0 optionalDependencies: - '@typescript-eslint/eslint-plugin': 7.8.0(@typescript-eslint/parser@7.8.0(eslint-ts-patch@8.55.0-1)(typescript@5.4.5))(eslint-ts-patch@8.55.0-1)(typescript@5.4.5) + '@typescript-eslint/eslint-plugin': 7.9.0(@typescript-eslint/parser@7.9.0(eslint@8.56.0)(typescript@5.4.5))(eslint@8.56.0)(typescript@5.4.5) transitivePeerDependencies: - supports-color - typescript - eslint-plugin-vue@9.25.0(eslint-ts-patch@8.55.0-1): + eslint-plugin-vue@9.26.0(eslint@8.56.0): dependencies: - '@eslint-community/eslint-utils': 4.4.0(eslint-ts-patch@8.55.0-1) - eslint: eslint-ts-patch@8.55.0-1 + '@eslint-community/eslint-utils': 4.4.0(eslint@8.56.0) + eslint: 8.56.0 globals: 13.24.0 natural-compare: 1.4.0 nth-check: 2.1.1 postcss-selector-parser: 6.0.15 semver: 7.6.0 - vue-eslint-parser: 9.4.2(eslint-ts-patch@8.55.0-1) + vue-eslint-parser: 9.4.2(eslint@8.56.0) xml-name-validator: 4.0.0 transitivePeerDependencies: - supports-color - eslint-plugin-yml@1.14.0(eslint-ts-patch@8.55.0-1): + eslint-plugin-yml@1.14.0(eslint@8.56.0): dependencies: debug: 4.3.4 - eslint: eslint-ts-patch@8.55.0-1 - eslint-compat-utils: 0.5.0(eslint-ts-patch@8.55.0-1) + eslint: 8.56.0 + eslint-compat-utils: 0.5.0(eslint@8.56.0) lodash: 4.17.21 natural-compare: 1.4.0 yaml-eslint-parser: 1.2.2 transitivePeerDependencies: - supports-color - eslint-processor-vue-blocks@0.1.2(@vue/compiler-sfc@3.4.27)(eslint-ts-patch@8.55.0-1): + eslint-processor-vue-blocks@0.1.2(@vue/compiler-sfc@3.4.27)(eslint@8.56.0): dependencies: '@vue/compiler-sfc': 3.4.27 - eslint: eslint-ts-patch@8.55.0-1 + eslint: 8.56.0 eslint-rule-composer@0.3.0: {} @@ -10868,14 +10970,6 @@ snapshots: esrecurse: 4.3.0 estraverse: 5.3.0 - eslint-ts-patch@8.55.0-1: - dependencies: - debug: 4.3.4 - eslint: 8.56.0 - jiti: 1.21.0 - transitivePeerDependencies: - - supports-color - eslint-visitor-keys@3.4.3: {} eslint-visitor-keys@4.0.0: {} @@ -11246,7 +11340,7 @@ snapshots: dependencies: type-fest: 0.20.2 - globals@15.1.0: {} + globals@15.2.0: {} globby@11.1.0: dependencies: @@ -11410,8 +11504,12 @@ snapshots: dependencies: queue: 6.0.2 + immediate@3.0.6: {} + immutable-json-patch@6.0.1: {} + immutable@4.3.6: {} + import-fresh@3.3.0: dependencies: parent-module: 1.0.1 @@ -11663,7 +11761,12 @@ snapshots: jsonrepair@3.6.0: {} - jszip@3.9.1: {} + jszip@3.9.1: + dependencies: + lie: 3.3.0 + pako: 1.0.11 + readable-stream: 2.3.8 + set-immediate-shim: 1.0.1 keyv@4.5.4: dependencies: @@ -11693,6 +11796,10 @@ snapshots: prelude-ls: 1.2.1 type-check: 0.4.0 + lie@3.3.0: + dependencies: + immediate: 3.0.6 + lighthouse-logger@2.0.1: dependencies: debug: 2.6.9 @@ -12857,6 +12964,8 @@ snapshots: pako@0.2.9: {} + pako@1.0.11: {} + parent-module@1.0.1: dependencies: callsites: 3.1.0 @@ -12977,7 +13086,7 @@ snapshots: pluralize@8.0.0: {} - pnpm@9.1.0: {} + pnpm@9.1.1: {} postcss-calc@9.0.1(postcss@8.4.38): dependencies: @@ -13287,8 +13396,17 @@ snapshots: dependencies: redis-errors: 1.2.0 + refa@0.12.1: + dependencies: + '@eslint-community/regexpp': 4.10.0 + regenerator-runtime@0.14.1: {} + regexp-ast-analysis@0.7.1: + dependencies: + '@eslint-community/regexpp': 4.10.0 + refa: 0.12.1 + regexp-tree@0.1.27: {} regjsparser@0.10.0: @@ -13385,7 +13503,11 @@ snapshots: safer-buffer@2.1.2: optional: true - sass@1.77.1: {} + sass@1.77.1: + dependencies: + chokidar: 3.6.0 + immutable: 4.3.6 + source-map-js: 1.2.0 satori-html@0.3.2: dependencies: @@ -13410,6 +13532,12 @@ snapshots: ajv: 6.12.6 ajv-keywords: 3.5.2(ajv@6.12.6) + scslre@0.3.0: + dependencies: + '@eslint-community/regexpp': 4.10.0 + refa: 0.12.1 + regexp-ast-analysis: 0.7.1 + scule@1.2.0: {} scule@1.3.0: {} @@ -13463,6 +13591,8 @@ snapshots: set-blocking@2.0.0: {} + set-immediate-shim@1.0.1: {} + setprototypeof@1.2.0: {} sharp@0.32.6: @@ -13879,7 +14009,10 @@ snapshots: tslib@2.6.2: {} - tsx@4.10.1: + tsx@4.10.2: + dependencies: + esbuild: 0.20.2 + get-tsconfig: 4.7.3 optionalDependencies: fsevents: 2.3.3 @@ -14574,10 +14707,10 @@ snapshots: vue-devtools-stub@0.1.0: {} - vue-eslint-parser@9.4.2(eslint-ts-patch@8.55.0-1): + vue-eslint-parser@9.4.2(eslint@8.56.0): dependencies: debug: 4.3.4 - eslint: eslint-ts-patch@8.55.0-1 + eslint: 8.56.0 eslint-scope: 7.2.2 eslint-visitor-keys: 3.4.3 espree: 9.6.1 diff --git a/scripts/download.mjs b/scripts/download.mjs index 5fdfe17..cd583d0 100644 --- a/scripts/download.mjs +++ b/scripts/download.mjs @@ -6,7 +6,7 @@ import path from 'node:path' const imgs_path = path.resolve(process.argv[2] || 'imgs.csv') const url_list = await readFile(imgs_path, 'utf-8') - .then(text => text.replace(/\r\n/gm, '\n').split(',\n')) + .then(text => text.replace(/\r\n/g, '\n').split(',\n')) .catch((e) => { console.error(`未找到 imgs.csv 文件, ${e}`) process.exit(1) @@ -26,7 +26,7 @@ for (let url of url_list) { continue const file_name = url.split('/').pop().split('?')[0] - const prefix = url.match(/^(?:https?:\/\/)?([^:\/\n]+)/)?.[1] + const prefix = url.match(/^(?:https?:\/\/)?([^:/\n]+)/)?.[1] if (!prefix) throw new Error(`无法获取图片地址`) diff --git a/tsconfig.json b/tsconfig.json index 95dfbb6..02e60c7 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -30,8 +30,8 @@ "*.ts", "*.tsx", "*.d.ts", - "apps/web/.nuxt/imports.d.ts" - ], + "apps/web/.nuxt/imports.d.ts", + "eslint.config.js"], "exclude": [ "dist", "node_modules"