fix(lint): packages, helpers, common

This commit is contained in:
Ismo Vuorinen
2025-06-12 00:31:52 +03:00
committed by Ismo Vuorinen
parent b6841a3ae0
commit 7ac2e2f1bf
3 changed files with 7 additions and 3 deletions

View File

@@ -208,6 +208,11 @@ lib::error::throw()
logger::log() logger::log()
{ {
local level=$1 local level=$1
if [[ -z "${LOG_LEVELS[$level]:-}" ]]; then
lib::error "Invalid log level: $level"
return 1
fi
shift shift
local msg=$1 local msg=$1

View File

@@ -10,7 +10,7 @@
"fix:markdown": "npx markdownlint -df .", "fix:markdown": "npx markdownlint -df .",
"lint:prettier": "npx prettier . --check", "lint:prettier": "npx prettier . --check",
"fix:prettier": "npx prettier . --write", "fix:prettier": "npx prettier . --write",
"test": "bats tests/dfm" "test": "npx bats --recursive tests/"
}, },
"repository": { "repository": {
"type": "git", "type": "git",
@@ -32,5 +32,5 @@
"bats": "^1.12.0", "bats": "^1.12.0",
"typescript": "^5.8.3" "typescript": "^5.8.3"
}, },
"packageManager": "yarn@1.22.22" "packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
} }

View File

@@ -14,4 +14,3 @@ run_with_dfm() {
set +e set +e
eval "$cmd"' bash "$cmd" eval "$cmd"' bash "$cmd"
} }