Skip to content

Commit

Permalink
style: fix linter errors
Browse files Browse the repository at this point in the history
  • Loading branch information
zkrising committed Aug 17, 2024
1 parent 4d2ddfc commit e1bf2b4
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 6 deletions.
5 changes: 5 additions & 0 deletions server/Justfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,9 @@ start:

# Test the server.
test:
pnpm lint
pnpm test

# Clean up the code and fix any automatically fixable mistakes.
lintfix:
pnpm lint-fix
2 changes: 1 addition & 1 deletion server/src/lib/jobs/backsync-bms-pms-data.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/* eslint-disable no-await-in-loop */
import db from "external/mongo/db";
import { VERSION_INFO } from "lib/constants/version";
import { PullDatabaseSeeds } from "lib/seeds/repo";
import CreateLogCtx from "lib/logger/logger";
import { PullDatabaseSeeds } from "lib/seeds/repo";
import { WrapScriptPromise } from "utils/misc";

const logger = CreateLogCtx(__filename);
Expand Down
2 changes: 1 addition & 1 deletion server/src/lib/jobs/bms-ai-table-sync.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* eslint-disable no-await-in-loop */
import { PullDatabaseSeeds } from "lib/seeds/repo";
import CreateLogCtx from "lib/logger/logger";
import { PullDatabaseSeeds } from "lib/seeds/repo";
import fetch from "node-fetch";
import { WrapScriptPromise } from "utils/misc";
import type { ChartDocument } from "tachi-common";
Expand Down
2 changes: 1 addition & 1 deletion server/src/lib/jobs/update-bpi-data.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* eslint-disable no-await-in-loop */
import db from "external/mongo/db";
import { BacksyncCollection, PullDatabaseSeeds } from "lib/seeds/repo";
import CreateLogCtx from "lib/logger/logger";
import { BacksyncCollection, PullDatabaseSeeds } from "lib/seeds/repo";
import { RecalcAllScores } from "utils/calculations/recalc-scores";
import fetch from "utils/fetch";
import { WrapScriptPromise } from "utils/misc";
Expand Down
2 changes: 1 addition & 1 deletion server/src/lib/jobs/update-dp-tiers.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/* eslint-disable no-await-in-loop */
import db from "external/mongo/db";
import { decode } from "html-entities";
import { BacksyncCollection } from "lib/seeds/repo";
import CreateLogCtx from "lib/logger/logger";
import { BacksyncCollection } from "lib/seeds/repo";
import { parse } from "node-html-parser";
import { RecalcAllScores } from "utils/calculations/recalc-scores";
import fetch from "utils/fetch";
Expand Down
2 changes: 1 addition & 1 deletion server/src/lib/jobs/update-sp12-data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
/* eslint-disable no-case-declarations */
/* eslint-disable no-param-reassign */
import db from "external/mongo/db";
import { BacksyncCollection } from "lib/seeds/repo";
import CreateLogCtx from "lib/logger/logger";
import { BacksyncCollection } from "lib/seeds/repo";
import fetch from "node-fetch";
import { p } from "prudence";
import { RecalcAllScores } from "utils/calculations/recalc-scores";
Expand Down
2 changes: 1 addition & 1 deletion server/src/server/router/api/v1/seeds/router.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Router } from "express";
import { PullDatabaseSeeds } from "lib/seeds/repo";
import CreateLogCtx from "lib/logger/logger";
import { PullDatabaseSeeds } from "lib/seeds/repo";
import { Environment } from "lib/setup/config";
import prValidate from "server/middleware/prudence-validate";
import { RequireLocalDevelopment } from "server/middleware/type-require";
Expand Down

0 comments on commit e1bf2b4

Please sign in to comment.