Skip to content

Commit

Permalink
remove eslint-disable's
Browse files Browse the repository at this point in the history
  • Loading branch information
OlivierZal committed Sep 18, 2024
1 parent 2a06873 commit 9fcca58
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
3 changes: 1 addition & 2 deletions src/services/logger/context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ export default abstract class {
protected constructor(config?: InternalAxiosRequestConfig) {
this.method = config?.method?.toUpperCase()
this.url = config?.url
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
this.params = config?.params
this.params = config?.params as unknown
}

public toString(): string {
Expand Down
3 changes: 1 addition & 2 deletions src/services/logger/request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ export default class extends APICallContextData {
public constructor(config?: InternalAxiosRequestConfig) {
super(config)
this.headers = config?.headers
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
this.requestData = config?.data
this.requestData = config?.data as unknown
}
}
6 changes: 2 additions & 4 deletions src/services/logger/response.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@ export default class extends APICallContextData {
super(response?.config)
this.headers = response?.headers
this.status = response?.status
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
this.requestData = response?.config.data
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
this.responseData = response?.data
this.requestData = response?.config.data as unknown
this.responseData = response?.data as unknown
}
}

0 comments on commit 9fcca58

Please sign in to comment.