在基础模板中新增了oak助手的项目检查配置

This commit is contained in:
Pan Qiancheng 2024-11-05 19:52:02 +08:00
parent 2e61fd1e5c
commit e86f2c0cff
1 changed files with 21 additions and 0 deletions

21
template/oak.config.json Normal file
View File

@ -0,0 +1,21 @@
{
"projectDir": "./",
"trigger": {
"onReturnLiteral": "warn",
"onNoAsyncFn": "error",
"onNoAwaitContext": "error"
},
"i18n": {
"onMissingKey": "error",
"onKeyBlank": "warn"
},
"oakComponent": {
"onInvalidEntity": "error",
"onInvalidIsList": "error",
"onMissingDataAttrs": "warn",
"onMissingMethods": "error"
},
"oakPath": {
"onInvalidPath": "error"
}
}