Refactor the app

This commit is contained in:
Schluffe committed 2026-10-28 21:05:47 +01:00
1 parent f53d39ae69
commit 8f82700736
11 files changed
+2032 -235

No files matched your search

+53 -2
View File
@@ -16,8 +16,59 @@
"rules": {
"preset": "recommended",
"nursery": { "noFloatingPromises": "error", "noMisusedPromises": "error" },
"style": { "noNonNullAssertion": "off", "noDescendingSpecificity": "off" },
"style": {
"noNonNullAssertion": "off",
"noDescendingSpecificity": "off",
"noRestrictedImports": {
"level": "error",
"options": {
"paths": {
"./core": {
"message": "only src/core.test.ts imports this export of src/core.ts",
"importNames": [
"CHUNK_SIZE",
"MAX_BUFFERED",
"WINDOW",
"TRACKER_TIMEOUT",
"CONNECT_TIMEOUT",
"MIN_INTERVAL",
"PBKDF2_ITERATIONS",
"PROOF_TIMEOUT",
"MAX_NAME",
"own",
"live",
"deadline",
"stunChoice",
"parse",
"decode",
"CODE_CHARS",
"SALT_WINDOW",
"CODE_LENGTH",
"trackerSalt",
"newCode",
"codeSalt",
"secrets",
"seal",
"unseal",
"stunHint",
"securityCheck",
"fingerprints",
"prove",
"Handshake",
"sendFile",
"receiveFile",
"trackerSocket",
"noTracker"
]
}
}
}
}
},
"a11y": { "useSemanticElements": "off" }
}
}
},
"overrides": [
{ "includes": ["src/core.test.ts"], "linter": { "rules": { "style": { "noRestrictedImports": "off" } } } }
]
}