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

chore: add browser globals for eslint

Co-authored-by: Sunwuyuan <88357633+Sunwuyuan@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot] 2025-12-29 12:38:40 +00:00
parent aa0a0550ca
commit 730db45387
3 changed files with 10 additions and 4 deletions

View File

@ -1,5 +1,6 @@
import js from '@eslint/js'
import pluginVue from 'eslint-plugin-vue'
import globals from 'globals'
export default [
{
@ -16,6 +17,13 @@ export default [
...pluginVue.configs['flat/recommended'],
{
languageOptions: {
globals: {
...globals.browser,
...globals.node,
...globals.serviceworker,
},
},
rules: {
'vue/multi-word-component-names': 'off',
},

View File

@ -305,8 +305,6 @@ export default {
return {isMobile: mobile};
},
data() {
const provider = getSetting("server.provider");
const settings = {
server: {
domain: getSetting("server.domain"),

View File

@ -339,7 +339,7 @@
<script setup>
import { ref, computed, onMounted, onUnmounted, nextTick } from 'vue';
import { getSocket, getServerUrl, disconnect, on, off } from '@/utils/socketClient';
import { getSocket, getServerUrl, disconnect } from '@/utils/socketClient';
//
const serverUrl = ref(getServerUrl());
@ -582,7 +582,7 @@ function cleanupSocketListeners() {
if (socket.io?.engine) {
socket.io.engine.off('upgrade', onUpgrade);
}
} catch (e) {
} catch {
//
}