Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
3 changes: 0 additions & 3 deletions src/types/requestArgs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<string, any> {
if (payload !== undefined) {
if ("query_parameters" in payload) {
Expand All @@ -55,7 +54,6 @@ function payloadRecords(payload?: RequestPayload): Record<string, any> {
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 }>;
Expand Down Expand Up @@ -95,7 +93,6 @@ export function payloadSearchParams(payload?: RequestPayload): Record<string, an
}
return {};
}
/* eslint-enable @typescript-eslint/no-explicit-any */

interface BaseParams {
query_parameters?: QueryParameter[];
Expand Down
1 change: 0 additions & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ export function ageInHours(timestamp: Date | string): number {
* @returns
*/
export function withDefaults<T>(obj: T, defaults: Partial<T>): T {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const result: any = { ...obj };
for (const key in defaults) {
if (result[key] === undefined) {
Expand Down