Cursor rule
.cursor/rules/javascript.mdcJavaScript/TypeScript conventions for src, webpack, and index.d.ts
Cursor rules
Quality
74/100
Scores the file, not the repository.Length
153 words
5 headings · 0 code blocksRepository
34
— · pushed 1 days agoLast changed
3 days ago
First indexed 3 days ago.12345678910# JavaScript & types (this repo)1112## Runtime & modules1314- **Source** is **ES modules** under `src/` (`import` / `export`). Webpack resolves aliases such as **`runtime/http.js`** per target (`webpack/webpack.*.js`).15- **`index.d.ts`** is the public TypeScript surface for npm consumers; keep it aligned with `src/core/` JSDoc and exports.1617## Style & tooling1819- **ESLint** uses **`eslint-config-standard`** and **`@babel/eslint-parser`**. This repo **requires semicolons** and related rules in **`.eslintrc.js`** — match existing `src/core/` style rather than semicolon-free Standard.20- **Environment**: ESLint `es2020`, `node`, `browser`, `jest`.2122## Patterns2324- Use **JSDoc** (`@description`, `@param`, `@returns`, `@example`) on **public** API consistent with `src/core/contentstack.js` and `src/core/stack.js`.25- **Dependencies**: **`@contentstack/utils`** is exposed on the main class; follow existing import paths (including `.js` suffixes where the codebase uses them in ESM files).2627## Logging2829- Avoid noisy logging in library code except via existing **`fetchOptions.logHandler`** / **`fetchOptions.debug`** patterns in `src/core/lib/request.js` and `stack.js`.30- Never log full **delivery_token**, **preview_token**, **management_token**, or API keys.31
Also in contentstack/contentstack-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-javascript.cursor/rules/code-review.mdc · 34 | Cursor rules | testgitsecuritydependencies+3 | 55/100 | 3 days ago | |
| contentstack/contentstack-javascript.cursor/rules/contentstack-javascript-cda.mdc · 34 | Cursor rules | archdocs | 56/100 | 3 days ago | |
| contentstack/contentstack-javascript.cursor/rules/testing.mdc · 34 | Cursor rules | buildteststylearch+2 | 81/100 | 3 days ago | |
| contentstack/contentstack-javascriptAGENTS.md · 34 | AGENTS.md | buildtestlint-formatstyle+2 | 79/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 |
