From aa2b28dc90c58399b348c1a54180bf10f5a05b39 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 29 Dec 2025 12:40:19 +0000 Subject: [PATCH] chore: inline eslint globals Co-authored-by: Sunwuyuan <88357633+Sunwuyuan@users.noreply.github.com> --- eslint.config.js | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/eslint.config.js b/eslint.config.js index af8cda3..837b651 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -1,6 +1,5 @@ import js from '@eslint/js' import pluginVue from 'eslint-plugin-vue' -import globals from 'globals' export default [ { @@ -19,9 +18,25 @@ export default [ { languageOptions: { globals: { - ...globals.browser, - ...globals.node, - ...globals.serviceworker, + window: 'readonly', + document: 'readonly', + navigator: 'readonly', + location: 'readonly', + localStorage: 'readonly', + URL: 'readonly', + URLSearchParams: 'readonly', + CSS: 'readonly', + Notification: 'readonly', + requestAnimationFrame: 'readonly', + setTimeout: 'readonly', + clearTimeout: 'readonly', + setInterval: 'readonly', + clearInterval: 'readonly', + console: 'readonly', + require: 'readonly', + self: 'readonly', + caches: 'readonly', + Blob: 'readonly', }, }, rules: {