eslint
This commit is contained in:
parent
8955544593
commit
9d38f9a7b6
91 changed files with 2224 additions and 1400 deletions
64
libs/cache/package.json
vendored
64
libs/cache/package.json
vendored
|
|
@ -1,32 +1,32 @@
|
|||
{
|
||||
"name": "@stock-bot/cache",
|
||||
"version": "1.0.0",
|
||||
"description": "Caching library for Redis and in-memory providers",
|
||||
"main": "dist/index.js",
|
||||
"types": "dist/index.d.ts",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"build": "tsc",
|
||||
"clean": "rimraf dist",
|
||||
"test": "bun test"
|
||||
},
|
||||
"dependencies": {
|
||||
"ioredis": "^5.3.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/node": "^20.11.0",
|
||||
"typescript": "^5.3.0",
|
||||
"bun-types": "^1.2.15"
|
||||
},
|
||||
"exports": {
|
||||
".": {
|
||||
"import": "./dist/index.js",
|
||||
"require": "./dist/index.js",
|
||||
"types": "./dist/index.d.ts"
|
||||
}
|
||||
},
|
||||
"files": [
|
||||
"dist",
|
||||
"README.md"
|
||||
]
|
||||
}
|
||||
{
|
||||
"name": "@stock-bot/cache",
|
||||
"version": "1.0.0",
|
||||
"description": "Caching library for Redis and in-memory providers",
|
||||
"main": "dist/index.js",
|
||||
"types": "dist/index.d.ts",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"build": "tsc",
|
||||
"clean": "rimraf dist",
|
||||
"test": "bun test"
|
||||
},
|
||||
"dependencies": {
|
||||
"ioredis": "^5.3.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/node": "^20.11.0",
|
||||
"typescript": "^5.3.0",
|
||||
"bun-types": "^1.2.15"
|
||||
},
|
||||
"exports": {
|
||||
".": {
|
||||
"import": "./dist/index.js",
|
||||
"require": "./dist/index.js",
|
||||
"types": "./dist/index.d.ts"
|
||||
}
|
||||
},
|
||||
"files": [
|
||||
"dist",
|
||||
"README.md"
|
||||
]
|
||||
}
|
||||
|
|
|
|||
4
libs/cache/src/connection-manager.ts
vendored
4
libs/cache/src/connection-manager.ts
vendored
|
|
@ -173,7 +173,7 @@ export class RedisConnectionManager {
|
|||
try {
|
||||
await connection.ping();
|
||||
details[`shared:${name}`] = true;
|
||||
} catch (error) {
|
||||
} catch (_error) {
|
||||
details[`shared:${name}`] = false;
|
||||
allHealthy = false;
|
||||
}
|
||||
|
|
@ -184,7 +184,7 @@ export class RedisConnectionManager {
|
|||
try {
|
||||
await connection.ping();
|
||||
details[`unique:${name}`] = true;
|
||||
} catch (error) {
|
||||
} catch (_error) {
|
||||
details[`unique:${name}`] = false;
|
||||
allHealthy = false;
|
||||
}
|
||||
|
|
|
|||
2
libs/cache/src/redis-cache.ts
vendored
2
libs/cache/src/redis-cache.ts
vendored
|
|
@ -87,7 +87,7 @@ export class RedisCache implements CacheProvider {
|
|||
}
|
||||
|
||||
private updateStats(hit: boolean, error = false): void {
|
||||
if (!this.enableMetrics) return;
|
||||
if (!this.enableMetrics) {return;}
|
||||
|
||||
if (error) {
|
||||
this.stats.errors++;
|
||||
|
|
|
|||
22
libs/cache/tsconfig.json
vendored
22
libs/cache/tsconfig.json
vendored
|
|
@ -1,13 +1,9 @@
|
|||
{
|
||||
"extends": "../../tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"outDir": "./dist",
|
||||
"rootDir": "./src"
|
||||
},
|
||||
"include": ["src/**/*"],
|
||||
"references": [
|
||||
{ "path": "../types" },
|
||||
{ "path": "../config" },
|
||||
{ "path": "../logger" }
|
||||
]
|
||||
}
|
||||
{
|
||||
"extends": "../../tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"outDir": "./dist",
|
||||
"rootDir": "./src"
|
||||
},
|
||||
"include": ["src/**/*"],
|
||||
"references": [{ "path": "../types" }, { "path": "../config" }, { "path": "../logger" }]
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue