diff --git a/eslint.config.js b/eslint.config.js index 1454869..264e84d 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -20,6 +20,9 @@ export default [ 'navigator': 'readonly', 'crypto': 'readonly', 'setTimeout': 'readonly', + 'clearTimeout': 'readonly', + 'setInterval': 'readonly', + 'clearInterval': 'readonly', 'alert': 'readonly', 'confirm': 'readonly', 'prompt': 'readonly', @@ -27,9 +30,20 @@ export default [ 'localStorage': 'readonly', 'sessionStorage': 'readonly', 'indexedDB': 'readonly', + 'IDBDatabase': 'readonly', + 'IDBTransaction': 'readonly', + 'IDBObjectStore': 'readonly', + 'IDBRequest': 'readonly', 'customElements': 'readonly', 'requestAnimationFrame': 'readonly', - 'setInterval': 'readonly' + 'cancelAnimationFrame': 'readonly', + 'performance': 'readonly', + 'WebAssembly': 'readonly', + 'btoa': 'readonly', + 'atob': 'readonly', + 'self': 'readonly', + 'SharedWorker': 'readonly', + 'Worker': 'readonly' } }, plugins: { @@ -74,13 +88,35 @@ export default [ 'no-await-in-loop': 'off' // Permettre await dans les boucles pour l'instant } }, + { + files: ['**/*.worker.ts', '**/*.worker.js'], + languageOptions: { + globals: { + 'self': 'readonly', + 'postMessage': 'readonly', + 'onmessage': 'readonly', + 'importScripts': 'readonly', + 'btoa': 'readonly', + 'atob': 'readonly', + 'crypto': 'readonly', + 'console': 'readonly' + } + } + }, { ignores: [ 'dist/', 'node_modules/', '*.js', + '!eslint.config.js', 'pkg/', - 'vite.config.ts' + 'vite.config.ts', + 'test-browser/', + 'logs/', + 'coverage/', + '.nyc_output/', + '**/*.test.ts', + '**/*.spec.ts' ] } ];