chore(format): add prettier-plugin-organize-imports and sort imports

This commit is contained in:
zetaloop
2026-02-25 15:34:33 +08:00
parent d4a0765cad
commit 2d42473910
88 changed files with 266 additions and 246 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
import { describe, expect, it } from "vitest"
import { calculateOrderIncome } from "@/lib/domain/income"
import { describe, expect, it } from "vitest"
describe("calculateOrderIncome", () => {
it("calculates percentage commission income", () => {
+1 -1
View File
@@ -1,7 +1,7 @@
import { describe, expect, it } from "vitest"
import { evaluateOrderTransition } from "@/lib/domain/order-machine"
import type { Actor } from "@/lib/policy/actor"
import type { UserRole } from "@/lib/types"
import { describe, expect, it } from "vitest"
function actor(role: UserRole, userId = "u1"): Actor {
return { role, userId }
+1 -1
View File
@@ -1,5 +1,5 @@
import { describe, expect, it } from "vitest"
import { allow, deny, requireAuth } from "@/lib/policy/assert"
import { describe, expect, it } from "vitest"
describe("policy decision helpers", () => {
it("returns ok for allow", () => {
+3 -3
View File
@@ -1,9 +1,9 @@
import { describe, expect, it } from "vitest"
import { searchCatalog } from "@/lib/search/search-catalog"
import { mockPlayers } from "@/lib/mock/players"
import { mockShops } from "@/lib/mock/shops"
import { mockServices } from "@/lib/mock/services"
import { mockShops } from "@/lib/mock/shops"
import type { SearchCatalogData } from "@/lib/search/search-catalog"
import { searchCatalog } from "@/lib/search/search-catalog"
import { describe, expect, it } from "vitest"
const data: SearchCatalogData = {
players: mockPlayers,
+1 -1
View File
@@ -1,5 +1,5 @@
import { describe, expect, it } from "vitest"
import { GET } from "@/app/api/search/route"
import { describe, expect, it } from "vitest"
describe("GET /api/search", () => {
it("returns 200 with items and meta", async () => {