mirror of
https://github.com/schpet/linear-cli.git
synced 2026-09-14 14:26:50 +08:00
80cf681d7e
The README documented that environment variables take precedence over config file values, but the code had the opposite behavior. This fix corrects the precedence order in getRawOption to match the documentation: 1. CLI flags (highest priority) 2. Environment variables 3. Config file (lowest priority) Also adds subprocess-based tests that verify: - Env vars win when both env var and config file are present - Config file is used as fallback when no env var is set 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
19 lines
415 B
JSON
19 lines
415 B
JSON
{
|
|
"hooks": {
|
|
"PostToolUse": [
|
|
{
|
|
"matcher": "Edit|MultiEdit|Write",
|
|
"hooks": [
|
|
{
|
|
"type": "command",
|
|
"command": "jq -r '.tool_input.file_path | select(endswith(\".js\") or endswith(\".ts\") or endswith(\".jsx\") or endswith(\".tsx\"))' | xargs -r deno fmt"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"enabledPlugins": {
|
|
"jjagent@jjagent": false
|
|
}
|
|
}
|