Skip to content

Commit

Permalink
fix(lint): fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Adrianmjim authored and renovate[bot] committed Nov 6, 2023
1 parent dbbbca7 commit e388680
Show file tree
Hide file tree
Showing 148 changed files with 193 additions and 192 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ ENV PATH="$PNPM_HOME:$PATH"
RUN corepack enable
COPY . /usr/src/app
WORKDIR /usr/src/app
RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install
RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --no-frozen-lockfile
RUN pnpm run -r build
RUN pnpm deploy --filter=api-graphql --prod /prod/api-graphql
RUN pnpm deploy --filter=api-grpc --prod /prod/api-grpc
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
},
"homepage": "https://github.com/Adrianmjim/nestjs-api-example#readme",
"devDependencies": {
"@nestjs-api-example/api-graphql": "workspace:*",
"@nestjs-api-example/api-grpc": "workspace:*",
"@nestjs-api-example/api-rest": "workspace:*",
"@nestjs-api-example/core": "workspace:*",
Expand Down
2 changes: 1 addition & 1 deletion packages/api-graphql/src/AppModule.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { AppConfigModule } from '@nestjs-api-example/core/modules';
import { ApolloDriver } from '@nestjs/apollo';
import { Module } from '@nestjs/common';
import { GraphQLModule } from '@nestjs/graphql';
import { AppConfigModule } from '@nestjs-api-example/core/modules';
import { DateTimeResolver, PositiveIntResolver, UUIDResolver, VoidResolver } from 'graphql-scalars';

import { AppController } from './AppController';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { CatUpdateOneCommand } from '@nestjs-api-example/core/commands';

import { CatFindQueryFixtures } from '../query/CatFindQueryFixtures';
import { CatSetCommandFixtures } from './CatSetCommandFixtures';
import { CatFindQueryFixtures } from '../query/CatFindQueryFixtures';

export class CatUpdateOneCommandFixtures {
public static get any(): CatUpdateOneCommand {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import { jest, beforeAll, afterAll, describe, expect, it } from '@jest/globals';

import { QueryBus, CommandBus } from '@nestjs/cqrs';
import { CatDeleteCommand } from '@nestjs-api-example/core/commands';
import { Cat } from '@nestjs-api-example/core/models';
import { CatFindOneQuery } from '@nestjs-api-example/core/queries';
import { QueryBus, CommandBus } from '@nestjs/cqrs';

import { DeleteOneCatResolver } from './DeleteOneCatResolver';
import { EntityNotFoundException } from '../../../../common/domain/exception/EntityNotFoundException';
import { CatDeleteCommandFixtures } from '../../../fixtures/domain/command/CatDeleteCommandFixtures';
import { CatFixtures } from '../../../fixtures/domain/model/CatFixtures';
import { CatFindOneQueryFixtures } from '../../../fixtures/domain/query/CatFindOneQueryFixtures';
import { DeleteOneCatResolver } from './DeleteOneCatResolver';

describe(DeleteOneCatResolver.name, () => {
let deleteOneCatResolver: DeleteOneCatResolver;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { CommandBus, QueryBus } from '@nestjs/cqrs';
import { Args, Resolver } from '@nestjs/graphql';
import { CatDeleteCommand } from '@nestjs-api-example/core/commands';
import { Cat } from '@nestjs-api-example/core/models';
import { CatFindOneQuery } from '@nestjs-api-example/core/queries';
import { CommandBus, QueryBus } from '@nestjs/cqrs';
import { Args, Resolver } from '@nestjs/graphql';

import { EntityNotFoundException } from '../../../../common/domain/exception/EntityNotFoundException';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import { jest, beforeAll, afterAll, describe, expect, it } from '@jest/globals';

import { QueryBus } from '@nestjs/cqrs';
import { Cat } from '@nestjs-api-example/core/models';
import { CatFindOneQuery } from '@nestjs-api-example/core/queries';
import { QueryBus } from '@nestjs/cqrs';

import { FindOneCatResolver } from './FindOneCatResolver';
import { EntityNotFoundException } from '../../../../common/domain/exception/EntityNotFoundException';
import { CatFixtures } from '../../../fixtures/domain/model/CatFixtures';
import { CatFindOneQueryFixtures } from '../../../fixtures/domain/query/CatFindOneQueryFixtures';
import { FindOneCatResolver } from './FindOneCatResolver';

describe(FindOneCatResolver.name, () => {
let findOneCatResolver: FindOneCatResolver;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Cat } from '@nestjs-api-example/core/models';
import { CatFindOneQuery } from '@nestjs-api-example/core/queries';
import { QueryBus } from '@nestjs/cqrs';
import { Args, Resolver } from '@nestjs/graphql';
import { Cat } from '@nestjs-api-example/core/models';
import { CatFindOneQuery } from '@nestjs-api-example/core/queries';

import { EntityNotFoundException } from '../../../../common/domain/exception/EntityNotFoundException';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import { jest, beforeAll, afterAll, describe, expect, it } from '@jest/globals';

import { CommandBus } from '@nestjs/cqrs';
import { CatInsertOneCommand } from '@nestjs-api-example/core/commands';
import { Cat } from '@nestjs-api-example/core/models';
import { CommandBus } from '@nestjs/cqrs';

import { InsertOneCatResolver } from './InsertOneCatResolver';
import { CatInsertOneCommandFixtures } from '../../../fixtures/domain/command/CatInsertOneCommandFixtures';
import { CatFixtures } from '../../../fixtures/domain/model/CatFixtures';
import { InsertOneCatGraphQlInputFixtures } from '../../../fixtures/infrastructure/graphql/model/InsertOneCatGraphQlInputFixtures';
import { InsertOneCatGraphQlInput } from '../model/InsertOneCatGraphQlInput';
import { InsertOneCatResolver } from './InsertOneCatResolver';

describe(InsertOneCatResolver.name, () => {
let insertOneCatResolver: InsertOneCatResolver;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { CatInsertOneCommand } from '@nestjs-api-example/core/commands';
import { Cat } from '@nestjs-api-example/core/models';
import { CommandBus } from '@nestjs/cqrs';
import { Args, Mutation, Resolver } from '@nestjs/graphql';
import { CatInsertOneCommand } from '@nestjs-api-example/core/commands';
import { Cat } from '@nestjs-api-example/core/models';

import { InsertOneCatGraphQlInput } from '../model/InsertOneCatGraphQlInput';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import { jest, beforeAll, afterAll, describe, expect, it } from '@jest/globals';

import { QueryBus } from '@nestjs/cqrs';
import { Pagination, Cat } from '@nestjs-api-example/core/models';
import { CatPaginateFindQuery } from '@nestjs-api-example/core/queries';
import { QueryBus } from '@nestjs/cqrs';

import { PaginateFindCatResolver } from './PaginateFindCatResolver';
import { CatPaginateFindQueryFixtures } from '../../../fixtures/domain/query/CatPaginateFindQueryFixtures';
import { PaginateFindCatGraphQlInputFixtures } from '../../../fixtures/infrastructure/graphql/model/PaginateFindCatGraphQlInputFixtures';
import { PaginateFindCatGraphQlInput } from '../model/PaginateFindCatGraphQlInput';
import { PaginateFindCatResolver } from './PaginateFindCatResolver';

describe(PaginateFindCatResolver.name, () => {
let paginateFindCatResolver: PaginateFindCatResolver;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Pagination, Cat } from '@nestjs-api-example/core/models';
import { CatFindQuery, CatPaginateFindQuery } from '@nestjs-api-example/core/queries';
import { QueryBus } from '@nestjs/cqrs';
import { Args, Query, Resolver } from '@nestjs/graphql';
import { Pagination, Cat } from '@nestjs-api-example/core/models';
import { CatFindQuery, CatPaginateFindQuery } from '@nestjs-api-example/core/queries';

import { PaginateFindCatGraphQlInput } from '../model/PaginateFindCatGraphQlInput';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import { jest, describe, beforeAll, afterAll, expect, it } from '@jest/globals';

import { CatUpdateOneCommand } from '@nestjs-api-example/core/commands';
import { CommandBus } from '@nestjs/cqrs';
import { CatUpdateOneCommand } from '@nestjs-api-example/core/commands';

import { UpdateOneCatResolver } from './UpdateOneCatResolver';
import { CatUpdateOneCommandFixtures } from '../../../fixtures/domain/command/CatUpdateOneCommandFixtures';
import { CatFixtures } from '../../../fixtures/domain/model/CatFixtures';
import { UpdateOneCatGraphQlInputFixtures } from '../../../fixtures/infrastructure/graphql/model/UpdateOneCatGraphQlInputFixtures';
import { UpdateOneCatGraphQlInput } from '../model/UpdateOneCatGraphQlInput';
import { UpdateOneCatResolver } from './UpdateOneCatResolver';

describe(UpdateOneCatResolver.name, () => {
let updateOneCatResolver: UpdateOneCatResolver;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { CatSetCommand, CatUpdateOneCommand } from '@nestjs-api-example/core/commands';
import { CatFindQuery } from '@nestjs-api-example/core/queries';
import { CommandBus } from '@nestjs/cqrs';
import { Resolver, Mutation, Args } from '@nestjs/graphql';
import { CatSetCommand, CatUpdateOneCommand } from '@nestjs-api-example/core/commands';
import { CatFindQuery } from '@nestjs-api-example/core/queries';

import { UpdateOneCatGraphQlInput } from '../model/UpdateOneCatGraphQlInput';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { CatUpdateCommand } from '@nestjs-api-example/core/commands';
import { CatCoreModule } from '@nestjs-api-example/core/modules';
import { Module, Provider } from '@nestjs/common';
import { CqrsModule } from '@nestjs/cqrs';
import { CatUpdateCommand } from '@nestjs-api-example/core/commands';
import { CatCoreModule } from '@nestjs-api-example/core/modules';

import { DeleteOneCatResolver } from '../graphql/resolver/DeleteOneCatResolver';
import { FindOneCatResolver } from '../graphql/resolver/FindOneCatResolver';
Expand Down
2 changes: 1 addition & 1 deletion packages/api-graphql/src/main.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { AppConfig } from '@nestjs-api-example/core/models';
import { ValidationPipe } from '@nestjs/common';
import { NestFactory } from '@nestjs/core';
import { FastifyAdapter, NestFastifyApplication } from '@nestjs/platform-fastify';
import { AppConfig } from '@nestjs-api-example/core/models';

import { AppModule } from './AppModule';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { CatUpdateOneCommand } from '@nestjs-api-example/core/commands';

import { CatFindQueryFixtures } from '../query/CatFindQueryFixtures';
import { CatSetCommandFixtures } from './CatSetCommandFixtures';
import { CatFindQueryFixtures } from '../query/CatFindQueryFixtures';

export class CatUpdateOneCommandFixtures {
public static get any(): CatUpdateOneCommand {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
import { afterAll, beforeAll, describe, expect, it, jest } from '@jest/globals';

import { status } from '@grpc/grpc-js';
import { CommandBus, QueryBus } from '@nestjs/cqrs';
import { RpcException } from '@nestjs/microservices';
import { CatDeleteCommand } from '@nestjs-api-example/core/commands';
import { Cat } from '@nestjs-api-example/core/models';
import { CatFindOneQuery } from '@nestjs-api-example/core/queries';
import { CommandBus, QueryBus } from '@nestjs/cqrs';
import { RpcException } from '@nestjs/microservices';

import { DeleteOneCatGrpcController } from './DeleteOneCatGrpcController';
import { CatDeleteCommandFixtures } from '../../../fixtures/domain/command/CatDeleteCommandFixtures';
import { CatFixtures } from '../../../fixtures/domain/model/CatFixtures';
import { CatFindOneQueryFixtures } from '../../../fixtures/domain/query/CatFindOneQueryFixtures';
import { DeleteOneCatGrpcFixtures } from '../../../fixtures/infrastructure/grpc/model/DeleteOneCatGrpcFixtures';
import { DeleteOneCatGrpc } from '../model/DeleteOneCatGrpc';
import { DeleteOneCatGrpcController } from './DeleteOneCatGrpcController';

describe(DeleteOneCatGrpcController.name, () => {
let deleteOneCatGrpcController: DeleteOneCatGrpcController;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { status } from '@grpc/grpc-js';
import { CatDeleteCommand } from '@nestjs-api-example/core/commands';
import { Cat } from '@nestjs-api-example/core/models';
import { CatFindOneQuery } from '@nestjs-api-example/core/queries';
import { Controller, UsePipes, ValidationPipe } from '@nestjs/common';
import { CommandBus, QueryBus } from '@nestjs/cqrs';
import { GrpcMethod, RpcException } from '@nestjs/microservices';
import { CatDeleteCommand } from '@nestjs-api-example/core/commands';
import { Cat } from '@nestjs-api-example/core/models';
import { CatFindOneQuery } from '@nestjs-api-example/core/queries';

import { DeleteOneCatGrpc } from '../model/DeleteOneCatGrpc';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
import { afterAll, beforeAll, describe, expect, it, jest } from '@jest/globals';

import { status } from '@grpc/grpc-js';
import { Cat } from '@nestjs-api-example/core/models';
import { CatFindOneQuery } from '@nestjs-api-example/core/queries';
import { QueryBus } from '@nestjs/cqrs';
import { RpcException } from '@nestjs/microservices';
import { Cat } from '@nestjs-api-example/core/models';
import { CatFindOneQuery } from '@nestjs-api-example/core/queries';

import { FindOneCatGrpcController } from './FindOneCatGrpcController';
import { CatFixtures } from '../../../fixtures/domain/model/CatFixtures';
import { CatFindOneQueryFixtures } from '../../../fixtures/domain/query/CatFindOneQueryFixtures';
import { FindOneCatGrpcFixtures } from '../../../fixtures/infrastructure/grpc/model/FindOneCatGrpcFixtures';
import { FindOneCatGrpc } from '../model/FindOneCatGrpc';
import { FindOneCatGrpcController } from './FindOneCatGrpcController';

describe(FindOneCatGrpcController.name, () => {
let findOneCatGrpcController: FindOneCatGrpcController;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { status } from '@grpc/grpc-js';
import { Cat } from '@nestjs-api-example/core/models';
import { CatFindOneQuery } from '@nestjs-api-example/core/queries';
import { Controller, UsePipes, ValidationPipe } from '@nestjs/common';
import { QueryBus } from '@nestjs/cqrs';
import { GrpcMethod, RpcException } from '@nestjs/microservices';
import { Cat } from '@nestjs-api-example/core/models';
import { CatFindOneQuery } from '@nestjs-api-example/core/queries';

import { FindOneCatGrpc } from '../model/FindOneCatGrpc';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import { afterAll, beforeAll, describe, expect, it, jest } from '@jest/globals';

import { CommandBus } from '@nestjs/cqrs';
import { CatInsertCommand } from '@nestjs-api-example/core/commands';
import { Cat } from '@nestjs-api-example/core/models';
import { CommandBus } from '@nestjs/cqrs';
import { firstValueFrom, from } from 'rxjs';

import { InsertCatGrpcController } from './InsertCatGrpcController';
import { CatInsertCommandFixtures } from '../../../fixtures/domain/command/CatInsertCommandFixtures';
import { CatFixtures } from '../../../fixtures/domain/model/CatFixtures';
import { InsertOneCatGrpcFixture } from '../../../fixtures/infrastructure/grpc/model/InsertOneCatGrpcFixtures';
import { InsertOneCatGrpc } from '../model/InsertOneCatGrpc';
import { InsertCatGrpcController } from './InsertCatGrpcController';

describe(InsertCatGrpcController.name, () => {
let insertCatGrpcController: InsertCatGrpcController;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { CatInsertOneCommand, CatInsertCommand } from '@nestjs-api-example/core/commands';
import { Cat } from '@nestjs-api-example/core/models';
import { Controller } from '@nestjs/common';
import { CommandBus } from '@nestjs/cqrs';
import { GrpcStreamMethod } from '@nestjs/microservices';
import { CatInsertOneCommand, CatInsertCommand } from '@nestjs-api-example/core/commands';
import { Cat } from '@nestjs-api-example/core/models';
import { Observable, map, mergeMap, toArray } from 'rxjs';

import { InsertOneCatGrpc } from '../model/InsertOneCatGrpc';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import { afterAll, beforeAll, describe, expect, it, jest } from '@jest/globals';

import { CommandBus } from '@nestjs/cqrs';
import { CatInsertOneCommand } from '@nestjs-api-example/core/commands';
import { Cat } from '@nestjs-api-example/core/models';
import { CommandBus } from '@nestjs/cqrs';

import { InsertOneCatGrpcController } from './InsertOneCatGrpcController';
import { CatInsertOneCommandFixtures } from '../../../fixtures/domain/command/CatInsertOneCommandFixtures';
import { CatFixtures } from '../../../fixtures/domain/model/CatFixtures';
import { InsertOneCatGrpcFixture } from '../../../fixtures/infrastructure/grpc/model/InsertOneCatGrpcFixtures';
import { InsertOneCatGrpc } from '../model/InsertOneCatGrpc';
import { InsertOneCatGrpcController } from './InsertOneCatGrpcController';

describe(InsertOneCatGrpcController.name, () => {
let insertOneCatGrpcController: InsertOneCatGrpcController;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { CatInsertOneCommand } from '@nestjs-api-example/core/commands';
import { Cat } from '@nestjs-api-example/core/models';
import { Controller, UsePipes, ValidationPipe } from '@nestjs/common';
import { CommandBus } from '@nestjs/cqrs';
import { GrpcMethod } from '@nestjs/microservices';
import { CatInsertOneCommand } from '@nestjs-api-example/core/commands';
import { Cat } from '@nestjs-api-example/core/models';

import { InsertOneCatGrpc } from '../model/InsertOneCatGrpc';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import { afterAll, beforeAll, describe, expect, it, jest } from '@jest/globals';

import { CommandBus } from '@nestjs/cqrs';
import { CatInsertOneCommand } from '@nestjs-api-example/core/commands';
import { Cat } from '@nestjs-api-example/core/models';
import { CommandBus } from '@nestjs/cqrs';
import { firstValueFrom, from } from 'rxjs';

import { InsertOneStreamCatGrpcController } from './InsertOneStreamCatGrpcController';
import { CatInsertOneCommandFixtures } from '../../../fixtures/domain/command/CatInsertOneCommandFixtures';
import { CatFixtures } from '../../../fixtures/domain/model/CatFixtures';
import { InsertOneCatGrpcFixture } from '../../../fixtures/infrastructure/grpc/model/InsertOneCatGrpcFixtures';
import { InsertOneCatGrpc } from '../model/InsertOneCatGrpc';
import { InsertOneStreamCatGrpcController } from './InsertOneStreamCatGrpcController';

describe(InsertOneStreamCatGrpcController.name, () => {
let insertOneStreamCatGrpcController: InsertOneStreamCatGrpcController;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { CatInsertOneCommand } from '@nestjs-api-example/core/commands';
import { Cat } from '@nestjs-api-example/core/models';
import { Controller } from '@nestjs/common';
import { CommandBus } from '@nestjs/cqrs';
import { GrpcStreamMethod } from '@nestjs/microservices';
import { CatInsertOneCommand } from '@nestjs-api-example/core/commands';
import { Cat } from '@nestjs-api-example/core/models';
import { Observable, map, mergeMap } from 'rxjs';

import { InsertOneCatGrpc } from '../model/InsertOneCatGrpc';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import { afterAll, beforeAll, describe, expect, it, jest } from '@jest/globals';

import { QueryBus } from '@nestjs/cqrs';
import { Cat, Pagination } from '@nestjs-api-example/core/models';
import { CatPaginateFindQuery } from '@nestjs-api-example/core/queries';
import { QueryBus } from '@nestjs/cqrs';

import { PaginateFindCatGrpcController } from './PaginateFindCatGrpcController';
import { CatFixtures } from '../../../fixtures/domain/model/CatFixtures';
import { CatPaginateFindQueryFixtures } from '../../../fixtures/domain/query/CatPaginateFindQueryFixtures';
import { PaginateFindCatGrpcFixtures } from '../../../fixtures/infrastructure/grpc/model/PaginateFindCatGrpcFixtures';
import { PaginateFindCatGrpc } from '../model/PaginateFindCatGrpc';
import { PaginateFindCatGrpcController } from './PaginateFindCatGrpcController';

describe(PaginateFindCatGrpcController.name, () => {
let paginateFindCatGrpcController: PaginateFindCatGrpcController;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { Pagination, Cat } from '@nestjs-api-example/core/models';
import { CatPaginateFindQuery, CatFindQuery } from '@nestjs-api-example/core/queries';
import { Controller, UsePipes, ValidationPipe } from '@nestjs/common';
import { QueryBus } from '@nestjs/cqrs';
import { GrpcMethod } from '@nestjs/microservices';
import { Pagination, Cat } from '@nestjs-api-example/core/models';
import { CatPaginateFindQuery, CatFindQuery } from '@nestjs-api-example/core/queries';

import { PaginateFindCatGrpc } from '../model/PaginateFindCatGrpc';

Expand Down
Loading

0 comments on commit e388680

Please sign in to comment.