diff --git a/.eslintrc.js b/.eslintrc.js index aa83d7ce..d9378386 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -23,6 +23,8 @@ module.exports = { ], rules: { 'prettier/prettier': 'warn', + '@typescript-eslint/no-unsafe-declaration-merging': 'off', + '@typescript-eslint/no-redundant-type-constituents': 'off', '@typescript-eslint/adjacent-overload-signatures': 'error', '@typescript-eslint/await-thenable': 'error', '@typescript-eslint/explicit-function-return-type': [ diff --git a/README.md b/README.md index e20e8451..3f031a0e 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ [![commits since latest release][comm-image]][comm-url] Resumable upload middleware for [express](https://github.com/expressjs/express) - and plain node.js. +and plain node.js. Server-side part of [ngx-uploadx](https://github.com/kukhariev/ngx-uploadx) ## ✨ Features diff --git a/packages/core/src/utils/cache.ts b/packages/core/src/utils/cache.ts index 3d6d0a58..d0e0f734 100644 --- a/packages/core/src/utils/cache.ts +++ b/packages/core/src/utils/cache.ts @@ -9,7 +9,10 @@ export class Cache { * @param maxEntries - The maximum number of entries before the cache starts flushing out the old items * @param maxAge - The maximum life of a cached items in seconds */ - constructor(public maxEntries = 1000, readonly maxAge?: number) { + constructor( + public maxEntries = 1000, + readonly maxAge?: number + ) { this._ttl = maxAge ? maxAge * 1000 : 0; } diff --git a/packages/core/src/utils/validator.ts b/packages/core/src/utils/validator.ts index 9d3ce2ee..a0d9eccc 100644 --- a/packages/core/src/utils/validator.ts +++ b/packages/core/src/utils/validator.ts @@ -34,7 +34,7 @@ export class Validator { } } - async verify(t: T): Promise { + async verify(t: T): Promise { for (const [code, validator] of Object.entries(this._validators)) { if (!(await validator.isValid(t))) { return Promise.reject({