chore(ask): configure pnpm and commit hooks

This commit is contained in:
Erik Kotsiuba
2026-04-18 21:14:20 +02:00
parent 28659c2dd7
commit 3ec7af2fd8
7 changed files with 1808 additions and 117 deletions
+1
View File
@@ -0,0 +1 @@
22.19.0
+1
View File
@@ -0,0 +1 @@
22.19.0
+94 -87
View File
@@ -1,89 +1,96 @@
{ {
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json", "$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
"vcs": { "vcs": {
"enabled": false, "enabled": false,
"clientKind": "git", "clientKind": "git",
"useIgnoreFile": false "useIgnoreFile": false
}, },
"files": { "files": {
"ignoreUnknown": false "ignoreUnknown": false
}, },
"formatter": { "formatter": {
"enabled": true, "enabled": true,
"indentStyle": "tab" "indentStyle": "tab"
}, },
"linter": { "linter": {
"enabled": true, "enabled": true,
"rules": { "rules": {
"recommended": true, "recommended": true,
"complexity": { "complexity": {
"noExcessiveCognitiveComplexity": { "noExcessiveCognitiveComplexity": {
"level": "error", "level": "error",
"options": { "options": {
"maxAllowedComplexity": 12 "maxAllowedComplexity": 12
} }
}, },
"noExcessiveLinesPerFunction": { "noExcessiveLinesPerFunction": {
"level": "warn", "level": "warn",
"options": { "options": {
"maxLines": 70, "maxLines": 70,
"skipBlankLines": true, "skipBlankLines": true,
"skipIifes": true "skipIifes": true
} }
} }
}, },
"correctness": { "correctness": {
"noUnusedFunctionParameters": "error" "noUnusedFunctionParameters": "error"
}, },
"performance": { "performance": {
"noAccumulatingSpread": "error" "noAccumulatingSpread": "error"
}, },
"style": { "style": {
"noDefaultExport": "error", "noDefaultExport": "error",
"noNestedTernary": "error", "noNestedTernary": "error",
"noNonNullAssertion": "error", "noNonNullAssertion": "error",
"noParameterAssign": "error", "noParameterAssign": "error",
"useAsConstAssertion": "error", "useAsConstAssertion": "error",
"useConst": "error", "useConst": "error",
"useImportType": "error", "useImportType": "error",
"useNamingConvention": "error", "useNamingConvention": "error",
"useNodejsImportProtocol": "error" "useNodejsImportProtocol": "error"
} }
} }
}, },
"javascript": { "javascript": {
"formatter": { "formatter": {
"quoteStyle": "double" "quoteStyle": "double"
} }
}, },
"overrides": [ "overrides": [
{ {
"includes": ["tests/**/*.ts"], "includes": [
"linter": { "tests/**/*.ts"
"rules": { ],
"complexity": { "linter": {
"noExcessiveLinesPerFunction": "off" "rules": {
} "complexity": {
} "noExcessiveLinesPerFunction": "off"
} }
}, }
{ }
"includes": ["src/index.ts"], },
"linter": { {
"rules": { "includes": [
"style": { "src/index.ts"
"noDefaultExport": "off" ],
} "linter": {
} "rules": {
} "style": {
} "noDefaultExport": "off"
], }
"assist": { }
"enabled": true, }
"actions": { }
"source": { ],
"organizeImports": "on" "assist": {
} "enabled": true,
} "actions": {
} "source": {
"organizeImports": "on"
}
}
},
"extends": [
"ultracite/biome/core"
]
} }
+3
View File
@@ -0,0 +1,3 @@
module.exports = {
extends: ["@commitlint/config-conventional"],
};
+17
View File
@@ -0,0 +1,17 @@
pre-commit:
jobs:
- run: npx ultracite fix
stage_fixed: true
prepare-commit-msg:
commands:
commitzen:
interactive: true
run: pnpm exec cz --hook
env:
LEFTHOOK: "0"
commit-msg:
commands:
lint-commit-message:
run: pnpm exec commitlint --edit {1}
+52 -30
View File
@@ -1,32 +1,54 @@
{ {
"dependencies": { "dependencies": {
"@mariozechner/pi-coding-agent": "0.67.3", "@mariozechner/pi-coding-agent": "0.67.3",
"@mariozechner/pi-tui": "0.67.3", "@mariozechner/pi-tui": "0.67.3",
"@sinclair/typebox": "0.34.49" "@sinclair/typebox": "0.34.49"
}, },
"devDependencies": { "devDependencies": {
"@biomejs/biome": "2.4.12", "@biomejs/biome": "2.4.12",
"@types/node": "25.6.0", "@commitlint/cli": "^19.8.1",
"typescript": "6.0.2" "@commitlint/config-conventional": "^19.8.1",
}, "@types/node": "25.6.0",
"name": "pi-ask", "commitizen": "^4.3.1",
"scripts": { "cz-conventional-changelog": "^3.3.0",
"test": "node --test tests/*.test.ts", "lefthook": "^2.1.6",
"typecheck": "tsc -p tsconfig.json", "typescript": "6.0.2",
"format": "biome format --write .", "ultracite": "7.6.0"
"lint": "biome lint --write .", },
"check": "biome check --write .", "name": "pi-ask",
"check:ci": "biome ci ." "scripts": {
}, "test": "node --test tests/*.test.ts",
"type": "module", "typecheck": "tsc -p tsconfig.json",
"private": true, "format": "biome format --write .",
"packageManager": "pnpm@10.33.0", "lint": "biome lint --write .",
"pnpm": { "check": "ultracite check",
"overrides": { "check:ci": "biome ci .",
"@mariozechner/pi-agent-core": "0.67.3", "fix": "ultracite fix",
"@mariozechner/pi-ai": "0.67.3", "prepare": "lefthook install",
"@mariozechner/pi-tui": "0.67.3", "commit": "cz",
"@mariozechner/pi-coding-agent": "0.67.3" "commitlint": "commitlint"
} },
} "type": "module",
"private": true,
"engines": {
"node": "22.19.x",
"pnpm": "10.33.0"
},
"packageManager": "pnpm@10.33.0",
"config": {
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
}
},
"pnpm": {
"overrides": {
"@mariozechner/pi-agent-core": "0.67.3",
"@mariozechner/pi-ai": "0.67.3",
"@mariozechner/pi-tui": "0.67.3",
"@mariozechner/pi-coding-agent": "0.67.3"
},
"ignoredBuiltDependencies": [
"lefthook"
]
}
} }
+1640
View File
File diff suppressed because it is too large Load Diff