chore: eslint

This commit is contained in:
xiaojunnuo
2026-05-31 02:11:00 +08:00
parent 5d60e6191f
commit 3d960c3869
4 changed files with 8 additions and 4 deletions
+4 -1
View File
@@ -3,6 +3,7 @@
"plugins": [ "plugins": [
"@typescript-eslint" "@typescript-eslint"
], ],
"ignorePatterns": ["dist"],
"extends": [ "extends": [
"plugin:@typescript-eslint/recommended", "plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended", "plugin:prettier/recommended",
@@ -16,6 +17,8 @@
"@typescript-eslint/ban-ts-comment": "off", "@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/ban-ts-ignore": "off", "@typescript-eslint/ban-ts-ignore": "off",
"@typescript-eslint/no-explicit-any": "off", "@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-empty-function": "off" "@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/no-unused-vars": "off",
"@typescript-eslint/no-this-alias": "off"
} }
} }
@@ -271,7 +271,8 @@ export class PipelineController extends CrudController<PipelineService> {
} }
private async checkPermissionCall(callback: any) { private async checkPermissionCall(callback: any) {
let { projectId, userId } = await this.getProjectUserIdWrite(); const { projectId, userId: uid } = await this.getProjectUserIdWrite();
let userId = uid;
if (projectId) { if (projectId) {
return await callback({ userId, projectId }); return await callback({ userId, projectId });
} }
@@ -126,7 +126,7 @@ export class VolcengineClient {
return service; return service;
} }
async getDCDNService(opts?: {}) { async getDCDNService(opts?: Record<string, never>) {
const CommonService = await this.getServiceCls(); const CommonService = await this.getServiceCls();
const service = new CommonService({ const service = new CommonService({
@@ -55,7 +55,7 @@ export class WangsuAccess extends BaseAccess {
return "ok"; return "ok";
} }
async getCertList(req: {}) { async getCertList(req: Record<string, never>) {
/** /**
* certificate-id * certificate-id
* name * name