mirror of
https://github.com/zoriya/flood.git
synced 2026-06-01 18:47:44 +00:00
style: add new rule for imports (#785)
This commit is contained in:
@@ -1,11 +1,10 @@
|
||||
import {EventEmitter} from 'events';
|
||||
import type TypedEmitter from 'typed-emitter';
|
||||
import {EventEmitter} from 'node:events';
|
||||
|
||||
import type {Disks} from '@shared/types/DiskUsage';
|
||||
|
||||
import {isPlatformSupported, diskUsage} from '../util/diskUsageUtil';
|
||||
import type TypedEmitter from 'typed-emitter';
|
||||
|
||||
import type {SupportedPlatform} from '../util/diskUsageUtil';
|
||||
import {diskUsage, isPlatformSupported} from '../util/diskUsageUtil';
|
||||
|
||||
export interface DiskUsageSummary {
|
||||
id: number;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import type {TransferData, TransferSnapshot} from '@shared/types/TransferData';
|
||||
import {setInterval} from 'node:timers';
|
||||
|
||||
import Datastore from '@seald-io/nedb';
|
||||
import {setInterval} from 'timers';
|
||||
import type {TransferData, TransferSnapshot} from '@shared/types/TransferData';
|
||||
|
||||
import config from '../../config';
|
||||
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import type {Response} from 'express';
|
||||
|
||||
import type {ServerEvents} from '@shared/types/ServerEvents';
|
||||
import type {Response} from 'express';
|
||||
|
||||
class ServerEvent {
|
||||
res: Response;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import fs from 'fs';
|
||||
import path from 'path';
|
||||
import fs from 'node:fs';
|
||||
import path from 'node:path';
|
||||
|
||||
import config from '../../config';
|
||||
|
||||
|
||||
@@ -1,15 +1,15 @@
|
||||
import {argon2id, argon2Verify} from 'hash-wasm';
|
||||
import crypto from 'crypto';
|
||||
import crypto from 'node:crypto';
|
||||
import fs from 'node:fs';
|
||||
import path from 'node:path';
|
||||
|
||||
import Datastore from '@seald-io/nedb';
|
||||
import fs from 'fs';
|
||||
import path from 'path';
|
||||
import {argon2id, argon2Verify} from 'hash-wasm';
|
||||
|
||||
import {AccessLevel} from '../../shared/schema/constants/Auth';
|
||||
import config from '../../config';
|
||||
import {bootstrapServicesForUser, destroyUserServices} from '../services';
|
||||
|
||||
import type {ClientConnectionSettings} from '../../shared/schema/ClientConnectionSettings';
|
||||
import type {Credentials, UserInDatabase} from '../../shared/schema/Auth';
|
||||
import type {ClientConnectionSettings} from '../../shared/schema/ClientConnectionSettings';
|
||||
import {AccessLevel} from '../../shared/schema/constants/Auth';
|
||||
import {bootstrapServicesForUser, destroyUserServices} from '../services';
|
||||
|
||||
const hashPassword = async (password: string): Promise<string> => {
|
||||
return argon2id({
|
||||
|
||||
Reference in New Issue
Block a user