Improve parsing, regex, and test consistency
Refines regex patterns for URL rewriting and authentication parsing, ensures parseInt uses radix 10 throughout, and updates test mocks and helpers for consistency. Also adds more global variables to ESLint config, improves error handling, and removes unused code in tests.
This commit is contained in:
1 parent
55e99c9eac
commit
d88f1911a6
12 files changed
+42
-45
No files matched your search
@@ -19,6 +19,19 @@ export default [
|
||||
URL: 'readonly',
|
||||
URLSearchParams: 'readonly',
|
||||
console: 'readonly',
|
||||
AbortController: 'readonly',
|
||||
AbortSignal: 'readonly',
|
||||
setTimeout: 'readonly',
|
||||
clearTimeout: 'readonly',
|
||||
setInterval: 'readonly',
|
||||
clearInterval: 'readonly',
|
||||
ReadableStream: 'readonly',
|
||||
WritableStream: 'readonly',
|
||||
TransformStream: 'readonly',
|
||||
TextEncoder: 'readonly',
|
||||
TextDecoder: 'readonly',
|
||||
performance: 'readonly',
|
||||
globalThis: 'readonly',
|
||||
|
||||
// Vitest globals
|
||||
describe: 'readonly',
|
||||
|
||||
Reference in new issue
Block a user