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:
parent
730db45387
commit
aa2b28dc90
@ -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: {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user