Skip to content

Commit 2743e4e

Browse files
CopilotJReinhold
andcommitted
Fix formatting and add critical formatting instructions to copilot-instructions.md
Co-authored-by: JReinhold <5678122+JReinhold@users.noreply.github.com>
1 parent a7c3846 commit 2743e4e

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

.github/copilot-instructions.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,19 @@ The `@storybook/mcp` package (in `packages/mcp`) is framework-agnostic:
122122
- `mcp-endpoint.e2e.test.ts` - MCP protocol and tool tests
123123
- `check-deps.e2e.test.ts` - Storybook version validation
124124

125+
**Formatting and checks (CRITICAL):**
126+
127+
- **ALWAYS format code after making changes**: Run `pnpm run format` before committing
128+
- **ALWAYS run checks after formatting**: Run `pnpm run check` to ensure all checks pass
129+
- **Fix any failing checks**: Analyze check results and fix issues until all checks pass
130+
- **This is mandatory for every commit** - formatting checks will fail in CI if not done
131+
- The workflow is:
132+
1. Make your code changes
133+
2. Run `pnpm run format` to format all files
134+
3. Run `pnpm run check` to verify all checks pass
135+
4. Fix any failing checks and repeat step 3 until all pass
136+
5. Commit your changes
137+
125138
**Type checking:**
126139

127140
- All packages have TypeScript strict mode enabled

.github/workflows/copilot-setup-steps.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: "Copilot Setup Steps"
1+
name: 'Copilot Setup Steps'
22

33
# Automatically run the setup steps when they are changed to allow for easy validation, and
44
# allow manual testing through the repository's "Actions" tab

0 commit comments

Comments
 (0)