1
0
mirror of https://github.com/ZeroCatDev/Classworks.git synced 2026-02-04 07:53:11 +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 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: {