Juniors Best Practice
A juniors-focused set of React and TypeScript best practices, organized by scope (JS, React, styling, devtools, and more). Each guide is short, practical, and optimized for agents and LLMs.
Structure
rules/- Individual rule files (one per guide)_sections.md- Section metadata (titles, impacts, descriptions)_template.md- Template for creating new rules (AI frontmatter)scope-description.md- Individual rule files
metadata.json- Document metadata (version, organization, abstract)AGENTS.md- Compiled overview (generated)
Creating a New Rule
- Copy
rules/_template.mdtorules/scope-description.md - Choose the appropriate scope prefix:
beginner-for Beginner Foundationstypescript-for TypeScriptreact-for Reactstyling-for Stylingdevtools-for Devtoolsassets-for Assetsgit-for Gitrest-for REST API architecture
- Fill in the AI frontmatter and the guide content
- Include concise examples where they help understanding
Rule File Structure
Each rule file should follow this structure:
---
title: Rule Title Here
impact: MEDIUM
tags: tag1, tag2
---
# Rule Title Here
Brief explanation of the rule and why it matters.
**Incorrect (description of what's wrong):**
```typescript
// Bad code example here
```
**Correct (description of what's right):**
```typescript
// Good code example here
```
Reference: [Link to documentation or resource](https://example.com)File Naming Convention
- Files starting with
_are special (excluded from build) - Rule files:
scope-description.md(e.g.,beginner-nullish-vs-or.md) - Section is inferred from filename prefix
- Rules are sorted alphabetically by title within each section
Impact Levels
HIGH- Foundational habits and core principlesMEDIUM- Practical improvements for everyday workLOW-MEDIUM- Useful but more situationalLOW- Team-level conventions
Contributing
When adding or modifying rules:
- Use the correct filename prefix for your section
- Follow the
_template.mdstructure - Keep the title action-oriented and easy to scan
- Run
pnpm buildto regenerate AGENTS.md
Acknowledgments
Inspired by public React and TypeScript best practices and community guidelines.