PluginBench
Rule

solidjs basic

via PatrickJS/awesome-cursorrules

Essential Solid.js setup and best practices for functional component development.

What is solidjs basic?

Provides foundational guidance for Solid.js projects, covering reactive state management with createSignal, side effects with createEffect, and derived values with createMemo. Use this rule when starting a new Solid.js project or establishing team conventions for component structure and reactivity patterns.

  • Use createSignal() for reactive state, createEffect() for side effects, and createMemo() for derived values
  • Implement Show and For components for conditional and list rendering
  • Use createStore() for complex state management
  • Organize code with standard folder structure (components, pages, utils)
  • Apply JSX for component templates and Solid Router for routing
  • Implement lazy-loading and error boundaries for performance and reliability

Applies to

File patterns this rule matches.

**/*
Rule definition (reference)

Source of truth, from the repository.

// Solid.js Basic Setup .cursorrules

// Prefer functional components

const preferFunctionalComponents = true;

// Solid.js best practices

const solidjsBestPractices = [ "Use createSignal() for reactive state", "Utilize createEffect() for side effects", "Implement createMemo() for derived values", "Use createResource() for data fetching", "Implement Show and For components for conditional and list rendering", "Utilize createStore() for complex state management", ];

// Folder structure

const folderStructure = src/ components/ pages/ utils/ App.jsx index.jsx public/ index.html;

// Additional instructions

const additionalInstructions = `

  1. Use JSX for component templates
  2. Implement proper error boundaries
  3. Utilize Solid Router for routing when applicable
  4. Use Solid's built-in optimization features
  5. Implement lazy-loading for improved performance
  6. Follow Solid.js naming conventions and best practices
  7. Use server-side rendering (SSR) when needed `;

Related rules

Senior full-stack TypeScript, React, Node.js guidance with clean architecture, testing, and WHY-oriented reasoning.

**/*
41k
via PatrickJS/awesome-cursorrules

Quantitative factor research skills for designing, evaluating, and mining alpha factors in equities markets.

**/*
41k
via PatrickJS/awesome-cursorrules

Android development with Jetpack Compose, clean architecture, and Material Design 3.

**/*
41k
via PatrickJS/awesome-cursorrules

Angular development with Novo Elements UI library using standalone components.

**/*
41k
via PatrickJS/awesome-cursorrules

Expert Angular 18 + TypeScript development with Jest, emphasizing clean code and performance.

**/*
41k
via PatrickJS/awesome-cursorrules

Manage Kubernetes clusters, add-ons, stacks, and credentials via the Ankra CLI platform.

**/*.sh +5
41k
via PatrickJS/awesome-cursorrules