-
Notifications
You must be signed in to change notification settings - Fork 4
Harden extmgr package flows and migrate tooling to Biome #11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
896a0d2
2e4b556
ccabf9f
8f157cf
61cc3c1
094f4db
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,22 @@ | ||
| #!/usr/bin/env sh | ||
| set -eu | ||
|
|
||
| # fnm: set up the correct Node/pnpm environment | ||
| export PATH="$HOME/.fnm:$PATH" | ||
| eval "$(fnm env --shell bash)" | ||
| if ! command -v node >/dev/null 2>&1; then | ||
| echo "pre-commit: node was not found in PATH." >&2 | ||
| echo "If you use a Node version manager, expose it in ~/.config/husky/init.sh so Git hooks use your own Node." >&2 | ||
| exit 127 | ||
| fi | ||
|
|
||
| pnpm run check | ||
| if command -v corepack >/dev/null 2>&1; then | ||
| if corepack pnpm --version >/dev/null 2>&1; then | ||
| exec corepack pnpm run check | ||
| fi | ||
| fi | ||
|
|
||
| if command -v pnpm >/dev/null 2>&1; then | ||
| exec pnpm run check | ||
| fi | ||
|
|
||
| echo "pre-commit: pnpm was not found in PATH." >&2 | ||
| echo "Install pnpm, or expose it in ~/.config/husky/init.sh for Git hooks." >&2 | ||
| exit 127 | ||
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,80 @@ | ||
| { | ||
| "$schema": "https://biomejs.dev/schemas/2.4.9/schema.json", | ||
| "vcs": { | ||
| "enabled": true, | ||
| "clientKind": "git", | ||
| "useIgnoreFile": true | ||
| }, | ||
| "files": { | ||
| "ignoreUnknown": true, | ||
| "includes": ["**", "!docs/assets/tailwind.css", "!docs/package-lock.json"] | ||
| }, | ||
| "formatter": { | ||
| "enabled": true, | ||
| "indentStyle": "space", | ||
| "indentWidth": 2, | ||
| "lineWidth": 100 | ||
| }, | ||
| "javascript": { | ||
| "formatter": { | ||
| "quoteStyle": "double", | ||
| "trailingCommas": "es5", | ||
| "semicolons": "always" | ||
| } | ||
| }, | ||
| "linter": { | ||
| "enabled": true, | ||
| "rules": { | ||
| "recommended": true, | ||
| "correctness": { | ||
| "noUnusedImports": "error", | ||
| "noUnusedVariables": "warn" | ||
| }, | ||
| "performance": { | ||
| "noNamespaceImport": "error" | ||
| }, | ||
| "style": { | ||
| "noCommonJs": "error", | ||
| "useImportType": { | ||
| "level": "error", | ||
| "options": { | ||
| "style": "inlineType" | ||
| } | ||
| }, | ||
| "useNodejsImportProtocol": "error" | ||
| }, | ||
| "suspicious": { | ||
| "noExplicitAny": "error" | ||
| }, | ||
| "nursery": { | ||
| "noFloatingPromises": "error" | ||
| } | ||
| } | ||
| }, | ||
| "overrides": [ | ||
| { | ||
| "includes": ["test/**/*.ts"], | ||
| "linter": { | ||
| "rules": { | ||
| "nursery": { | ||
| "noFloatingPromises": "off" | ||
| } | ||
| } | ||
| } | ||
| }, | ||
| { | ||
| "includes": ["docs/**/*"], | ||
| "linter": { | ||
| "enabled": false | ||
| } | ||
| } | ||
| ], | ||
| "assist": { | ||
| "enabled": true, | ||
| "actions": { | ||
| "source": { | ||
| "organizeImports": "on" | ||
| } | ||
| } | ||
| } | ||
| } |
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -19,14 +19,14 @@ | |
| "README.md" | ||
| ], | ||
| "scripts": { | ||
| "lint": "eslint . --max-warnings=0", | ||
| "lint:fix": "eslint . --fix", | ||
| "format": "prettier --write .", | ||
| "format:check": "prettier --check .", | ||
| "lint": "biome lint . --error-on-warnings", | ||
| "lint:fix": "biome check --write .", | ||
| "format": "biome format --write .", | ||
| "format:check": "biome format .", | ||
| "typecheck": "tsc --noEmit -p tsconfig.json", | ||
| "smoke-test": "node --import=tsx ./scripts/smoke-test.mjs", | ||
| "test": "node --import=tsx --test ./test/*.test.ts", | ||
| "check": "pnpm run typecheck && pnpm run smoke-test && pnpm run test && pnpm run lint && pnpm run format:check", | ||
| "check": "tsc --noEmit -p tsconfig.json && node --import=tsx ./scripts/smoke-test.mjs && node --import=tsx --test ./test/*.test.ts && pnpm run lint && pnpm run format:check", | ||
| "prepublishOnly": "pnpm run check", | ||
| "prepare": "husky" | ||
| }, | ||
|
|
@@ -42,22 +42,19 @@ | |
| "@mariozechner/pi-tui": "*" | ||
| }, | ||
| "devDependencies": { | ||
| "@mariozechner/pi-coding-agent": "^0.62.0", | ||
| "@mariozechner/pi-tui": "^0.62.0", | ||
| "@types/node": "^22.13.10", | ||
| "@typescript-eslint/eslint-plugin": "^8.42.0", | ||
| "@typescript-eslint/parser": "^8.42.0", | ||
| "eslint": "^9.38.0", | ||
| "eslint-config-prettier": "^10.1.8", | ||
| "@biomejs/biome": "^2.4.9", | ||
| "@mariozechner/pi-coding-agent": "^0.63.1", | ||
| "@mariozechner/pi-tui": "^0.63.1", | ||
| "@types/node": "^22.19.10", | ||
| "husky": "^9.1.7", | ||
| "prettier": "^3.8.1", | ||
| "tsx": "^4.19.3", | ||
| "tsx": "^4.21.0", | ||
| "typescript": "^5.9.3" | ||
| }, | ||
| "author": "ayagmar", | ||
| "license": "MIT", | ||
| "packageManager": "[email protected]", | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Make pnpm versioning single-sourced. Line 55 adds a pinned 🤖 Prompt for AI Agents |
||
| "engines": { | ||
| "node": ">=22.5.0" | ||
| "node": ">=22" | ||
| }, | ||
| "repository": { | ||
| "type": "git", | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.