From d0d6438e7afae63dcbf3b6236a0c6ca31ab2301e Mon Sep 17 00:00:00 2001 From: neverland Date: Wed, 12 Aug 2026 18:44:13 +0800 Subject: [PATCH 1/5] chore(deps): upgrade Rslint to v0.8.0 --- package.json | 2 +- pnpm-lock.yaml | 84 ++++++++++++++++++++++++------------------------ rslint.config.ts | 13 ++++++-- 3 files changed, 54 insertions(+), 45 deletions(-) diff --git a/package.json b/package.json index 3b01ed1..c7896c7 100644 --- a/package.json +++ b/package.json @@ -38,7 +38,7 @@ }, "devDependencies": { "@rslib/core": "^0.23.2", - "@rslint/core": "^0.7.2", + "@rslint/core": "^0.8.0", "@rspack/core": "2.1.7", "@rstest/core": "^0.11.5", "@types/node": "^24.13.3", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index c8409c2..7dafbc0 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -12,8 +12,8 @@ importers: specifier: ^0.23.2 version: 0.23.2(typescript@7.0.2) '@rslint/core': - specifier: ^0.7.2 - version: 0.7.2 + specifier: ^0.8.0 + version: 0.8.0 '@rspack/core': specifier: 2.1.7 version: 2.1.7(@swc/helpers@0.5.23) @@ -182,56 +182,56 @@ packages: typescript: optional: true - '@rslint/core@0.7.2': - resolution: {integrity: sha512-jzSu6fMEWnuNEIZZk016z5Zk1AHYhNdfsCkvVvYfcduGyEAOo4QZDx+eXJ8R2bJqunAXLJPMx3JykXTjxyGjlQ==} + '@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.7.2': - resolution: {integrity: sha512-Q7Nx26S7O1zlELKNIyi3+ZBn6s+ZrGFmyMkqWT2UsXsq9jW3sUGJG44/BcvAFXtFYg7ONUl7LDYakz/VP7DzXQ==} + '@rslint/native-darwin-arm64@0.8.0': + resolution: {integrity: sha512-Bo6kXL1/TkjVUl6maZ3Sw+JEnZUkgpUD35v06jyBTcjpxlXE6yqFj66NAzB/G2CVu220ADp/FEE7l2Kocrefhg==} cpu: [arm64] os: [darwin] - '@rslint/native-darwin-x64@0.7.2': - resolution: {integrity: sha512-ONbEKiPd/StrV+/enPMJz60/+oJCiuVK9cbMpymWjAv1qDNCiuTNIqb5RUc4OHxWy7QZ9LWbVw4X/5XcJf0ebQ==} + '@rslint/native-darwin-x64@0.8.0': + resolution: {integrity: sha512-F5pabdH7dluxoj7PGuQjPYuoNU+yxnctcJzqrb/CZ122FLP3uJPrbiLufh+ZF9e5ui700rNyb7macJqnHlBV2w==} cpu: [x64] os: [darwin] - '@rslint/native-linux-arm64-gnu@0.7.2': - resolution: {integrity: sha512-06C0QJF6gJ/VkLPBw6+SauH91PnUM83Kd7tBIqU5QP11q3iIK+aPFGMbSrKsKu6/+yVig424Z4nSxcQ2MzCmag==} + '@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.7.2': - resolution: {integrity: sha512-KpgwL3sgRVNx3LciBcfmRxxIymuQKBo3vinEewHWdll+WkRlS08Ow1XhSu2YIrenOYQ5cKSD26PW57AUE8s2zA==} + '@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.7.2': - resolution: {integrity: sha512-TOTVGJvFW2uxMthV3g05HNik0BWUE8gabZp5mYiDF4dc+yFihqWw1kRO//4hZyd4m0CPkRpsBL89UCwAX6lBzA==} + '@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.7.2': - resolution: {integrity: sha512-rn4g1i8VVZeVnc/Qa1IJVvX0e4XQncB144CTwHeFnC2V8aMBL6kmfvBox2mL59nPRTlILf4GAMOMlD3tSD5N5Q==} + '@rslint/native-linux-x64-musl@0.8.0': + resolution: {integrity: sha512-MTYcAMz6IZWb6ZmLo12pakCBA8mS3EW9cOI0jd3At6vs0Yia9YbeOAUiWbIC4Z9yyp75b8ZQCQMRSnY6rDnbaA==} cpu: [x64] os: [linux] libc: [musl] - '@rslint/native-win32-arm64-msvc@0.7.2': - resolution: {integrity: sha512-j2kdE1+3TdXhjtmu+b9lWJThSaT3SZKcMa5dlEy20+bDwTCBmuhO6lR79/4BllXz8/avP8W0YmkfORitoVPxrA==} + '@rslint/native-win32-arm64-msvc@0.8.0': + resolution: {integrity: sha512-hids2jgNWBxZf2mSBLZJxubWRLWlJapEfeJHVokzjpRpBZZNv7O06enoyXSb4Lswff9WaHssIqu1sfZIc9lC2g==} cpu: [arm64] os: [win32] - '@rslint/native-win32-x64-msvc@0.7.2': - resolution: {integrity: sha512-qOXNWTn4Q9gf6/GCmJlJt5heVD+WIdbVSLRb2KbJLt055ZuVQV40Md8NkUSWF94j/J9+1d21/UoOvKDNt144fg==} + '@rslint/native-win32-x64-msvc@0.8.0': + resolution: {integrity: sha512-bun7uURKl6NdChwmw/i2mk3Yj9klZQyh1uRbIQG0RDEJ9oTIbU5M3c7K5sd/Rukat0TVCGgbBAzR+YB0DAXPZQ==} cpu: [x64] os: [win32] @@ -507,8 +507,8 @@ packages: csstype@3.2.3: resolution: {integrity: sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==} - picomatch@4.0.4: - resolution: {integrity: sha512-QP88BAKvMam/3NxH6vj2o21R6MjxZUAd6nlwAS/pnGvN9IVLocLHxGYIzFhg6fUQ+5th6P4dv4eW9jX3DSIj7A==} + picomatch@4.0.5: + resolution: {integrity: sha512-RvwwcruNjI1ncT5xRakeyS9Lf8lcItv34KD+aif+VH9kduAyfYBipGh12274xtenIPZ119/R9BdTBa8gAwSh0A==} engines: {node: '>=12'} prettier@3.9.6: @@ -652,41 +652,41 @@ snapshots: - '@typescript/native-preview' - core-js - '@rslint/core@0.7.2': + '@rslint/core@0.8.0': dependencies: - picomatch: 4.0.4 + picomatch: 4.0.5 optionalDependencies: - '@rslint/native-darwin-arm64': 0.7.2 - '@rslint/native-darwin-x64': 0.7.2 - '@rslint/native-linux-arm64-gnu': 0.7.2 - '@rslint/native-linux-arm64-musl': 0.7.2 - '@rslint/native-linux-x64-gnu': 0.7.2 - '@rslint/native-linux-x64-musl': 0.7.2 - '@rslint/native-win32-arm64-msvc': 0.7.2 - '@rslint/native-win32-x64-msvc': 0.7.2 + '@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.7.2': + '@rslint/native-darwin-arm64@0.8.0': optional: true - '@rslint/native-darwin-x64@0.7.2': + '@rslint/native-darwin-x64@0.8.0': optional: true - '@rslint/native-linux-arm64-gnu@0.7.2': + '@rslint/native-linux-arm64-gnu@0.8.0': optional: true - '@rslint/native-linux-arm64-musl@0.7.2': + '@rslint/native-linux-arm64-musl@0.8.0': optional: true - '@rslint/native-linux-x64-gnu@0.7.2': + '@rslint/native-linux-x64-gnu@0.8.0': optional: true - '@rslint/native-linux-x64-musl@0.7.2': + '@rslint/native-linux-x64-musl@0.8.0': optional: true - '@rslint/native-win32-arm64-msvc@0.7.2': + '@rslint/native-win32-arm64-msvc@0.8.0': optional: true - '@rslint/native-win32-x64-msvc@0.7.2': + '@rslint/native-win32-x64-msvc@0.8.0': optional: true '@rspack/binding-darwin-arm64@2.1.7': @@ -865,7 +865,7 @@ snapshots: csstype@3.2.3: {} - picomatch@4.0.4: {} + picomatch@4.0.5: {} prettier@3.9.6: {} diff --git a/rslint.config.ts b/rslint.config.ts index 5055b09..fe287f6 100644 --- a/rslint.config.ts +++ b/rslint.config.ts @@ -1,3 +1,12 @@ -import { defineConfig, ts } from '@rslint/core'; +import { defineConfig, js, ts } from '@rslint/core'; -export default defineConfig([ts.configs.recommended]); +export default defineConfig([ + js.configs.recommended, + ts.configs.recommended, + { + files: ['client/**/*', 'test/**/*'], + rules: { + 'no-undef': 'off', + }, + }, +]); From 69234fe054a5d9a8c30482578cca3f0e0a83d480 Mon Sep 17 00:00:00 2001 From: neverland Date: Thu, 20 Aug 2026 14:47:19 +0800 Subject: [PATCH 2/5] chore(deps): upgrade Rslint to v0.8.1 --- package.json | 2 +- pnpm-lock.yaml | 74 ++++++++++++++++++++++++------------------------ rslint.config.ts | 16 +++++++++-- 3 files changed, 52 insertions(+), 40 deletions(-) diff --git a/package.json b/package.json index 5b4af58..031a155 100644 --- a/package.json +++ b/package.json @@ -38,7 +38,7 @@ }, "devDependencies": { "@rslib/core": "^0.23.2", - "@rslint/core": "^0.8.0", + "@rslint/core": "^0.8.1", "@rspack/core": "2.1.10", "@rstest/core": "^0.11.8", "@types/node": "^24.13.3", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index b496901..a8c7444 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -12,8 +12,8 @@ importers: specifier: ^0.23.2 version: 0.23.2(typescript@7.0.2) '@rslint/core': - specifier: ^0.8.0 - version: 0.8.0 + specifier: ^0.8.1 + version: 0.8.1 '@rspack/core': specifier: 2.1.10 version: 2.1.10(@swc/helpers@0.5.23) @@ -182,8 +182,8 @@ packages: typescript: optional: true - '@rslint/core@0.8.0': - resolution: {integrity: sha512-MfMC6lxiXoKPWsYRu9fuAxWA9mCD/I4E5Aa6Sl20a6q5w8r2C12fJM+bceC01AMGYuvWygKHqS3QBJdJHjniRw==} + '@rslint/core@0.8.1': + resolution: {integrity: sha512-cqpDcgJ8TgBC+I/OZkICze0sSNcsdjtxNCv01fQTYvgIvBkwbhNlg4celD3XEPfA8B2B2H/woYgeaX0IPEeTMA==} hasBin: true peerDependencies: jiti: ^2.7.0 @@ -191,47 +191,47 @@ packages: jiti: optional: true - '@rslint/native-darwin-arm64@0.8.0': - resolution: {integrity: sha512-Bo6kXL1/TkjVUl6maZ3Sw+JEnZUkgpUD35v06jyBTcjpxlXE6yqFj66NAzB/G2CVu220ADp/FEE7l2Kocrefhg==} + '@rslint/native-darwin-arm64@0.8.1': + resolution: {integrity: sha512-HlucYn3RLELMHRjlvKcr0vPlE/2RUs6BVn5ClRKFcLShON4j+q8NWaIPHwY5zrQjqq7GJxX3b/7G9skU+TrQ2w==} cpu: [arm64] os: [darwin] - '@rslint/native-darwin-x64@0.8.0': - resolution: {integrity: sha512-F5pabdH7dluxoj7PGuQjPYuoNU+yxnctcJzqrb/CZ122FLP3uJPrbiLufh+ZF9e5ui700rNyb7macJqnHlBV2w==} + '@rslint/native-darwin-x64@0.8.1': + resolution: {integrity: sha512-HV4FOwq3ofuoMkUxjEyGvaOGyr79OzFhAIpMcT9uOO6BxEA/PndepwBAPmkBt33aewm2oPKM2khsC582XTsxew==} cpu: [x64] os: [darwin] - '@rslint/native-linux-arm64-gnu@0.8.0': - resolution: {integrity: sha512-SSgSjyaeXI032Wk8bq6VmkLQTWOEqHZH5MWAk3831pd/G2rWr2XcoDi5Wf6w0o2rSCeYzkYbIejOePYwIKT4Lg==} + '@rslint/native-linux-arm64-gnu@0.8.1': + resolution: {integrity: sha512-O9kvvw2O7WAzeBAp7KSfXVbyl4Q4hAY1rUSRpeJp9hOY3yQUipE98qF29QicbXTRsoZZooMTmrjV/0EiYGL8OA==} cpu: [arm64] os: [linux] libc: [glibc] - '@rslint/native-linux-arm64-musl@0.8.0': - resolution: {integrity: sha512-50VDZQFAc9kp6rbOUOjyppVjC3d3AdbOJyA6JxlhK3mp8a/8sPIqWG0BlfcN/7ZpwdZrFsQt2Ds+0yMXITfu5A==} + '@rslint/native-linux-arm64-musl@0.8.1': + resolution: {integrity: sha512-I92YjEMPcdeXz29rGuWR7kKjlek3LG/kcLHaBop6ucYkAXbuwdCwALM/JKxjcnRjoEZA3qR4QCRu92Llbzh+Ig==} cpu: [arm64] os: [linux] libc: [musl] - '@rslint/native-linux-x64-gnu@0.8.0': - resolution: {integrity: sha512-wfc/UfnuTBAofwLPK5MLB2Hus1YYnsxP2MVchp380fUvMfQuGFPzz1WOAUY66zqrsrDKpUJsh3V1bx7c8DTlJA==} + '@rslint/native-linux-x64-gnu@0.8.1': + resolution: {integrity: sha512-9uh4XygsKs2lj7JWM2yi92qjrgrXM7slppAgTQnFfkiRoKASVt4M2anSiJfs2v5hU3UhsmVotXAOYtWoV5Hd3g==} cpu: [x64] os: [linux] libc: [glibc] - '@rslint/native-linux-x64-musl@0.8.0': - resolution: {integrity: sha512-MTYcAMz6IZWb6ZmLo12pakCBA8mS3EW9cOI0jd3At6vs0Yia9YbeOAUiWbIC4Z9yyp75b8ZQCQMRSnY6rDnbaA==} + '@rslint/native-linux-x64-musl@0.8.1': + resolution: {integrity: sha512-pcWlxs9ZLaETAoDaYcO6f8jeuE+nZliIVrhCJ1eWX+aTB+WPKHVHK6dFMPjxqsvUtwbK1zfpTeo8rOaeGRrSfQ==} cpu: [x64] os: [linux] libc: [musl] - '@rslint/native-win32-arm64-msvc@0.8.0': - resolution: {integrity: sha512-hids2jgNWBxZf2mSBLZJxubWRLWlJapEfeJHVokzjpRpBZZNv7O06enoyXSb4Lswff9WaHssIqu1sfZIc9lC2g==} + '@rslint/native-win32-arm64-msvc@0.8.1': + resolution: {integrity: sha512-GGRcKGBOQs7WsxSfXWRQnY15nRyikaDajWoefhKnYVj+AMg6BEWWsdH3Q2xOOuVMGNCC/SoXUAGb9cGpV7Smdg==} cpu: [arm64] os: [win32] - '@rslint/native-win32-x64-msvc@0.8.0': - resolution: {integrity: sha512-bun7uURKl6NdChwmw/i2mk3Yj9klZQyh1uRbIQG0RDEJ9oTIbU5M3c7K5sd/Rukat0TVCGgbBAzR+YB0DAXPZQ==} + '@rslint/native-win32-x64-msvc@0.8.1': + resolution: {integrity: sha512-rokvuC3MKTNMbGU5eh/p6a715xzl1yZvjh9gQByNPKGHrF3OUmqN1c6QGCtlNU8HGHekvMS9dUNzjTCoMenZjQ==} cpu: [x64] os: [win32] @@ -664,41 +664,41 @@ snapshots: - '@typescript/native-preview' - core-js - '@rslint/core@0.8.0': + '@rslint/core@0.8.1': dependencies: picomatch: 4.0.5 optionalDependencies: - '@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.8.1 + '@rslint/native-darwin-x64': 0.8.1 + '@rslint/native-linux-arm64-gnu': 0.8.1 + '@rslint/native-linux-arm64-musl': 0.8.1 + '@rslint/native-linux-x64-gnu': 0.8.1 + '@rslint/native-linux-x64-musl': 0.8.1 + '@rslint/native-win32-arm64-msvc': 0.8.1 + '@rslint/native-win32-x64-msvc': 0.8.1 - '@rslint/native-darwin-arm64@0.8.0': + '@rslint/native-darwin-arm64@0.8.1': optional: true - '@rslint/native-darwin-x64@0.8.0': + '@rslint/native-darwin-x64@0.8.1': optional: true - '@rslint/native-linux-arm64-gnu@0.8.0': + '@rslint/native-linux-arm64-gnu@0.8.1': optional: true - '@rslint/native-linux-arm64-musl@0.8.0': + '@rslint/native-linux-arm64-musl@0.8.1': optional: true - '@rslint/native-linux-x64-gnu@0.8.0': + '@rslint/native-linux-x64-gnu@0.8.1': optional: true - '@rslint/native-linux-x64-musl@0.8.0': + '@rslint/native-linux-x64-musl@0.8.1': optional: true - '@rslint/native-win32-arm64-msvc@0.8.0': + '@rslint/native-win32-arm64-msvc@0.8.1': optional: true - '@rslint/native-win32-x64-msvc@0.8.0': + '@rslint/native-win32-x64-msvc@0.8.1': optional: true '@rspack/binding-darwin-arm64@2.1.10': diff --git a/rslint.config.ts b/rslint.config.ts index fe287f6..c0a52f6 100644 --- a/rslint.config.ts +++ b/rslint.config.ts @@ -1,12 +1,24 @@ -import { defineConfig, js, ts } from '@rslint/core'; +import { defineConfig, globals, js, ts } from '@rslint/core'; export default defineConfig([ js.configs.recommended, ts.configs.recommended, { - files: ['client/**/*', 'test/**/*'], + files: ['client/**/*'], rules: { 'no-undef': 'off', }, }, + { + files: ['**/*.test.{ts,tsx}'], + languageOptions: { + globals: globals.rstest, + }, + }, + { + files: ['test/fixtures/url/**/*.mjs'], + languageOptions: { + globals: globals.browser, + }, + }, ]); From 75ad9ad12530c3ba922b797e1fc0790d4cd2a504 Mon Sep 17 00:00:00 2001 From: neverland Date: Thu, 20 Aug 2026 15:46:41 +0800 Subject: [PATCH 3/5] chore: replace no-undef overrides with globals --- rslint.config.ts | 30 ++++++++++++++++++++++++++++-- 1 file changed, 28 insertions(+), 2 deletions(-) diff --git a/rslint.config.ts b/rslint.config.ts index c0a52f6..b59df2d 100644 --- a/rslint.config.ts +++ b/rslint.config.ts @@ -5,8 +5,34 @@ export default defineConfig([ ts.configs.recommended, { files: ['client/**/*'], - rules: { - 'no-undef': 'off', + languageOptions: { + globals: globals.browser, + }, + }, + { + files: ['client/reactRefresh.js'], + languageOptions: { + globals: { + __react_refresh_test__: 'readonly', + }, + }, + }, + { + files: ['client/reactRefreshEntry.js'], + languageOptions: { + globals: { + ...globals.rspack, + __react_refresh_library__: 'readonly', + process: 'readonly', + }, + }, + }, + { + files: ['client/refreshUtils.js'], + languageOptions: { + globals: { + __reload_on_runtime_errors__: 'readonly', + }, }, }, { From bb5f9c0f16002e9e6f86f8401bc4d4874397dc4b Mon Sep 17 00:00:00 2001 From: neverland Date: Thu, 20 Aug 2026 22:28:39 +0800 Subject: [PATCH 4/5] chore: consolidate browser globals config --- rslint.config.ts | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/rslint.config.ts b/rslint.config.ts index b59df2d..708efb2 100644 --- a/rslint.config.ts +++ b/rslint.config.ts @@ -4,7 +4,7 @@ export default defineConfig([ js.configs.recommended, ts.configs.recommended, { - files: ['client/**/*'], + files: ['client/**/*', 'test/fixtures/url/**/*.mjs'], languageOptions: { globals: globals.browser, }, @@ -41,10 +41,4 @@ export default defineConfig([ globals: globals.rstest, }, }, - { - files: ['test/fixtures/url/**/*.mjs'], - languageOptions: { - globals: globals.browser, - }, - }, ]); From d4c5f0aea549b6fc33cba17a66c360800eb14b99 Mon Sep 17 00:00:00 2001 From: neverland Date: Fri, 21 Aug 2026 10:23:37 +0800 Subject: [PATCH 5/5] chore: consolidate client globals config --- client/refreshUtils.js | 1 - rslint.config.ts | 25 +++---------------------- 2 files changed, 3 insertions(+), 23 deletions(-) diff --git a/client/refreshUtils.js b/client/refreshUtils.js index a80d951..dfde53e 100644 --- a/client/refreshUtils.js +++ b/client/refreshUtils.js @@ -1,4 +1,3 @@ -/* global __webpack_require__ */ import { getFamilyByType, isLikelyComponentType, diff --git a/rslint.config.ts b/rslint.config.ts index 708efb2..3248b98 100644 --- a/rslint.config.ts +++ b/rslint.config.ts @@ -5,33 +5,14 @@ export default defineConfig([ ts.configs.recommended, { files: ['client/**/*', 'test/fixtures/url/**/*.mjs'], - languageOptions: { - globals: globals.browser, - }, - }, - { - files: ['client/reactRefresh.js'], - languageOptions: { - globals: { - __react_refresh_test__: 'readonly', - }, - }, - }, - { - files: ['client/reactRefreshEntry.js'], languageOptions: { globals: { + ...globals.browser, ...globals.rspack, + __react_refresh_test__: 'readonly', __react_refresh_library__: 'readonly', - process: 'readonly', - }, - }, - }, - { - files: ['client/refreshUtils.js'], - languageOptions: { - globals: { __reload_on_runtime_errors__: 'readonly', + process: 'readonly', }, }, },