Skip to content

docs: split code-style rules into per-rule files - #5543

Merged
adrians5j merged 8 commits into
nextfrom
adrian/code-style-rules
Aug 4, 2026
Merged

docs: split code-style rules into per-rule files#5543
adrians5j merged 8 commits into
nextfrom
adrian/code-style-rules

Conversation

@adrians5j

Copy link
Copy Markdown
Member

Summary

  • Moves the code conventions out of AGENTS.md ## Code into ai-context/code-style/, one ESLint-style rule per file (do this / don't do this).
  • Adds ai-context/code-style/README.md as the index.
  • AGENTS.md ## Code now just points to the folder + keeps the "run git add ." workflow bullet.

Rules split out

  • comments.md, es-modules.md, one-import-per-line.md, one-class-per-file.md, no-backwards-compat.md, no-console-in-backend.md, no-inline-class-in-create-implementation.md

Docs-only change.

🤖 Generated with Claude Code

adrians5j and others added 7 commits August 4, 2026 13:05
Move code conventions out of AGENTS.md into ai-context/code-style/,
one ESLint-style rule per file with an index README. AGENTS.md Code
section now points to the folder.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01V1gz6gxTdC93NRVUvU5kJW
…mple

- Move the CSS class-name (cn helper) rule out of AGENTS.md into
  ai-context/code-style/compose-css-class-names.md.
- Fix one-import-per-line example: formatter had collapsed the Good
  block to match Bad; now shows one import per line.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
The next-branch rule dropped during the merge; move it into its own
rule file to match the per-rule pattern.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@adrians5j

Copy link
Copy Markdown
Member Author

/vitest

@github-actions

github-actions Bot commented Aug 4, 2026

Copy link
Copy Markdown

Vitest tests have been initiated (for more information, click here). ✨

Group Status
No storage ❌ 0/57 passed
DDB ❌ 0/17 passed
DDB+OS ❌ 0/19 passed
SQL ❌ 0/10 passed
PGlite ❌ 0/10 passed

@adrians5j
adrians5j merged commit 9f8a830 into next Aug 4, 2026
111 of 116 checks passed
@adrians5j
adrians5j deleted the adrian/code-style-rules branch August 4, 2026 13:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant