mirror of
https://github.com/certd/certd.git
synced 2026-06-16 14:27:32 +08:00
chore: eslint
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
"plugins": [
|
||||
"@typescript-eslint"
|
||||
],
|
||||
"ignorePatterns": ["dist"],
|
||||
"extends": [
|
||||
"plugin:@typescript-eslint/recommended",
|
||||
"plugin:prettier/recommended",
|
||||
@@ -16,6 +17,8 @@
|
||||
"@typescript-eslint/ban-ts-comment": "off",
|
||||
"@typescript-eslint/ban-ts-ignore": "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) {
|
||||
let { projectId, userId } = await this.getProjectUserIdWrite();
|
||||
const { projectId, userId: uid } = await this.getProjectUserIdWrite();
|
||||
let userId = uid;
|
||||
if (projectId) {
|
||||
return await callback({ userId, projectId });
|
||||
}
|
||||
|
||||
@@ -126,7 +126,7 @@ export class VolcengineClient {
|
||||
return service;
|
||||
}
|
||||
|
||||
async getDCDNService(opts?: {}) {
|
||||
async getDCDNService(opts?: Record<string, never>) {
|
||||
const CommonService = await this.getServiceCls();
|
||||
|
||||
const service = new CommonService({
|
||||
|
||||
@@ -55,7 +55,7 @@ export class WangsuAccess extends BaseAccess {
|
||||
return "ok";
|
||||
}
|
||||
|
||||
async getCertList(req: {}) {
|
||||
async getCertList(req: Record<string, never>) {
|
||||
/**
|
||||
* certificate-id
|
||||
* name
|
||||
|
||||
Reference in New Issue
Block a user