Cursor rule
.cursor/rules/native-errors.mdcTypeScript error handling with nostics in the native app
Cursor rules
Quality
30/100
Scores the file, not the repository.Length
95 words
1 headings · 1 code blocksRepository
24
— · pushed 0 days agoLast changed
3 days ago
First indexed 3 days ago.1234567# TypeScript errors — use `nostics`89Define and report user-facing errors through **`nostics`** in `apps/native/src/lib/errors.ts`.1011- Add diagnostic codes, titles, suggestions, and `defineDiagnostics` entries there — not ad hoc strings in components.12- Import `diagnostics` (or helpers like `getRebuildErrorTitle`) from `@/lib/errors` when surfacing errors in UI.13- Rust-side errors exposed to the frontend should map to stable codes that have entries in `errors.ts`.1415```typescript16// ❌ BAD — one-off error copy in a component17toast.error("Something went wrong with the provider");1819// ✅ GOOD — structured diagnostic20import { diagnostics, DIAGNOSTIC_CODES } from "@/lib/errors";21diagnostics.report(DIAGNOSTIC_CODES.EVOLVE_NO_PROVIDER);22```23
Also in darkmatter/nixmac
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 |
|---|---|---|---|---|---|
| darkmatter/nixmac.cursor/rules/native-config-tiers.mdc · 24 | Cursor rules | setupbuild | 43/100 | 3 days ago | |
| darkmatter/nixmac.cursor/rules/native-env.mdc · 24 | Cursor rules | setupstylesecurity | 34/100 | 3 days ago | |
| darkmatter/nixmac.cursor/rules/native-orpc.mdc · 24 | Cursor rules | styletypes | 57/100 | 3 days ago | |
| darkmatter/nixmac.cursor/rules/native-state-package.mdc · 24 | Cursor rules | archdependenciesmonorepo | 28/100 | 3 days ago | |
| darkmatter/nixmac.github/copilot-instructions.md · 24 | Copilot instructions | setupbuildtestlint-format+8 | 96/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 | |
| TechSquidTV/Hermes.cursor/rules/20-hermes-api-tests.mdc · 45 | Cursor rules | teststyletesting-strategysecurity+3 | 97/100 | 3 days ago | |
| langflow-ai/langflow.cursor/rules/docs_development.mdc · 153k | Cursor rules | setupbuildtestlint-format+7 | 97/100 | 3 days ago |
