Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .archgate/adrs/ARCH-005-testing-standards.rules.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { defineRules } from "../../src/formats/rules";
import { basename, dirname } from "node:path";

import { defineRules } from "../../src/formats/rules";

export default defineRules({
"test-mirrors-src": {
description: "Test directory structure should mirror src/ structure",
Expand Down
2 changes: 1 addition & 1 deletion .archgate/adrs/ARCH-006-dependency-policy.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ Keep production dependencies minimal. Prefer Bun built-ins over external package
2. Review of the package's dependency tree size, maintenance status, and download count
3. Approval by the project maintainer

Development dependencies (`devDependencies`) are less restricted but should still be minimal: linting (oxlint), formatting (prettier), commit conventions (commitlint), and type declarations only.
Development dependencies (`devDependencies`) are less restricted but should still be minimal: linting (oxlint), formatting (oxfmt), commit conventions (commitlint), and type declarations only.

## Do's and Don'ts

Expand Down
4 changes: 1 addition & 3 deletions .archgate/lint/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@ Place linter plugin files here, named by tool:
2. Reference it in your oxlint config:

```json
{
"plugins": [".archgate/lint/oxlint.js"]
}
{ "plugins": [".archgate/lint/oxlint.js"] }
```

## Why here?
Expand Down
35 changes: 35 additions & 0 deletions .claude/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"permissions": {
"allow": [
"Bash(oxfmt *)",
"Bash(oxlint *)",
"Bash(bun run *)",
"Bash(bun test *)",
"Bash(bun install *)",
"Bash(git *)",
"Bash(wc *)",
"Bash(ls *)",
"Bash(rm *)",
"Bash(proto *)",
"Read",
"Write",
"Edit",
"Glob",
"Grep"
]
},
"attribution": { "commit": "", "pr": "" },
"hooks": {
"PostToolUse": [
{
"matcher": "Write|Edit",
"hooks": [
{
"type": "command",
"command": "jq -r '.tool_input.file_path' | xargs -I {} oxfmt --write {}"
}
]
}
]
}
}
4 changes: 1 addition & 3 deletions .commitlintrc.json
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
{
"extends": ["@commitlint/config-conventional"]
}
{ "extends": ["@commitlint/config-conventional"] }
8 changes: 8 additions & 0 deletions .oxfmtrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"trailingComma": "es5",
"printWidth": 80,
"objectWrap": "collapse",
"sortImports": {},
"sortPackageJson": { "sortScripts": true },
"ignorePatterns": ["bun.lock", "CHANGELOG.md"]
}
7 changes: 0 additions & 7 deletions .prettierignore

This file was deleted.

1 change: 0 additions & 1 deletion .prettierrc.json

This file was deleted.

1 change: 1 addition & 0 deletions .simple-release.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { readFileSync, writeFileSync } from "node:fs";

import { NpmProject } from "@simple-release/npm";

class ArchgateProject extends NpmProject {
Expand Down
1 change: 0 additions & 1 deletion .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"recommendations": [
"esbenp.prettier-vscode",
"christian-kohler.npm-intellisense",
"christian-kohler.path-intellisense",
"redhat.vscode-yaml",
Expand Down
8 changes: 0 additions & 8 deletions .vscode/mcp.json

This file was deleted.

59 changes: 16 additions & 43 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,52 +3,25 @@
"editor.tabSize": 2,
"git.autofetch": true,
"git.confirmSync": false,
"prettier.enable": true,
"prettier.configPath": ".prettierrc.json",
"prettier.useEditorConfig": false,
"editor.defaultFormatter": "esbenp.prettier-vscode",
"oxfmt.enable": true,
"oxfmt.configPath": ".oxfmtrc.json",
"editor.defaultFormatter": "oxc.oxc-vscode",
"editor.formatOnSave": true,
"typescript.enablePromptUseWorkspaceTsdk": true,
"terminal.integrated.scrollback": 100000,
"[less]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[mdx]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[markdown]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[html]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[javascriptreact]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[yaml]": {
"editor.defaultFormatter": "redhat.vscode-yaml"
},
"[json]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[typescriptreact]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[jsonc]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[xml]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[css]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[less]": { "editor.defaultFormatter": "oxc.oxc-vscode" },
"[mdx]": { "editor.defaultFormatter": "oxc.oxc-vscode" },
"[markdown]": { "editor.defaultFormatter": "oxc.oxc-vscode" },
"[html]": { "editor.defaultFormatter": "oxc.oxc-vscode" },
"[javascriptreact]": { "editor.defaultFormatter": "oxc.oxc-vscode" },
"[javascript]": { "editor.defaultFormatter": "oxc.oxc-vscode" },
"[yaml]": { "editor.defaultFormatter": "redhat.vscode-yaml" },
"[json]": { "editor.defaultFormatter": "oxc.oxc-vscode" },
"[typescriptreact]": { "editor.defaultFormatter": "oxc.oxc-vscode" },
"[jsonc]": { "editor.defaultFormatter": "oxc.oxc-vscode" },
"[typescript]": { "editor.defaultFormatter": "oxc.oxc-vscode" },
"[xml]": { "editor.defaultFormatter": "oxc.oxc-vscode" },
"[css]": { "editor.defaultFormatter": "oxc.oxc-vscode" },
"redhat.telemetry.enabled": false,
"typescript.tsdk": "node_modules/typescript/lib",
"typescript.tsserver.maxTsServerMemory": 16384,
Expand Down
6 changes: 3 additions & 3 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@ Archgate is a CLI tool for AI governance via Architecture Decision Records (ADRs
- **Runtime:** Bun (>=1.2.21) — not Node.js compatible
- **Language:** TypeScript (strict mode, ESNext, ES modules)
- **CLI framework:** Commander.js (`@commander-js/extra-typings`)
- **Linter:** Oxlint | **Formatter:** Prettier | **Commits:** Conventional Commits
- **Linter:** Oxlint | **Formatter:** Oxfmt | **Commits:** Conventional Commits

## Commands

```bash
bun run src/cli.ts <command> # run CLI locally
bun run lint # oxlint
bun run typecheck # tsc --build
bun run format # prettier --write
bun run format:check # prettier --check
bun run format # oxfmt --write
bun run format:check # oxfmt --check
bun test # all tests
bun run validate # MANDATORY: lint + typecheck + format + test + ADR check + build check
bun run build # binaries → dist/ (darwin-arm64, linux-x64, win32-x64)
Expand Down
46 changes: 43 additions & 3 deletions bun.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading