From 165f6fe2c2ab0f2e895ea8f2dfe3ef343cff7bfe Mon Sep 17 00:00:00 2001 From: neverland Date: Wed, 12 Aug 2026 18:44:14 +0800 Subject: [PATCH] chore(deps): upgrade Rslint to v0.8.0 --- package.json | 2 +- pnpm-lock.yaml | 93 ++++++++++++++++++++-------------------- rslint.config.ts | 3 +- src/tool-stack/index.tsx | 2 + src/why-rspack/index.tsx | 4 ++ 5 files changed, 55 insertions(+), 49 deletions(-) diff --git a/package.json b/package.json index cd8108a..80b324d 100644 --- a/package.json +++ b/package.json @@ -98,7 +98,7 @@ "@rsbuild/plugin-react": "2.1.0", "@rsbuild/plugin-sass": "2.0.1", "@rslib/core": "^0.23.2", - "@rslint/core": "^0.6.5", + "@rslint/core": "^0.8.0", "@rspress/core": "^2.0.17", "@rstack-dev/doc-ui": "workspace:*", "@rstest/adapter-rslib": "^0.11.1", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 3c8b5a4..6b52685 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -18,8 +18,8 @@ importers: specifier: ^0.23.2 version: 0.23.2(typescript@7.0.2) '@rslint/core': - specifier: ^0.6.5 - version: 0.6.5 + specifier: ^0.8.0 + version: 0.8.0 '@rspress/core': specifier: ^2.0.17 version: 2.0.17(@rspack/core@2.1.3(@swc/helpers@0.5.23))(@types/mdast@4.0.4)(@types/react@19.2.17)(micromark-util-types@2.0.2)(micromark@4.0.2) @@ -1291,56 +1291,56 @@ packages: typescript: optional: true - '@rslint/core@0.6.5': - resolution: {integrity: sha512-BAy65hSKOhHrma20Rxqf1DTyGNYBSQGBeo21JKc0bgHzbkTbUcyPSz6EpdI3woDe0HqwGmOsl/tPTGqKvgsz3g==} + '@rslint/core@0.8.0': + resolution: {integrity: sha512-MfMC6lxiXoKPWsYRu9fuAxWA9mCD/I4E5Aa6Sl20a6q5w8r2C12fJM+bceC01AMGYuvWygKHqS3QBJdJHjniRw==} hasBin: true peerDependencies: - jiti: ^2.0.0 + jiti: ^2.7.0 peerDependenciesMeta: jiti: optional: true - '@rslint/native-darwin-arm64@0.6.5': - resolution: {integrity: sha512-5HDBqR1XgZ29pNEjSnm/YccWpwEWEl9d8rUQZkbDUz3x2VWylfok8Ty1qjDHVAas1k01euMS1YJA4/nku9N0Iw==} + '@rslint/native-darwin-arm64@0.8.0': + resolution: {integrity: sha512-Bo6kXL1/TkjVUl6maZ3Sw+JEnZUkgpUD35v06jyBTcjpxlXE6yqFj66NAzB/G2CVu220ADp/FEE7l2Kocrefhg==} cpu: [arm64] os: [darwin] - '@rslint/native-darwin-x64@0.6.5': - resolution: {integrity: sha512-YU8w9N7NbBBDZ/B8nsmZmVLL5A40AnUxsywsCvDT6nPUhEqHJvCbwze5LHQFT4RvhJEfC/ye/7pqL59SnKN5tA==} + '@rslint/native-darwin-x64@0.8.0': + resolution: {integrity: sha512-F5pabdH7dluxoj7PGuQjPYuoNU+yxnctcJzqrb/CZ122FLP3uJPrbiLufh+ZF9e5ui700rNyb7macJqnHlBV2w==} cpu: [x64] os: [darwin] - '@rslint/native-linux-arm64-gnu@0.6.5': - resolution: {integrity: sha512-IGt5Op5dKO9ZbI9vOjZrgBnAM3QfT/X7PNjUVmYYso8OvseapzQv0E6D8qgTJVrN5874VWBwXgc7a/cylYR6IA==} + '@rslint/native-linux-arm64-gnu@0.8.0': + resolution: {integrity: sha512-SSgSjyaeXI032Wk8bq6VmkLQTWOEqHZH5MWAk3831pd/G2rWr2XcoDi5Wf6w0o2rSCeYzkYbIejOePYwIKT4Lg==} cpu: [arm64] os: [linux] libc: [glibc] - '@rslint/native-linux-arm64-musl@0.6.5': - resolution: {integrity: sha512-cywsTmLudo4a6Rlp4bsriS9QF4n0aMZc25ArgxB/j3sIzHSREIoNdUYx1VHz7pOUJy2W5wmNfHIVWb+uz6R6eA==} + '@rslint/native-linux-arm64-musl@0.8.0': + resolution: {integrity: sha512-50VDZQFAc9kp6rbOUOjyppVjC3d3AdbOJyA6JxlhK3mp8a/8sPIqWG0BlfcN/7ZpwdZrFsQt2Ds+0yMXITfu5A==} cpu: [arm64] os: [linux] libc: [musl] - '@rslint/native-linux-x64-gnu@0.6.5': - resolution: {integrity: sha512-4/d3jkZQ0lnf1GtiB0WCLoXfMCPxD04mihVNWmC2qNj5JF8OKTg9tKbfpwZNjJDDVK0noj9JiynQGhVUZCMNDQ==} + '@rslint/native-linux-x64-gnu@0.8.0': + resolution: {integrity: sha512-wfc/UfnuTBAofwLPK5MLB2Hus1YYnsxP2MVchp380fUvMfQuGFPzz1WOAUY66zqrsrDKpUJsh3V1bx7c8DTlJA==} cpu: [x64] os: [linux] libc: [glibc] - '@rslint/native-linux-x64-musl@0.6.5': - resolution: {integrity: sha512-uz0q2MBm+iAbe+ecFA3JKsmlN12DWxNQYF0wHn81kpF5QPMlM62xsYFLHIs4ER7FtC2oR3SOtCcWsyIGRCiBxQ==} + '@rslint/native-linux-x64-musl@0.8.0': + resolution: {integrity: sha512-MTYcAMz6IZWb6ZmLo12pakCBA8mS3EW9cOI0jd3At6vs0Yia9YbeOAUiWbIC4Z9yyp75b8ZQCQMRSnY6rDnbaA==} cpu: [x64] os: [linux] libc: [musl] - '@rslint/native-win32-arm64-msvc@0.6.5': - resolution: {integrity: sha512-bud+61vGaVBO1ykKvaM1vtPILQi0cl5nad0DboBmo4EtEykbZyapZ3aM/g8NV/ldJmkNaFQdwuXcrdfA9+d7Vg==} + '@rslint/native-win32-arm64-msvc@0.8.0': + resolution: {integrity: sha512-hids2jgNWBxZf2mSBLZJxubWRLWlJapEfeJHVokzjpRpBZZNv7O06enoyXSb4Lswff9WaHssIqu1sfZIc9lC2g==} cpu: [arm64] os: [win32] - '@rslint/native-win32-x64-msvc@0.6.5': - resolution: {integrity: sha512-7iQozrpTvh/Vj7x5jTYaG+9zKWJkiXz0PgemFNUMIXLCZHWsJffPy7D1ls5q2Rfe6hshFJ9d6UxGk1KmLpZQiw==} + '@rslint/native-win32-x64-msvc@0.8.0': + resolution: {integrity: sha512-bun7uURKl6NdChwmw/i2mk3Yj9klZQyh1uRbIQG0RDEJ9oTIbU5M3c7K5sd/Rukat0TVCGgbBAzR+YB0DAXPZQ==} cpu: [x64] os: [win32] @@ -1656,9 +1656,6 @@ packages: '@types/ms@2.1.0': resolution: {integrity: sha512-GsCCIZDE/p3i96vtEqx+7dBUGXrc7zeSK3wwPHIaRThS+9OhWIXRqzs4d6k1SVU8g91DrNRWxWUGhp5KXQb2VA==} - '@types/node@24.13.2': - resolution: {integrity: sha512-fRa09kZTgu8o71KFcDjUFuc7F+dEbZYZmkI0mg5YBTRs0yMKjYHsq/c0urDKeDb+D5qVgXOdFcuu+DZPKOITwA==} - '@types/node@24.13.3': resolution: {integrity: sha512-Dh8vAsV36ig5wa9OX4pXvMc9D3Veibfw2wix0CUwYODLD8nkj9UsLjASr49nPg+2eKzxhBV+v7L8pXvT4e639Q==} @@ -3105,6 +3102,10 @@ packages: resolution: {integrity: sha512-QP88BAKvMam/3NxH6vj2o21R6MjxZUAd6nlwAS/pnGvN9IVLocLHxGYIzFhg6fUQ+5th6P4dv4eW9jX3DSIj7A==} engines: {node: '>=12'} + picomatch@4.0.5: + resolution: {integrity: sha512-RvwwcruNjI1ncT5xRakeyS9Lf8lcItv34KD+aif+VH9kduAyfYBipGh12274xtenIPZ119/R9BdTBa8gAwSh0A==} + engines: {node: '>=12'} + pkg-dir@4.2.0: resolution: {integrity: sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==} engines: {node: '>=8'} @@ -5025,41 +5026,41 @@ snapshots: - '@typescript/native-preview' - core-js - '@rslint/core@0.6.5': + '@rslint/core@0.8.0': dependencies: - picomatch: 4.0.4 + picomatch: 4.0.5 optionalDependencies: - '@rslint/native-darwin-arm64': 0.6.5 - '@rslint/native-darwin-x64': 0.6.5 - '@rslint/native-linux-arm64-gnu': 0.6.5 - '@rslint/native-linux-arm64-musl': 0.6.5 - '@rslint/native-linux-x64-gnu': 0.6.5 - '@rslint/native-linux-x64-musl': 0.6.5 - '@rslint/native-win32-arm64-msvc': 0.6.5 - '@rslint/native-win32-x64-msvc': 0.6.5 + '@rslint/native-darwin-arm64': 0.8.0 + '@rslint/native-darwin-x64': 0.8.0 + '@rslint/native-linux-arm64-gnu': 0.8.0 + '@rslint/native-linux-arm64-musl': 0.8.0 + '@rslint/native-linux-x64-gnu': 0.8.0 + '@rslint/native-linux-x64-musl': 0.8.0 + '@rslint/native-win32-arm64-msvc': 0.8.0 + '@rslint/native-win32-x64-msvc': 0.8.0 - '@rslint/native-darwin-arm64@0.6.5': + '@rslint/native-darwin-arm64@0.8.0': optional: true - '@rslint/native-darwin-x64@0.6.5': + '@rslint/native-darwin-x64@0.8.0': optional: true - '@rslint/native-linux-arm64-gnu@0.6.5': + '@rslint/native-linux-arm64-gnu@0.8.0': optional: true - '@rslint/native-linux-arm64-musl@0.6.5': + '@rslint/native-linux-arm64-musl@0.8.0': optional: true - '@rslint/native-linux-x64-gnu@0.6.5': + '@rslint/native-linux-x64-gnu@0.8.0': optional: true - '@rslint/native-linux-x64-musl@0.6.5': + '@rslint/native-linux-x64-musl@0.8.0': optional: true - '@rslint/native-win32-arm64-msvc@0.6.5': + '@rslint/native-win32-arm64-msvc@0.8.0': optional: true - '@rslint/native-win32-x64-msvc@0.6.5': + '@rslint/native-win32-x64-msvc@0.8.0': optional: true '@rspack/binding-darwin-arm64@2.1.3': @@ -5445,10 +5446,6 @@ snapshots: '@types/ms@2.1.0': {} - '@types/node@24.13.2': - dependencies: - undici-types: 7.18.2 - '@types/node@24.13.3': dependencies: undici-types: 7.18.2 @@ -6487,7 +6484,7 @@ snapshots: jest-worker@27.5.1: dependencies: - '@types/node': 24.13.2 + '@types/node': 24.13.3 merge-stream: 2.0.0 supports-color: 8.1.1 @@ -7268,6 +7265,8 @@ snapshots: picomatch@4.0.4: {} + picomatch@4.0.5: {} + pkg-dir@4.2.0: dependencies: find-up: 4.1.0 diff --git a/rslint.config.ts b/rslint.config.ts index af8dc6a..b07149a 100644 --- a/rslint.config.ts +++ b/rslint.config.ts @@ -1,6 +1,7 @@ -import { defineConfig, reactPlugin, ts } from '@rslint/core'; +import { defineConfig, reactPlugin, js, ts } from '@rslint/core'; export default defineConfig([ + js.configs.recommended, ts.configs.recommended, reactPlugin.configs.recommended, { diff --git a/src/tool-stack/index.tsx b/src/tool-stack/index.tsx index c958792..7cfce2d 100644 --- a/src/tool-stack/index.tsx +++ b/src/tool-stack/index.tsx @@ -112,3 +112,5 @@ export const ToolStack: React.FC<{ lang: string }> = memo(({ lang }) => { ); }); + +ToolStack.displayName = 'ToolStack'; diff --git a/src/why-rspack/index.tsx b/src/why-rspack/index.tsx index 04e517b..3f49a98 100644 --- a/src/why-rspack/index.tsx +++ b/src/why-rspack/index.tsx @@ -125,6 +125,8 @@ const FeatureItem = memo( }, ); +FeatureItem.displayName = 'FeatureItem'; + export type FeatureListProps = { features: Feature[]; LinkComp?: LinkComp; @@ -146,6 +148,8 @@ const FeatureList: FC = memo(({ LinkComp, features }) => { ); }); +FeatureList.displayName = 'FeatureList'; + export type WhyRspackProps = FeatureListProps; export const WhyRspack: FC = ({ features, LinkComp }) => {