chore(ask): configure pnpm and commit hooks
This commit is contained in:
@@ -0,0 +1 @@
|
||||
22.19.0
|
||||
+94
-87
@@ -1,89 +1,96 @@
|
||||
{
|
||||
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
|
||||
"vcs": {
|
||||
"enabled": false,
|
||||
"clientKind": "git",
|
||||
"useIgnoreFile": false
|
||||
},
|
||||
"files": {
|
||||
"ignoreUnknown": false
|
||||
},
|
||||
"formatter": {
|
||||
"enabled": true,
|
||||
"indentStyle": "tab"
|
||||
},
|
||||
"linter": {
|
||||
"enabled": true,
|
||||
"rules": {
|
||||
"recommended": true,
|
||||
"complexity": {
|
||||
"noExcessiveCognitiveComplexity": {
|
||||
"level": "error",
|
||||
"options": {
|
||||
"maxAllowedComplexity": 12
|
||||
}
|
||||
},
|
||||
"noExcessiveLinesPerFunction": {
|
||||
"level": "warn",
|
||||
"options": {
|
||||
"maxLines": 70,
|
||||
"skipBlankLines": true,
|
||||
"skipIifes": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"correctness": {
|
||||
"noUnusedFunctionParameters": "error"
|
||||
},
|
||||
"performance": {
|
||||
"noAccumulatingSpread": "error"
|
||||
},
|
||||
"style": {
|
||||
"noDefaultExport": "error",
|
||||
"noNestedTernary": "error",
|
||||
"noNonNullAssertion": "error",
|
||||
"noParameterAssign": "error",
|
||||
"useAsConstAssertion": "error",
|
||||
"useConst": "error",
|
||||
"useImportType": "error",
|
||||
"useNamingConvention": "error",
|
||||
"useNodejsImportProtocol": "error"
|
||||
}
|
||||
}
|
||||
},
|
||||
"javascript": {
|
||||
"formatter": {
|
||||
"quoteStyle": "double"
|
||||
}
|
||||
},
|
||||
"overrides": [
|
||||
{
|
||||
"includes": ["tests/**/*.ts"],
|
||||
"linter": {
|
||||
"rules": {
|
||||
"complexity": {
|
||||
"noExcessiveLinesPerFunction": "off"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"includes": ["src/index.ts"],
|
||||
"linter": {
|
||||
"rules": {
|
||||
"style": {
|
||||
"noDefaultExport": "off"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"assist": {
|
||||
"enabled": true,
|
||||
"actions": {
|
||||
"source": {
|
||||
"organizeImports": "on"
|
||||
}
|
||||
}
|
||||
}
|
||||
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
|
||||
"vcs": {
|
||||
"enabled": false,
|
||||
"clientKind": "git",
|
||||
"useIgnoreFile": false
|
||||
},
|
||||
"files": {
|
||||
"ignoreUnknown": false
|
||||
},
|
||||
"formatter": {
|
||||
"enabled": true,
|
||||
"indentStyle": "tab"
|
||||
},
|
||||
"linter": {
|
||||
"enabled": true,
|
||||
"rules": {
|
||||
"recommended": true,
|
||||
"complexity": {
|
||||
"noExcessiveCognitiveComplexity": {
|
||||
"level": "error",
|
||||
"options": {
|
||||
"maxAllowedComplexity": 12
|
||||
}
|
||||
},
|
||||
"noExcessiveLinesPerFunction": {
|
||||
"level": "warn",
|
||||
"options": {
|
||||
"maxLines": 70,
|
||||
"skipBlankLines": true,
|
||||
"skipIifes": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"correctness": {
|
||||
"noUnusedFunctionParameters": "error"
|
||||
},
|
||||
"performance": {
|
||||
"noAccumulatingSpread": "error"
|
||||
},
|
||||
"style": {
|
||||
"noDefaultExport": "error",
|
||||
"noNestedTernary": "error",
|
||||
"noNonNullAssertion": "error",
|
||||
"noParameterAssign": "error",
|
||||
"useAsConstAssertion": "error",
|
||||
"useConst": "error",
|
||||
"useImportType": "error",
|
||||
"useNamingConvention": "error",
|
||||
"useNodejsImportProtocol": "error"
|
||||
}
|
||||
}
|
||||
},
|
||||
"javascript": {
|
||||
"formatter": {
|
||||
"quoteStyle": "double"
|
||||
}
|
||||
},
|
||||
"overrides": [
|
||||
{
|
||||
"includes": [
|
||||
"tests/**/*.ts"
|
||||
],
|
||||
"linter": {
|
||||
"rules": {
|
||||
"complexity": {
|
||||
"noExcessiveLinesPerFunction": "off"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"includes": [
|
||||
"src/index.ts"
|
||||
],
|
||||
"linter": {
|
||||
"rules": {
|
||||
"style": {
|
||||
"noDefaultExport": "off"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"assist": {
|
||||
"enabled": true,
|
||||
"actions": {
|
||||
"source": {
|
||||
"organizeImports": "on"
|
||||
}
|
||||
}
|
||||
},
|
||||
"extends": [
|
||||
"ultracite/biome/core"
|
||||
]
|
||||
}
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
module.exports = {
|
||||
extends: ["@commitlint/config-conventional"],
|
||||
};
|
||||
@@ -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
@@ -1,32 +1,54 @@
|
||||
{
|
||||
"dependencies": {
|
||||
"@mariozechner/pi-coding-agent": "0.67.3",
|
||||
"@mariozechner/pi-tui": "0.67.3",
|
||||
"@sinclair/typebox": "0.34.49"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@biomejs/biome": "2.4.12",
|
||||
"@types/node": "25.6.0",
|
||||
"typescript": "6.0.2"
|
||||
},
|
||||
"name": "pi-ask",
|
||||
"scripts": {
|
||||
"test": "node --test tests/*.test.ts",
|
||||
"typecheck": "tsc -p tsconfig.json",
|
||||
"format": "biome format --write .",
|
||||
"lint": "biome lint --write .",
|
||||
"check": "biome check --write .",
|
||||
"check:ci": "biome ci ."
|
||||
},
|
||||
"type": "module",
|
||||
"private": true,
|
||||
"packageManager": "pnpm@10.33.0",
|
||||
"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"
|
||||
}
|
||||
}
|
||||
"dependencies": {
|
||||
"@mariozechner/pi-coding-agent": "0.67.3",
|
||||
"@mariozechner/pi-tui": "0.67.3",
|
||||
"@sinclair/typebox": "0.34.49"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@biomejs/biome": "2.4.12",
|
||||
"@commitlint/cli": "^19.8.1",
|
||||
"@commitlint/config-conventional": "^19.8.1",
|
||||
"@types/node": "25.6.0",
|
||||
"commitizen": "^4.3.1",
|
||||
"cz-conventional-changelog": "^3.3.0",
|
||||
"lefthook": "^2.1.6",
|
||||
"typescript": "6.0.2",
|
||||
"ultracite": "7.6.0"
|
||||
},
|
||||
"name": "pi-ask",
|
||||
"scripts": {
|
||||
"test": "node --test tests/*.test.ts",
|
||||
"typecheck": "tsc -p tsconfig.json",
|
||||
"format": "biome format --write .",
|
||||
"lint": "biome lint --write .",
|
||||
"check": "ultracite check",
|
||||
"check:ci": "biome ci .",
|
||||
"fix": "ultracite fix",
|
||||
"prepare": "lefthook install",
|
||||
"commit": "cz",
|
||||
"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"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
Generated
+1640
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user