diff --git a/.releaserc.json b/.releaserc.json index 8aa0def..4f6d6b7 100644 --- a/.releaserc.json +++ b/.releaserc.json @@ -5,18 +5,18 @@ { "preset": "eslint", "releaseRules": [ - { "tag": "FIX", "release": "patch" }, + { "tag": "BREAKING", "release": "major" }, { "tag": "FEAT", "release": "minor" }, { "tag": "UPDATE", "release": "minor" }, { "tag": "UPGRADE", "release": "minor" }, - { "tag": "BREAKING", "release": "major" }, - { "tag": "DOCS", "release": "patch" }, { "tag": "CHORE", "release": "minor" }, - { "tag": "BUILD", "release": "patch" }, { "tag": "REFACTOR", "release": "minor" }, + { "tag": "PERF", "release": "minor" }, + { "tag": "FIX", "release": "patch" }, + { "tag": "DOCS", "release": "patch" }, + { "tag": "BUILD", "release": "patch" }, { "tag": "TEST", "release": "patch" }, - { "tag": "CI", "release": "patch" }, - { "tag": "PERF", "release": "minor" } + { "tag": "CI", "release": "patch" } ] } ], diff --git a/src/clients/inputs/client.service.ts b/src/clients/inputs/client.service.ts index e9e3f83..88582c8 100644 --- a/src/clients/inputs/client.service.ts +++ b/src/clients/inputs/client.service.ts @@ -5,7 +5,6 @@ import { HttpStatus, NotFoundException, InternalServerErrorException, - BadRequestException, } from '@nestjs/common'; import { ClientGrpc } from '@nestjs/microservices'; import { diff --git a/src/clients/pipelines/client.service.ts b/src/clients/pipelines/client.service.ts index 9383eb2..b10af2f 100644 --- a/src/clients/pipelines/client.service.ts +++ b/src/clients/pipelines/client.service.ts @@ -1,6 +1,5 @@ import { BadRequestException, - HttpException, Inject, InternalServerErrorException, OnModuleInit, @@ -41,6 +40,7 @@ export class PipelinesClientService implements OnModuleInit { this.pipelineService.Create(objectSnakeToCamel(createPipelineDto)), ).catch((error: { details: string }) => { if (error.details.includes('INVALID_REQUEST')) { + // eslint-disable-next-line @typescript-eslint/no-unused-vars const [errorType, message] = error.details.split('|'); throw new BadRequestException(message); } diff --git a/src/modules/inputs/inputs.controller.ts b/src/modules/inputs/inputs.controller.ts index 4e47326..cf403eb 100644 --- a/src/modules/inputs/inputs.controller.ts +++ b/src/modules/inputs/inputs.controller.ts @@ -10,7 +10,6 @@ import { import { InputsService } from './inputs.service'; import { InputsClientService } from 'src/clients/inputs/client.service'; import { UpdateInputRequest } from 'src/clients/inputs/interfaces'; -import { InputNewCreateRequest } from '@victorradael/protospack'; import { Permissions } from '../../authentication/permissions.enum'; import { AuthenticateCondition } from 'src/authentication/authentication.decorator'; import { ApiOkResponse, ApiTags } from '@nestjs/swagger';