Skip to content

Commit bcc9e85

Browse files
committed
fix: address lints
1 parent af118a8 commit bcc9e85

File tree

3 files changed

+6
-8
lines changed

3 files changed

+6
-8
lines changed

.oxlintrc.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,14 @@
22
"$schema": "./node_modules/oxlint/configuration_schema.json",
33
"plugins": ["typescript", "import", "unicorn", "vitest"],
44
"categories": {
5-
"correctness": "warn"
5+
"correctness": "error"
66
},
77
"rules": {
88
"no-nested-ternary": "error",
99
"no-unneeded-ternary": "error",
1010
"no-unused-vars": "error",
1111
"typescript/no-explicit-any": "error",
1212
"typescript/explicit-function-return-type": "warn",
13-
"typescript/no-floating-promises": "off",
14-
"typescript/unbound-method": "off",
1513
"unicorn/prefer-node-protocol": "error",
1614
"unicorn/filename-case": ["error", { "case": "kebabCase" }],
1715
"import/no-cycle": "error"

packages/api/src/env.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,10 +117,10 @@ declare global {
117117
APP_LOG_LEVEL: string;
118118
APP_NILAUTH_INSTANCES: string;
119119
APP_NILAUTH_CHAIN_ID: string;
120-
APP_METRICS_PORT?: number;
120+
APP_METRICS_PORT?: string;
121121
APP_NODE_SECRET_KEY: string;
122122
APP_NODE_PUBLIC_ENDPOINT: string;
123-
APP_PORT: number;
123+
APP_PORT: string;
124124
APP_RATE_LIMIT_ENABLED?: string;
125125
APP_RATE_LIMIT_WINDOW_SECONDS?: string;
126126
APP_RATE_LIMIT_MAX_REQUESTS?: string;

packages/api/src/users/users.mapper.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -214,23 +214,23 @@ export const UserDataMapper = {
214214
*/
215215
export const UserLoggerMapper = {
216216
toCreateDataLogs(collections: UUID[]): UserDataLogs[] {
217-
return collections.map(this.toCreateDataLog);
217+
return collections.map((c) => this.toCreateDataLog(c));
218218
},
219219

220220
toCreateDataLog(collection: UUID): UserDataLogs {
221221
return { op: "create-data", collection: collection.toString() };
222222
},
223223

224224
toDeleteDataLogs(documents: UUID[]): UserDataLogs[] {
225-
return documents.map(this.toDeleteDataLog);
225+
return documents.map((d) => this.toDeleteDataLog(d));
226226
},
227227

228228
toDeleteDataLog(collection: UUID): UserDataLogs {
229229
return { op: "delete-data", collection: collection.toString() };
230230
},
231231

232232
toUpdateDataLogs(documents: UUID[]): UserDataLogs[] {
233-
return documents.map(this.toUpdateDataLog);
233+
return documents.map((d) => this.toUpdateDataLog(d));
234234
},
235235

236236
toUpdateDataLog(collection: UUID): UserDataLogs {

0 commit comments

Comments
 (0)