This repository is a minimal starter project. Agents interacting with it should follow the conventions below for building, linting, testing, and coding style. The guidelines are intentionally generic to accommodate future language or framework additions. If new tools are added, update this file accordingly.
| Tool | Command | Purpose |
|---|---|---|
| npm | npm run build |
Transpile / bundle the source code (if applicable). No default script is currently defined; add only when a build process emerges. |
| npm | npm run lint |
Run ESLint + Prettier checks. Ensure that lint script is configured in package.json. |
| npm | npm test |
Run the full test suite using Jest / Mocha / any test runner configured. |
| npm | npm test -- <pattern> |
Run a single test or a set of tests matching the glob <pattern>. Example: npm test -- src/__tests__/*.spec.js. |
| npm | npm run format |
Auto‑format the code base using Prettier. Helpful after manual edits. |
| npm | npm run type-check |
Run TypeScript type checking (if the project uses TypeScript). |
Tip: Agents should prefer the single‑test form when debugging to avoid slow test runs.
"./setup") placed last.Use the ESLint import/order rule to enforce this.
.prettierrc configuration.any.Array<string>, Record<string, number>, etc.).types/index.ts where appropriate.| Element | Style | Example |
|---|---|---|
| Variables / constants | snake_case for constants, camelCase for others |
MAX_RETRIES, userName |
| Functions | camelCase |
fetchData() |
| Classes / Interfaces | PascalCase |
UserService |
| Enums | UPPER_SNAKE_CASE |
UserStatus |
| React Components | PascalCase |
MyComponent |
| Redux Actions / Reducers | lower_kebab-case |
fetch-users |
try/catch blocks around async operations.ApiError) to provide rich context.__tests__ directories mirroring the source tree.describe/it blocks.No cursor or copilot configuration files currently exist in the repository. If these are added in the future:
.cursor/rules/..github/copilot-instructions.md.allowlist or blocklist directives.CONTRIBUTING.md (once created).If additional tooling or standards are added, update this file and communicate changes to all agents.