Skip to content

Commit 49551c5

Browse files
committed
chore(website): add markup linting configuration and scripts
1 parent 7ca4c03 commit 49551c5

File tree

4 files changed

+738
-2
lines changed

4 files changed

+738
-2
lines changed

apps/website/.markuplintrc

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"extends": [
3+
"markuplint:recommended-react"
4+
],
5+
"parser": {
6+
".[jt]sx$": "@markuplint/jsx-parser"
7+
},
8+
"specs": {
9+
".[jt]sx$": "@markuplint/react-spec"
10+
}
11+
}

apps/website/app/docs/[[...slug]]/page.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
/* eslint-disable @typescript-eslint/no-unsafe-member-access */
2-
/* eslint-disable @typescript-eslint/no-unsafe-assignment */
31
import defaultMdxComponents from "fumadocs-ui/mdx";
42
import { DocsBody, DocsDescription, DocsPage, DocsTitle } from "fumadocs-ui/page";
53
import { notFound } from "next/navigation";

apps/website/package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
"scripts": {
66
"build": "next build",
77
"dev": "next dev",
8+
"lint:markup": "markuplint \"**/*.{jsx,tsx}\"",
9+
"lint:ts": "eslint .",
810
"prepare": "fumadocs-mdx",
911
"start": "next start"
1012
},
@@ -30,6 +32,8 @@
3032
"@eslint/js": "^9.20.0",
3133
"@eslint/markdown": "^6.2.2",
3234
"@local/configs": "workspace:*",
35+
"@markuplint/jsx-parser": "^4.7.15",
36+
"@markuplint/react-spec": "^4.5.15",
3337
"@mdx-js/mdx": "^3.1.0",
3438
"@next/eslint-plugin-next": "^15.1.6",
3539
"@tsconfig/node22": "^22.0.0",
@@ -48,6 +52,7 @@
4852
"eslint-plugin-react-refresh": "^0.4.19",
4953
"eslint-plugin-simple-import-sort": "^12.1.1",
5054
"eslint-plugin-unicorn": "^56.0.1",
55+
"markuplint": "^4.11.5",
5156
"postcss": "^8.5.1",
5257
"tailwindcss": "3.4.17",
5358
"typescript": "^5.7.3",

0 commit comments

Comments
 (0)