Skip to content

Commit

Permalink
style: add import sorting
Browse files Browse the repository at this point in the history
  • Loading branch information
philostler committed Jul 26, 2024
1 parent e7ecf26 commit 6351946
Show file tree
Hide file tree
Showing 9 changed files with 358 additions and 10 deletions.
15 changes: 14 additions & 1 deletion packages/www/.prettierrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
{
"plugins": ["prettier-plugin-packagejson"]
"importOrder": [
"<BUILTIN_MODULES>",
"",
"<THIRD_PARTY_MODULES>",
"",
"^@/",
"",
"^[.]"
],
"importOrderTypeScriptVersion": "5.5.4",
"plugins": [
"@ianvs/prettier-plugin-sort-imports",
"prettier-plugin-packagejson"
]
}
1 change: 1 addition & 0 deletions packages/www/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"react-dom": "18.3.1"
},
"devDependencies": {
"@ianvs/prettier-plugin-sort-imports": "4.3.1",
"@types/node": "20.14.12",
"@types/react": "18.3.3",
"@types/react-dom": "18.3.0",
Expand Down
4 changes: 3 additions & 1 deletion packages/www/src/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import type { Metadata } from "next";
import { Inter } from "next/font/google";

import "./globals.css";
import { ReactNode } from "react";

import clsx from "clsx";
import { ReactNode } from "react";

type Props = Readonly<{
children: ReactNode;
Expand Down
1 change: 0 additions & 1 deletion packages/www/src/app/logVersion.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import packageJson from "../../package.json";

import { log } from "./log";

const logVersion = () => {
Expand Down
4 changes: 3 additions & 1 deletion packages/www/src/app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
"use client";

import {
Header,
Links,
LocationSection,
ProfilePhoto,
TravelSection,
WorkSection,
LocationSection,
} from "@/components";

import { logVersion } from "./logVersion";

logVersion();
Expand Down
1 change: 1 addition & 0 deletions packages/www/src/components/Links/Links.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import Image from "next/image";

import { LinkButton } from "./components";

const Links = () => (
Expand Down
2 changes: 1 addition & 1 deletion packages/www/src/components/Section/Section.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import clsx from "clsx";
import { Tooltip } from "flowbite-react";
import { ReactNode } from "react";
import { Red_Hat_Display } from "next/font/google";
import { ReactNode } from "react";

type Props = {
children: ReactNode;
Expand Down
2 changes: 1 addition & 1 deletion packages/www/tailwind.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { Config } from "tailwindcss";
import flowbiteReactTailwind from "flowbite-react/tailwind";
import type { Config } from "tailwindcss";

const config: Config = {
content: [
Expand Down
338 changes: 334 additions & 4 deletions packages/www/yarn.lock

Large diffs are not rendered by default.

0 comments on commit 6351946

Please sign in to comment.