Cursor rule
.cursor/rules/code-review.mdcPR review checklist for @contentstack/utils — API docs, compatibility, security, testing
Cursor rules
Quality
56/100
Scores the file, not the repository.Length
249 words
8 headings · 0 code blocksRepository
5
— · pushed 1 days agoLast changed
3 days ago
First indexed 3 days ago.123456# Code review checklist — `@contentstack/utils`78Use severity labels (**Blocker / Major / Minor**) when triaging findings.910## Public API and documentation1112- **Blocker/Major:** New or changed **exports** from `src/index.ts` need accurate **JSDoc** (or clear type names) matching runtime behavior.13- **Major:** README / CHANGELOG updates when behavior is user-visible or migration is needed.1415## Backward compatibility1617- **Blocker:** Unplanned breaking changes to **function signatures** or **default behavior** consumed by Delivery SDK integrations or documented `renderOption` contracts.18- **Major:** Stricter throwing on inputs that previously passed (especially `getContentstackEndpoint`, RTE traversals).1920## Errors2122- This package uses **plain `Error`** (e.g. `endpoints.ts`); new code should keep messages actionable. **Major:** Silent failures where callers need to detect bad input.2324## Null safety and RTE edge cases2526- **Major:** Missing guards on **null/undefined** node or entry fragments (historically sensitive in `entry-editable` / RTE paths).27- **Minor:** Align with **`strictNullChecks: false`** legacy but avoid widening undefined leaks into public types.2829## Dependencies and SCA3031- **Major:** New runtime deps are rare—justify any addition; **`prepublishOnly`** and hooks assume **`npm test`** and Snyk-friendly trees.32- Use **`npm audit` / Snyk** expectations per org policy.3334## Tests3536- **Blocker:** Behavioral fixes or new branches without **`__test__`** coverage when risk is high (RTE nesting, GQL URL rewriting, endpoint resolution).37- **Minor:** Snapshot-only tests where a small assertion would be clearer.3839## Terminology4041- **Major:** Docs/comments must describe this as **utils** alongside **CDA / Delivery / JSON RTE / GraphQL**, not as **CMA** unless the change is explicitly management-related.42
Also in contentstack/contentstack-utils-javascript
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 |
|---|---|---|---|---|---|
| contentstack/contentstack-utils-javascript.cursor/rules/testing.mdc · 5 | Cursor rules | buildteststyletesting-strategy | 71/100 | 3 days ago | |
| contentstack/contentstack-utils-javascript.cursor/rules/typescript-contentstack-utils.mdc · 5 | Cursor rules | styledocs | 56/100 | 3 days ago | |
| contentstack/contentstack-utils-javascript.cursor/rules/typescript.mdc · 5 | Cursor rules | testlint-formatstylearch+2 | 82/100 | 3 days ago | |
| contentstack/contentstack-utils-javascriptAGENTS.md · 5 | AGENTS.md | setupbuildtestlint-format+6 | 90/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 | |
| 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 | |
| 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 | |
| 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 |
