Skip to content

Commit 094702e

Browse files
committed
chore(format): add prettier plugin to sort imports
This commit introduces `@ianvs/prettier-plugin-sort-imports` to automatically sort import statements, improving code consistency and readability.
1 parent 015080b commit 094702e

File tree

27 files changed

+238
-113
lines changed

27 files changed

+238
-113
lines changed

.prettierrc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@
55
"trailingComma": "es5",
66
"printWidth": 110,
77
"singleAttributePerLine": true,
8-
"plugins": ["prettier-plugin-tailwindcss"]
8+
"plugins": ["prettier-plugin-tailwindcss", "@ianvs/prettier-plugin-sort-imports"]
99
}

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,13 @@
3636
},
3737
"devDependencies": {
3838
"@eslint/eslintrc": "^3.3.1",
39+
"@ianvs/prettier-plugin-sort-imports": "^4.6.2",
3940
"@next/eslint-plugin-next": "^15.5.0",
4041
"@tailwindcss/postcss": "^4.1.12",
4142
"@types/node": "^24.3.0",
4243
"@types/react": "^19.1.11",
4344
"@types/react-dom": "^19.1.7",
44-
"eslint": "^9.33.0",
45+
"eslint": "^9.34.0",
4546
"eslint-config-next": "^15.5.0",
4647
"eslint-plugin-react-hooks": "^5.2.0",
4748
"prettier": "^3.6.2",

pnpm-lock.yaml

Lines changed: 180 additions & 55 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/app/about-us/annual-report/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { Metadata } from "next";
21
import { ComingSoon, comingSoonText } from "@/components/sections/coming-soon";
32
import { buildPageMetadata } from "@/lib/config";
3+
import { Metadata } from "next";
44

55
const description = comingSoonText;
66
export const metadata: Metadata = buildPageMetadata("/about-us/annual-report", { description });

src/app/about-us/exco/page.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import { Metadata } from "next";
2-
import { buildPageMetadata } from "@/lib/config";
3-
import { PageHeader } from "@/components/primitives/page-header";
41
import { ExcoCard } from "@/components/primitives/exco-card";
2+
import { PageHeader } from "@/components/primitives/page-header";
3+
import { buildPageMetadata } from "@/lib/config";
54
import { excoMembers } from "@/lib/exco";
5+
import { Metadata } from "next";
66

77
const description = "Meet the team leading ALPHA HKU.";
88
export const metadata: Metadata = buildPageMetadata("/about-us/exco", { description });

src/app/about-us/our-story/page.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { Metadata } from "next";
2-
import { buildPageMetadata, siteConfig } from "@/lib/config";
31
import { PageHeader } from "@/components/primitives/page-header";
2+
import { buildPageMetadata, siteConfig } from "@/lib/config";
3+
import { Metadata } from "next";
44

55
const description =
66
"The first and only global student initiative based in Hong Kong for constructive peace and humanity. First international student chapter of ALPHA Education.";

src/app/about-us/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { Metadata } from "next";
21
import { ComingSoon, comingSoonText } from "@/components/sections/coming-soon";
32
import { buildPageMetadata } from "@/lib/config";
3+
import { Metadata } from "next";
44

55
const description = comingSoonText;
66
export const metadata: Metadata = buildPageMetadata("/about-us", { description });

src/app/about-us/partners/page.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import { Metadata } from "next";
2-
import { buildPageMetadata } from "@/lib/config";
3-
import { partners } from "@/lib/partners";
41
import { PageHeader } from "@/components/primitives/page-header";
52
import { PartnerCard } from "@/components/primitives/partner-card";
3+
import { buildPageMetadata } from "@/lib/config";
4+
import { partners } from "@/lib/partners";
5+
import { Metadata } from "next";
66

77
const description =
88
"We are collaborating with the following partners to share the message of peace and humanity.";

src/app/blog/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { Metadata } from "next";
21
import { ComingSoon, comingSoonText } from "@/components/sections/coming-soon";
32
import { buildPageMetadata } from "@/lib/config";
3+
import { Metadata } from "next";
44

55
const description = comingSoonText;
66
export const metadata: Metadata = buildPageMetadata("/blog", { description });

src/app/join-us/page.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
import { Metadata } from "next";
2-
import { buildPageMetadata } from "@/lib/config";
31
import { AnimatedFillButton } from "@/components/primitives/animated-fill-button";
4-
import { siteConfig } from "@/lib/config";
52
import { PageHeader } from "@/components/primitives/page-header";
3+
import { buildPageMetadata, siteConfig } from "@/lib/config";
4+
import { Metadata } from "next";
65

76
const description =
87
"Join The Team at ALPHA University Chapter at the University of Hong Kong, an initiative with great potential.";

0 commit comments

Comments
 (0)