You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-11-23 22:36:32 +02:00
Tools: Implement @typescript-eslint/no-explicit-any rule
This commit is contained in:
@@ -10,6 +10,7 @@ export async function ip() {
|
||||
return ip.ip;
|
||||
}
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- Old code before rule was applied
|
||||
export async function findAvailablePort(tcpPortUsed: any, possiblePorts: number[], extraRandomPortsToTry = 20) {
|
||||
for (let i = 0; i < extraRandomPortsToTry; i++) {
|
||||
possiblePorts.push(Math.floor(8000 + Math.random() * 2000));
|
||||
@@ -26,6 +27,7 @@ export async function findAvailablePort(tcpPortUsed: any, possiblePorts: number[
|
||||
return port;
|
||||
}
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- Old code before rule was applied
|
||||
export function mimeTypeFromHeaders(headers: Record<string, any>) {
|
||||
if (!headers || !headers['content-type']) return null;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user