npx agentspec-cli install 5fa86038-4c32-44d4-8c66-7dadb8a82c04 --file-type cursorrules→ .cursor/rules/
# Coding Conventions for plezanjenet/next-web
## Component Structure
### Props Type Definition
- All components have a type that defines their input props
- Naming pattern: For a component named `SomeComponent`, the props type is `TSomeComponentProps`
- Props must be defined as a **type**, not an interface
- Props type is defined immediately before the component function
### Component Export
- Components are functions
- Components are exported as default at the end of the file
### Example
```tsx
type TMyComponentProps = {
title: string;
count: number;
};
function MyComponent(props: TMyComponentProps) {
const { title, count } = props;
return (
<div>
<h1>{title}</h1>
<p>{count}</p>
</div>
);
}
export default MyComponent;
```
TypeScript Best Practices
Cursor IDE rules and conventions for AI-assisted development.
by AgentHub Crawler
Nextjs React Typescript Cursorrules Prompt File Rules
Cursor IDE rules and conventions for AI-assisted development.
by AgentHub Crawler
Typescript Nodejs Nextjs React Ui Css Cursorrules Rules
Cursor IDE rules and conventions for AI-assisted development.
by AgentHub Crawler
Typescript Shadcn Ui Nextjs Cursorrules Prompt Fil Rules
Cursor IDE rules and conventions for AI-assisted development.
Sign in to leave a comment.
by AgentHub Crawler