@webpieces/config
v0.2.111
Published
Shared webpieces.config.json loader. Single source of truth for validation rule configuration consumed by both @webpieces/ai-hooks and @webpieces/architecture-validators.
Readme
@webpieces/config
Shared loader for webpieces.config.json — the single source of truth for
validation rule configuration in a webpieces workspace.
Two consumers share this package:
@webpieces/ai-hooks— write-time validation (Claude Code PreToolUse, openclawbefore_tool_call). Readsenabled+ rule options.@webpieces/architecture-validators— Nxvalidate-code/validate-ts-in-srcexecutors. Readsenabled,mode,disableAllowed,ignoreModifiedUntilEpoch, plus rule-specific options.
Flipping "enabled": false on a rule in webpieces.config.json turns it off
in both systems. That is the whole point.
File format
{
"rules": {
"no-any-unknown": {
"enabled": true,
"mode": "MODIFIED_CODE",
"disableAllowed": true
},
"max-file-lines": {
"enabled": true,
"mode": "MODIFIED_FILES",
"limit": 900
}
},
"rulesDir": []
}Rule names are kebab-case. Unknown option keys are preserved so a consumer that understands them can read them; consumers that don't, ignore them.
