Skip to content

Commit

Permalink
chore: sort imports during formatting (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
christoph-fricke committed Dec 21, 2023
1 parent 07fa9b0 commit e3d43d6
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 4 deletions.
1 change: 1 addition & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"$schema": "https://json.schemastore.org/prettierrc.json",
"plugins": ["prettier-plugin-organize-imports"],
"proseWrap": "always",
"overrides": [
{
Expand Down
21 changes: 21 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
"lint-staged": "^15.2.0",
"openapi-typescript": "^7.0.0-next.5",
"prettier": "^3.1.1",
"prettier-plugin-organize-imports": "^3.2.4",
"rimraf": "^5.0.5",
"typescript": "^5.3.3",
"vitest": "^1.0.4"
Expand Down
4 changes: 2 additions & 2 deletions src/openapi-http.test.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/* eslint-disable @typescript-eslint/no-explicit-any */
import { describe, expect, it, vi } from "vitest";
import { http as mswHttp } from "msw";
import { createOpenApiHttp } from "./openapi-http.js";
import { describe, expect, it, vi } from "vitest";
import type { HttpMethod } from "./api-spec.js";
import { createOpenApiHttp } from "./openapi-http.js";

const methods: HttpMethod[] = [
"get",
Expand Down
2 changes: 1 addition & 1 deletion src/path-mapping.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { describe, expect, it } from "vitest";
import { convertToColonPath } from "./path-mapping.js";
import { describe, it, expect } from "vitest";

describe(convertToColonPath, () => {
it("should leave paths with no path fragments untouched", () => {
Expand Down
2 changes: 1 addition & 1 deletion vitest.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { name, exports } from "./package.json";
import { defineProject } from "vitest/config";
import { exports, name } from "./package.json";

const suite = process.env["TEST_SUITE"];

Expand Down

0 comments on commit e3d43d6

Please sign in to comment.