11import { ESLintReact } from "#/components/ESLintReact" ;
22
33import { Card , Cards } from "fumadocs-ui/components/card" ;
4-
54import { Link } from "next-view-transitions" ;
65
76const features = [
@@ -11,6 +10,19 @@ const features = [
1110 [ "Comprehensive" , "Handles complex scenarios and identifies problems that other tools might miss." ] ,
1211] as const ;
1312
13+ const plugins = [
14+ [
15+ "@eslint-react/eslint-plugin" ,
16+ "Main plugin combining all rules and presets." ,
17+ "https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin" ,
18+ ] ,
19+ [ "eslint-plugin-react-x" , "Core rules (renderer-agnostic, compatible with x-platform)." ] ,
20+ [ "eslint-plugin-react-dom" , "DOM specific rules for React DOM." ] ,
21+ [ "eslint-plugin-react-web-api" , "Rules for interacting with Web APIs." ] ,
22+ [ "eslint-plugin-react-hooks-extra" , "Extra React Hooks rules." ] ,
23+ [ "eslint-plugin-react-naming-convention" , "Naming convention rules." ] ,
24+ ] as const ;
25+
1426export default function HomePage ( ) {
1527 return (
1628 < main className = "w-full min-w-0 max-w-6xl px-8 pt-4 pb-12 md:px-12 mx-auto" >
@@ -20,9 +32,24 @@ export default function HomePage() {
2032 A set of composable linting rules for libraries and frameworks that use React as a UI runtime.
2133 </ p >
2234 < h2 > Features</ h2 >
23- < Cards className = "grid grid-cols-1 gap-4 md:grid-cols-4" >
35+ < Cards className = "grid grid-cols-1 gap-4 md:grid-cols-2 lg:grid-cols- 4" >
2436 { features . map ( ( [ title , description ] ) => < Card description = { description } key = { title } title = { title } /> ) }
2537 </ Cards >
38+ < h2 > ESLint Plugins</ h2 >
39+ < Cards className = "grid grid-cols-1 gap-4 md:grid-cols-2 lg:grid-cols-4" >
40+ { plugins . map ( ( [
41+ name ,
42+ description ,
43+ link = `https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/${ name } ` ,
44+ ] ) => (
45+ < Card
46+ description = { description }
47+ href = { link }
48+ key = { name }
49+ title = { name }
50+ />
51+ ) ) }
52+ </ Cards >
2653 < h2 > Roadmap</ h2 >
2754 < p >
2855 Check out the < Link href = "/roadmap" > roadmap</ Link > to see what's planned for the future.
0 commit comments