Skip to content

Commit

Permalink
style: lint updates
Browse files Browse the repository at this point in the history
  • Loading branch information
kukhariev committed Jul 14, 2023
1 parent cd05f22 commit bd080a9
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -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': [
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 4 additions & 1 deletion packages/core/src/utils/cache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@ export class Cache<T> {
* @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;
}

Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/utils/validator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export class Validator<T> {
}
}

async verify(t: T): Promise<void | never> {
async verify(t: T): Promise<void> {
for (const [code, validator] of Object.entries(this._validators)) {
if (!(await validator.isValid(t))) {
return Promise.reject({
Expand Down

0 comments on commit bd080a9

Please sign in to comment.