Cursor rule
.cursor/rules/40-typescript-and-architecture.mdcTypeScript strictness and architecture rules for background, popup, and shared modules
Cursor rules
Quality
20/100
Scores the file, not the repository.Length
98 words
0 headings · 0 code blocksRepository
0
— · pushed 4 days agoLast changed
2 days ago
First indexed 2 days ago.1234567TypeScript and architecture rules:8- Keep `strict: true` assumptions intact.9- Prefer explicit types for messages, storage records, and extension state.10- Use shared types/interfaces for communication between background, popup, and shared modules.11- Avoid leaking browser-specific implementation details across unrelated modules.1213Architecture guidance:14- Keep business logic separate from UI rendering code.15- Keep popup logic thin; prefer shared helpers or background-driven flows for non-trivial logic.16- Reuse existing utilities before creating new abstractions.17- Prefer pure functions for parsing, transformation, validation, and state mapping.18- Use guard clauses and narrow types instead of deeply nested conditionals.
Also in ogisetiawan/account-switcher
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 |
|---|---|---|---|---|---|
| ogisetiawan/account-switcher.cursor/rules/00-project-core.mdc · 0 | Cursor rules | style | 34/100 | 2 days ago | |
| ogisetiawan/account-switcher.cursor/rules/50-testing-and-change-safety.mdc · 0 | Cursor rules | lint-format | 20/100 | 2 days ago | |
| ogisetiawan/account-switcher.cursor/rules/30-security-and-storage.mdc · 0 | Cursor rules | style | 34/100 | 2 days ago | |
| ogisetiawan/account-switcher.clinerules/00-project-core.md · 0 | Cline rules | style | 34/100 | 2 days ago | |
| ogisetiawan/account-switcher.clinerules/10-build-and-manifest.md · 0 | Cline rules | style | 34/100 | 2 days ago | |
| ogisetiawan/account-switcher.clinerules/30-security-and-storage.md · 0 | Cline rules | style | 34/100 | 2 days ago | |
| ogisetiawan/account-switcher.clinerules/40-typescript-and-architecture.md · 0 | Cline rules | style | 20/100 | 2 days ago | |
| ogisetiawan/account-switcher.clinerules/50-testing-and-change-safety.md · 0 | Cline rules | lint-format | 20/100 | 2 days ago | |
| ogisetiawan/account-switcher.cursor/rules/10-build-and-manifest.mdc · 0 | Cursor rules | style | 34/100 | 2 days ago | |
| ogisetiawan/account-switcherAGENTS.md · 0 | AGENTS.md | lint-formatdo-notagent-behaviour | 63/100 | 2 days ago |
Diff against .cursor/rules/00-project-core.mdc Diff against .cursor/rules/50-testing-and-change-safety.mdc Diff against .cursor/rules/30-security-and-storage.mdc Diff against .clinerules/00-project-core.md Diff against .clinerules/10-build-and-manifest.md Diff against .clinerules/30-security-and-storage.md Diff against .clinerules/40-typescript-and-architecture.md Diff against .clinerules/50-testing-and-change-safety.md Diff against .cursor/rules/10-build-and-manifest.mdc Diff against AGENTS.md
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 | |
| deifos/clipmira-subtitles.cursor/rules/frontend.mdc · 1 | 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 | |
| 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 |
