mirror of
https://github.com/certd/certd.git
synced 2026-07-20 22:47:32 +08:00
chore: eslint
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user