Skip to content

Commit

Permalink
chore(website): add markup linting configuration and scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
Rel1cx committed Feb 10, 2025
1 parent 7ca4c03 commit 49551c5
Show file tree
Hide file tree
Showing 4 changed files with 738 additions and 2 deletions.
11 changes: 11 additions & 0 deletions apps/website/.markuplintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"extends": [
"markuplint:recommended-react"
],
"parser": {
".[jt]sx$": "@markuplint/jsx-parser"
},
"specs": {
".[jt]sx$": "@markuplint/react-spec"
}
}
2 changes: 0 additions & 2 deletions apps/website/app/docs/[[...slug]]/page.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* eslint-disable @typescript-eslint/no-unsafe-member-access */
/* eslint-disable @typescript-eslint/no-unsafe-assignment */
import defaultMdxComponents from "fumadocs-ui/mdx";
import { DocsBody, DocsDescription, DocsPage, DocsTitle } from "fumadocs-ui/page";
import { notFound } from "next/navigation";
Expand Down
5 changes: 5 additions & 0 deletions apps/website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
"scripts": {
"build": "next build",
"dev": "next dev",
"lint:markup": "markuplint \"**/*.{jsx,tsx}\"",
"lint:ts": "eslint .",
"prepare": "fumadocs-mdx",
"start": "next start"
},
Expand All @@ -30,6 +32,8 @@
"@eslint/js": "^9.20.0",
"@eslint/markdown": "^6.2.2",
"@local/configs": "workspace:*",
"@markuplint/jsx-parser": "^4.7.15",
"@markuplint/react-spec": "^4.5.15",
"@mdx-js/mdx": "^3.1.0",
"@next/eslint-plugin-next": "^15.1.6",
"@tsconfig/node22": "^22.0.0",
Expand All @@ -48,6 +52,7 @@
"eslint-plugin-react-refresh": "^0.4.19",
"eslint-plugin-simple-import-sort": "^12.1.1",
"eslint-plugin-unicorn": "^56.0.1",
"markuplint": "^4.11.5",
"postcss": "^8.5.1",
"tailwindcss": "3.4.17",
"typescript": "^5.7.3",
Expand Down
Loading

0 comments on commit 49551c5

Please sign in to comment.