Skip to content

Commit

Permalink
chore(ci): fix linting task
Browse files Browse the repository at this point in the history
Also apply linter autofixes
  • Loading branch information
Thomasvdam committed Sep 16, 2024
1 parent 9463050 commit 71a1371
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
run: bun install

- name: 📝 Check formatting
run: bun install
run: bun check-fmt

- name: 🧪 Test project
run: bun test
4 changes: 2 additions & 2 deletions workspace/data-proxy/src/logger.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { createLogger, format, transports, type transport } from "winston";
import { createLogger, format, type transport, transports } from "winston";
import "winston-daily-rotate-file";
import { Maybe } from "true-myth";
import { LOG_LEVEL, LOG_FILE_DIR } from "./constants";
import { LOG_FILE_DIR, LOG_LEVEL } from "./constants";

const logFormat = format.printf((info) => {
const requestId = Maybe.of(info.metadata?.requestId).mapOr(" ", (t) => {
Expand Down
9 changes: 3 additions & 6 deletions workspace/data-proxy/src/proxy-server.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
import { type DataProxy, constants } from "@seda-protocol/data-proxy-sdk";
import { randomUUID } from "node:crypto";
import { constants, type DataProxy } from "@seda-protocol/data-proxy-sdk";
import { Elysia } from "elysia";
import { Maybe } from "true-myth";
import { randomUUID } from "node:crypto";
import { type Config, getHttpMethods } from "./config-parser";
import {
DEFAULT_PROXY_ROUTE_GROUP,
JSON_PATH_HEADER_KEY,
} from "./constants";
import { DEFAULT_PROXY_ROUTE_GROUP, JSON_PATH_HEADER_KEY } from "./constants";
import logger from "./logger";
import {
createDefaultResponseHeaders,
Expand Down
2 changes: 1 addition & 1 deletion workspace/data-proxy/src/utils/create-headers.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { type SignedData, constants } from "@seda-protocol/data-proxy-sdk";
import { constants, type SignedData } from "@seda-protocol/data-proxy-sdk";

export function createDefaultResponseHeaders() {
const headers = new Headers();
Expand Down

0 comments on commit 71a1371

Please sign in to comment.