diff --git a/eslint.config.mjs b/eslint.config.mjs index 997bb92..d71b5e2 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -27,7 +27,6 @@ export default [ { ignoreRestSiblings: true }, ], "@typescript-eslint/no-shadow": ["warn", {}], - "no-unused-vars": "off", "no-shadow": "off", semi: "error", eqeqeq: ["error", "always"], diff --git a/package.json b/package.json index 5646265..c09c291 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,7 @@ "build:cjs": "tsc -p tsconfig.cjs.json", "test": "jest", "fmt": "prettier --write \"./**/*.ts\"", - "lint": "eslint ./src" + "lint": "eslint ./src && prettier --check \"./**/*.ts\"" }, "dependencies": { "loglevel": "^1.9.2" diff --git a/src/types/requestArgs.ts b/src/types/requestArgs.ts index c801181..d787539 100644 --- a/src/types/requestArgs.ts +++ b/src/types/requestArgs.ts @@ -37,7 +37,6 @@ export function payloadJSON(payload?: RequestPayload): string { return JSON.stringify(payloadRecords(payload)); } -// eslint-disable-next-line @typescript-eslint/no-explicit-any function payloadRecords(payload?: RequestPayload): Record { if (payload !== undefined) { if ("query_parameters" in payload) { @@ -55,7 +54,6 @@ function payloadRecords(payload?: RequestPayload): Record { return {}; } -/* eslint-disable @typescript-eslint/no-explicit-any */ // TODO - this is a "dirty" hack to trick the compiler into thinking the types are well defined. interface IntermediaryRequestPayload { query_parameters?: Array<{ name: string; value: any }>; @@ -95,7 +93,6 @@ export function payloadSearchParams(payload?: RequestPayload): Record(obj: T, defaults: Partial): T { - // eslint-disable-next-line @typescript-eslint/no-explicit-any const result: any = { ...obj }; for (const key in defaults) { if (result[key] === undefined) {