Skip to content

add guard for routes #40

add guard for routes

add guard for routes #40

GitHub Actions / ESLint failed Feb 2, 2025 in 0s

124 errors

ESLint found 124 errors

Annotations

Check failure on line 1 in src/main.ts

See this annotation in the file changed.

@github-actions github-actions / ESLint

src/main.ts#L1

Run autofix to sort these imports! (simple-import-sort/imports)

Check failure on line 71 in src/main.ts

See this annotation in the file changed.

@github-actions github-actions / ESLint

src/main.ts#L71

Unsafe argument of type `any` assigned to a parameter of type `PackageDefinition` (@typescript-eslint/no-unsafe-argument)

Check failure on line 71 in src/main.ts

See this annotation in the file changed.

@github-actions github-actions / ESLint

src/main.ts#L71

Unsafe argument of type `any` assigned to a parameter of type `Pick<Server, "addService">` (@typescript-eslint/no-unsafe-argument)

Check failure on line 8 in src/middlewares/json-body.middleware.ts

See this annotation in the file changed.

@github-actions github-actions / ESLint

src/middlewares/json-body.middleware.ts#L8

Unexpected any. Specify a different type (@typescript-eslint/no-explicit-any)

Check failure on line 8 in src/middlewares/raw-body.middleware.ts

See this annotation in the file changed.

@github-actions github-actions / ESLint

src/middlewares/raw-body.middleware.ts#L8

Unexpected any. Specify a different type (@typescript-eslint/no-explicit-any)

Check failure on line 20 in src/modules/auth/strategies/jwt.strategy.ts

See this annotation in the file changed.

@github-actions github-actions / ESLint

src/modules/auth/strategies/jwt.strategy.ts#L20

Unexpected console statement (no-console)

Check failure on line 20 in src/modules/auth/strategies/jwt.strategy.ts

See this annotation in the file changed.

@github-actions github-actions / ESLint

src/modules/auth/strategies/jwt.strategy.ts#L20

Insert `;` (prettier/prettier)

Check failure on line 20 in src/modules/auth/strategies/jwt.strategy.ts

See this annotation in the file changed.

@github-actions github-actions / ESLint

src/modules/auth/strategies/jwt.strategy.ts#L20

Missing semicolon (@typescript-eslint/semi)

Check failure on line 21 in src/modules/auth/strategies/jwt.strategy.ts

See this annotation in the file changed.

@github-actions github-actions / ESLint

src/modules/auth/strategies/jwt.strategy.ts#L21

Expected blank line before this statement (padding-line-between-statements)

Check failure on line 1 in src/modules/config/config.module.ts

See this annotation in the file changed.

@github-actions github-actions / ESLint

src/modules/config/config.module.ts#L1

Run autofix to sort these imports! (simple-import-sort/imports)

Check failure on line 10 in src/modules/config/config.module.ts

See this annotation in the file changed.

@github-actions github-actions / ESLint

src/modules/config/config.module.ts#L10

Replace `"nestjs-grpc-exceptions";⏎` with `'nestjs-grpc-exceptions';` (prettier/prettier)

Check failure on line 10 in src/modules/config/config.module.ts

See this annotation in the file changed.

@github-actions github-actions / ESLint

src/modules/config/config.module.ts#L10

Strings must use singlequote (@typescript-eslint/quotes)

Check failure on line 12 in src/modules/config/config.module.ts

See this annotation in the file changed.

@github-actions github-actions / ESLint

src/modules/config/config.module.ts#L12

More than 1 blank line not allowed (no-multiple-empty-lines)

Check failure on line 1 in src/modules/config/config.service.ts

See this annotation in the file changed.

@github-actions github-actions / ESLint

src/modules/config/config.service.ts#L1

Run autofix to sort these imports! (simple-import-sort/imports)

Check failure on line 8 in src/modules/config/config.service.ts

See this annotation in the file changed.

@github-actions github-actions / ESLint

src/modules/config/config.service.ts#L8

Prefer `EventTarget` over `EventEmitter` (unicorn/prefer-event-target)

Check failure on line 26 in src/modules/config/config.service.ts

See this annotation in the file changed.

@github-actions github-actions / ESLint

src/modules/config/config.service.ts#L26

Unnecessary conditional, value is always falsy (@typescript-eslint/no-unnecessary-condition)

Check failure on line 31 in src/modules/config/config.service.ts

See this annotation in the file changed.

@github-actions github-actions / ESLint

src/modules/config/config.service.ts#L31

Placing a void expression inside another expression is forbidden. Move it to its own statement instead (@typescript-eslint/no-confusing-void-expression)

Check failure on line 1 in src/modules/config/controllers/config-grpc.controller.ts

See this annotation in the file changed.

@github-actions github-actions / ESLint

src/modules/config/controllers/config-grpc.controller.ts#L1

Run autofix to sort these imports! (simple-import-sort/imports)

Check failure on line 5 in src/modules/config/controllers/config-grpc.controller.ts

See this annotation in the file changed.

@github-actions github-actions / ESLint

src/modules/config/controllers/config-grpc.controller.ts#L5

All imports in the declaration are only used as types. Use `import type` (@typescript-eslint/consistent-type-imports)

Check failure on line 6 in src/modules/config/controllers/config-grpc.controller.ts

See this annotation in the file changed.

@github-actions github-actions / ESLint

src/modules/config/controllers/config-grpc.controller.ts#L6

This line has a length of 156. Maximum allowed is 150 (max-len)

Check failure on line 6 in src/modules/config/controllers/config-grpc.controller.ts

See this annotation in the file changed.

@github-actions github-actions / ESLint

src/modules/config/controllers/config-grpc.controller.ts#L6

Imports "GetParametersRequest", "GetParametersResponse" and "ParametersController" are only used as types (@typescript-eslint/consistent-type-imports)

Check failure on line 6 in src/modules/config/controllers/config-grpc.controller.ts

See this annotation in the file changed.

@github-actions github-actions / ESLint

src/modules/config/controllers/config-grpc.controller.ts#L6

Replace `·GetParametersRequest,·GetParametersResponse,·ParametersController,·ParametersControllerMethods·` with `⏎··GetParametersRequest,⏎··GetParametersResponse,⏎··ParametersController,⏎··ParametersControllerMethods,⏎` (prettier/prettier)

Check failure on line 15 in src/modules/config/controllers/config-grpc.controller.ts

See this annotation in the file changed.

@github-actions github-actions / ESLint

src/modules/config/controllers/config-grpc.controller.ts#L15

Unnecessary optional chain on a non-nullish value (@typescript-eslint/no-unnecessary-condition)

Check failure on line 16 in src/modules/config/controllers/config-grpc.controller.ts

See this annotation in the file changed.

@github-actions github-actions / ESLint

src/modules/config/controllers/config-grpc.controller.ts#L16

Expected blank line before this statement (padding-line-between-statements)

Check failure on line 19 in src/modules/config/controllers/config-grpc.controller.ts

See this annotation in the file changed.

@github-actions github-actions / ESLint

src/modules/config/controllers/config-grpc.controller.ts#L19

Expected blank line before this statement (padding-line-between-statements)