mirror of
https://github.com/AutoMaker-Org/automaker.git
synced 2026-03-16 21:53:07 +00:00
Comprehensive set of mobile and all improvements phase 1
This commit is contained in:
@@ -51,6 +51,7 @@ const eslintConfig = defineConfig([
|
||||
getComputedStyle: 'readonly',
|
||||
requestAnimationFrame: 'readonly',
|
||||
cancelAnimationFrame: 'readonly',
|
||||
requestIdleCallback: 'readonly',
|
||||
alert: 'readonly',
|
||||
// DOM Element Types
|
||||
HTMLElement: 'readonly',
|
||||
@@ -62,6 +63,8 @@ const eslintConfig = defineConfig([
|
||||
HTMLHeadingElement: 'readonly',
|
||||
HTMLParagraphElement: 'readonly',
|
||||
HTMLImageElement: 'readonly',
|
||||
HTMLLinkElement: 'readonly',
|
||||
HTMLScriptElement: 'readonly',
|
||||
Element: 'readonly',
|
||||
SVGElement: 'readonly',
|
||||
SVGSVGElement: 'readonly',
|
||||
@@ -91,6 +94,7 @@ const eslintConfig = defineConfig([
|
||||
Response: 'readonly',
|
||||
RequestInit: 'readonly',
|
||||
RequestCache: 'readonly',
|
||||
ServiceWorkerRegistration: 'readonly',
|
||||
// Timers
|
||||
setTimeout: 'readonly',
|
||||
setInterval: 'readonly',
|
||||
@@ -138,6 +142,25 @@ const eslintConfig = defineConfig([
|
||||
],
|
||||
},
|
||||
},
|
||||
{
|
||||
files: ['public/sw.js'],
|
||||
languageOptions: {
|
||||
globals: {
|
||||
// Service Worker globals
|
||||
self: 'readonly',
|
||||
caches: 'readonly',
|
||||
fetch: 'readonly',
|
||||
Headers: 'readonly',
|
||||
Response: 'readonly',
|
||||
URL: 'readonly',
|
||||
setTimeout: 'readonly',
|
||||
console: 'readonly',
|
||||
},
|
||||
},
|
||||
rules: {
|
||||
'no-unused-vars': ['warn', { argsIgnorePattern: '^_', caughtErrorsIgnorePattern: '^_' }],
|
||||
},
|
||||
},
|
||||
globalIgnores([
|
||||
'dist/**',
|
||||
'dist-electron/**',
|
||||
|
||||
Reference in New Issue
Block a user