Cursor rule
.cursor/rules/solidjs.mdcSolidJS
Cursor rules
Quality
53/100
Scores the file, not the repository.Length
175 words
3 headings · 2 code blocksRepository
0
— · pushed 415 days agoLast changed
3 days ago
First indexed 3 days ago.1234567# SolidJS89You are a Solid JS expert that always uses the correct features from the solid documentation. DO NOT CONFUSE WITH REACT SYNTAX. Solid JS uses its own syntax and primitives.1011- Always use named exports: `export const App: VoidComponent = () => { ... }`.12- Use the correct component types: "Component", "VoidComponent" and "ParentComponent".13- Always consolidate the SolidJS docs for syntax and examples.1415## Refs1617Use refs like this:1819```tsx20import type { VoidComponent } from "solid-js";2122export const ComponentWithRef: VoidComponent = () => {23 let headline: HTMLParagraphElement | undefined;2425 onMount(() => {26 if (!headline) return;2728 headline.style.color = "red";29 })3031 return (32 <div>33 <p ref={headline} class="text-4xl font-bold font-sans">Hello World</p>34 </div>35 );36};37```3839## Example component for syntax guiding4041```tsx42import type { Icon as IconType } from "@dfds-route-map/lib";43import type { VoidComponent } from "solid-js";4445interface Props {46 icon: IconType;47 ref?: SVGSVGElement;48 title?: string;49}5051export const Icon: VoidComponent<Props> = (props) => {52 return (53 <svg54 xmlns="http://www.w3.org/2000/svg"55 data-icon={props.icon}56 ref={props.ref}57 >58 <title>{props.title ?? props.icon}</title>59 <use href={`/api/icons.svg#${props.icon}`} />60 </svg>61 );62};63```6465
Also in kontrapunkt-code/novo-holdings-annual-report-2024
Diff this repo’s formatsOne repository carrying more than one format is the comparison this product exists for: does anyone actually write different content in each file, or is one a copy of the other?
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| kontrapunkt-code/novo-holdings-annual-report-2024.cursor/rules/astro.mdc · 0 | Cursor rules | ui | 31/100 | 3 days ago | |
| kontrapunkt-code/novo-holdings-annual-report-2024.cursor/rules/motion.mdc · 0 | Cursor rules | no sections | 24/100 | 3 days ago | |
| kontrapunkt-code/novo-holdings-annual-report-2024.cursor/rules/tailwind.mdc · 0 | Cursor rules | ui | 24/100 | 3 days ago | |
| kontrapunkt-code/novo-holdings-annual-report-2024.cursorrules · 0 | .cursorrules | no sections | 39/100 | 3 days ago |
Similar configs
Same format, overlapping stack, ranked by quality.
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| hiromaily/go-crypto-wallet.cursor/rules/typescript.mdc · 126 | Cursor rules | setupbuildtestlint-format+6 | 100/100 | 3 days ago | |
| TechSquidTV/Hermes.cursor/rules/10-hermes-api.mdc · 45 | Cursor rules | testlint-formatstylearch+5 | 100/100 | 3 days ago | |
| markstev/mark-starter.cursor/rules/frontend.mdc · 0 | Cursor rules | setuptestlint-formatstyle+6 | 99/100 | 3 days ago | |
| Allymahmoud/case-intake-platform.cursor/rules/frontend.mdc · 0 | Cursor rules | setuptestlint-formatstyle+7 | 99/100 | 3 days ago | |
| dodgecfr/combatfilms-webapp.cursor/rules/frontend.mdc · 0 | Cursor rules | setuptestlint-formatstyle+7 | 99/100 | 3 days ago | |
| deifos/clipmira-subtitles.cursor/rules/frontend.mdc · 1 | Cursor rules | setuptestlint-formatstyle+7 | 99/100 | 3 days ago | |
| langflow-ai/langflow.cursor/rules/docs_development.mdc · 153k | Cursor rules | setupbuildtestlint-format+7 | 97/100 | 3 days ago | |
| TechSquidTV/Hermes.cursor/rules/20-hermes-api-tests.mdc · 45 | Cursor rules | teststyletesting-strategysecurity+3 | 97/100 | 3 days ago |
