RuleStack

Configs

Stacks

Compare

Diff

RuleStack

Configs

Stacks

Compare

Diff

Read API

RuleStack

Configs

Stacks

Compare

Diff

Read API

Configs/Cursor rules/contentstack/contentstack-javascript

Cursor rule

.cursor/rules/javascript.mdc

JavaScript/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 blocks

Repository

34

— · pushed 1 days ago

Last changed

3 days ago

First indexed 3 days ago.
contentstack/contentstack-javascript/.cursor/rules/javascript.mdcRawGitHub
1---
2description: "JavaScript/TypeScript conventions for src, webpack, and index.d.ts"
3globs:
4 - "src/**/*.js"
5 - "webpack/**/*.js"
6 - "index.d.ts"
7alwaysApply: false
8---
9 
10# JavaScript & types (this repo)
11 
12## Runtime & modules
13 
14- **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.
16 
17## Style & tooling
18 
19- **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`.
21 
22## Patterns
23 
24- 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).
26 
27## Logging
28 
29- 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 

Commands it names

  • eslint-config-standard
  • node
  • jest

Sections

  • JavaScript & types (this repo)
  • Runtime & modules
  • Style & tooling
  • Patterns
  • Logging

What it covers

testlint-formatcode-stylearchitecturetypesdocs

Stack — with the evidence

typescript

(1.00)

javascript

(1.00)

jest

(1.00)

eslint

(1.00)

github-actions

(0.60)

Glob targeting

  • src/**/*.js
  • webpack/**/*.js
  • index.d.ts

Format

Cursor rules

The most expressive format here. Many small .mdc files, each with frontmatter declaring when it should load, so a rule about migrations only enters context when a migration is open. Costs the most to maintain and only one editor reads it.

What the corpus says about it

Repository

Owner
contentstack
Language
—
License
—
Archived
no

All configs in this repo

Also in contentstack/contentstack-javascript

Diff this repo’s formats

One 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?

The other instruction files in this repository
RepositoryFormatStackCoversScoreChanged
contentstack/contentstack-javascript.cursor/rules/code-review.mdc · 34Cursor rulestypescriptjavascript+3testgitsecuritydependencies+355/1003 days ago
contentstack/contentstack-javascript.cursor/rules/contentstack-javascript-cda.mdc · 34Cursor rulestypescriptjavascript+3archdocs56/1003 days ago
contentstack/contentstack-javascript.cursor/rules/testing.mdc · 34Cursor rulestypescriptjavascript+4buildteststylearch+281/1003 days ago
contentstack/contentstack-javascriptAGENTS.md · 34AGENTS.mdtypescriptjavascript+4buildtestlint-formatstyle+279/1003 days ago
Diff against .cursor/rules/code-review.mdc Diff against .cursor/rules/contentstack-javascript-cda.mdc Diff against .cursor/rules/testing.mdc Diff against AGENTS.md

Similar configs

Same format, overlapping stack, ranked by quality.

Same format, overlapping stack, ranked by quality
RepositoryFormatStackCoversScoreChanged
hiromaily/go-crypto-wallet.cursor/rules/typescript.mdc · 126Cursor rulesgobun+5setupbuildtestlint-format+6100/1003 days ago
TechSquidTV/Hermes.cursor/rules/10-hermes-api.mdc · 45Cursor rulestypescriptpytest+15testlint-formatstylearch+5100/1003 days ago
dodgecfr/combatfilms-webapp.cursor/rules/frontend.mdc · 0Cursor rulestypescriptturborepo+15setuptestlint-formatstyle+799/1003 days ago
deifos/clipmira-subtitles.cursor/rules/frontend.mdc · 1Cursor rulestypescriptnextjs+5setuptestlint-formatstyle+799/1003 days ago
markstev/mark-starter.cursor/rules/frontend.mdc · 0Cursor rulestypescriptturborepo+14setuptestlint-formatstyle+699/1003 days ago
Allymahmoud/case-intake-platform.cursor/rules/frontend.mdc · 0Cursor rulestypescriptturborepo+13setuptestlint-formatstyle+799/1003 days ago
langflow-ai/langflow.cursor/rules/docs_development.mdc · 153kCursor rulespythonnode+16setupbuildtestlint-format+797/1003 days ago
TechSquidTV/Hermes.cursor/rules/20-hermes-api-tests.mdc · 45Cursor rulestypescriptpytest+15teststyletesting-strategysecurity+397/1003 days ago
RuleStack

Built by

Kynth Studio

Directory

Configs
Stacks
Compare formats
Diff two configs
Best AGENTS.md examples

Formats

AGENTS.md
CLAUDE.md
Cursor rules
Copilot instructions

Reference

Read API
Corpus health
Privacy Policy
Terms

RuleStack

RuleStack

Built by

Kynth Studio

Directory

Configs
Stacks
Compare formats
Diff two configs
Best AGENTS.md examples

Formats

AGENTS.md
CLAUDE.md
Cursor rules
Copilot instructions

Reference

Read API
Corpus health
Privacy Policy
Terms

RuleStack

RuleStack

Built by

Kynth Studio

Directory

Configs
Stacks
Compare formats
Diff two configs
Best AGENTS.md examples

Formats

AGENTS.md
CLAUDE.md
Cursor rules
Copilot instructions

Reference

Read API
Corpus health
Privacy Policy
Terms

RuleStack