Skip to content

Commit aa70b9f

Browse files
committed
refactor: ♻️ cleanup
1 parent b877576 commit aa70b9f

File tree

6 files changed

+20
-9
lines changed

6 files changed

+20
-9
lines changed

.gitignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,6 @@ next-env.d.ts
3838
# custom workspace settings
3939
.vscode
4040
.idea
41-
# contentlayer
42-
.contentlayer
4341

4442
# worker
4543
sw.*

lefthook.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66

77
pre-commit:
88
commands:
9+
typecheck:
10+
glob: "src/**/*.{ts,tsx}"
11+
run: npx tsc --noEmit
912
lint:
1013
glob: "src/**/*.{ts,tsx,js,jsx}"
1114
run: npx eslint {staged_files} --fix && git add {staged_files}

next.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ const nextConfig = {
1515
];
1616
},
1717
trailingSlash: true,
18+
eslint: {
19+
ignoreDuringBuilds: true,
20+
}
1821
};
1922

2023
module.exports = withPWA(nextConfig);

src/app/[locale]/changelog/page.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// import { allChanges, type Change } from "contentlayer/generated";
21
import { type Change, changes } from "content";
32
import dayjs from "dayjs";
43
import { type Metadata } from "next";

src/components/sections/features.tsx

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,17 @@ export default function Features() {
7979
</Card>
8080
</div>
8181
<div className="mx-auto text-center md:max-w-[58rem]">
82-
<p className="font-medium leading-normal text-primary/70 sm:text-lg sm:leading-7">
83-
ChadNext also includes changelog page built using Contentlayer and
84-
Markdown.
82+
<p className="leading-normal text-primary/70 sm:text-lg sm:leading-7">
83+
ChadNext also includes Changelog & About page built using{" "}
84+
<a
85+
href="https://velite.js.org/"
86+
target="_blank"
87+
rel="noopener noreferrer"
88+
className=" underline underline-offset-4"
89+
>
90+
Velite
91+
</a>{" "}
92+
and Markdown.
8593
</p>
8694
</div>
8795
</div>

tsconfig.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@
3535
"next-env.d.ts",
3636
"**/*.ts",
3737
"**/*.tsx",
38-
".next/types/**/*.ts",
39-
".contentlayer/generated"
4038
],
4139
"exclude": [
42-
"node_modules"
40+
"node_modules",
41+
".next",
42+
".velite"
4343
]
4444
}

0 commit comments

Comments
 (0)