40530d757e
requireEnv causes silent worker crash when env vars are missing —
thread shows 0 steps with no error. Use optionalEnv + sensible defaults.
Also added pitfall guidance in skill author docs.
小橘 🍊
88 lines
1.9 KiB
JSON
88 lines
1.9 KiB
JSON
{
|
|
"$schema": "https://biomejs.dev/schemas/2.4.15/schema.json",
|
|
"files": {
|
|
"includes": [
|
|
"**",
|
|
"!**/dist",
|
|
"!**/node_modules",
|
|
"!packages/workflow/workflow",
|
|
"!xiaoju/scripts/bundle.ts"
|
|
]
|
|
},
|
|
"assist": { "actions": { "source": { "organizeImports": "on" } } },
|
|
"formatter": {
|
|
"indentStyle": "space",
|
|
"indentWidth": 2,
|
|
"lineWidth": 100
|
|
},
|
|
"javascript": {
|
|
"formatter": {
|
|
"quoteStyle": "double",
|
|
"semicolons": "always"
|
|
}
|
|
},
|
|
"overrides": [
|
|
{
|
|
"includes": ["**/__tests__/**"],
|
|
"linter": {
|
|
"rules": {
|
|
"suspicious": {
|
|
"noExplicitAny": "off"
|
|
},
|
|
"style": {
|
|
"noNonNullAssertion": "off"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"includes": ["**/*.d.ts"],
|
|
"linter": {
|
|
"rules": {
|
|
"style": {
|
|
"noDefaultExport": "off"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"linter": {
|
|
"enabled": true,
|
|
"rules": {
|
|
"recommended": true,
|
|
"style": {
|
|
"noDefaultExport": "error",
|
|
"useNodejsImportProtocol": "error",
|
|
"noNamespace": "error",
|
|
"noParameterProperties": "error",
|
|
"useImportType": "error",
|
|
"useShorthandFunctionType": "error",
|
|
"useConst": "error",
|
|
"useEnumInitializers": "error"
|
|
},
|
|
"complexity": {
|
|
"noThisInStatic": "error",
|
|
"noStaticOnlyClass": "error",
|
|
"noForEach": "error",
|
|
"useArrowFunction": "error",
|
|
"noExcessiveCognitiveComplexity": {
|
|
"level": "warn",
|
|
"options": {
|
|
"maxAllowedComplexity": 15
|
|
}
|
|
}
|
|
},
|
|
"suspicious": {
|
|
"noExplicitAny": "error",
|
|
"noVar": "error",
|
|
"noConsole": "error"
|
|
},
|
|
"correctness": {
|
|
"noUnusedVariables": "error",
|
|
"noUnusedImports": "error"
|
|
},
|
|
"nursery": {}
|
|
}
|
|
}
|
|
}
|