1
0
mirror of https://github.com/ZeroCatDev/Classworks.git synced 2026-02-04 16:03:10 +00:00

chore: inline eslint globals

Co-authored-by: Sunwuyuan <88357633+Sunwuyuan@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot] 2025-12-29 12:40:19 +00:00
parent 730db45387
commit aa2b28dc90

View File

@ -1,6 +1,5 @@
import js from '@eslint/js' import js from '@eslint/js'
import pluginVue from 'eslint-plugin-vue' import pluginVue from 'eslint-plugin-vue'
import globals from 'globals'
export default [ export default [
{ {
@ -19,9 +18,25 @@ export default [
{ {
languageOptions: { languageOptions: {
globals: { globals: {
...globals.browser, window: 'readonly',
...globals.node, document: 'readonly',
...globals.serviceworker, 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: { rules: {