mirror of
https://github.com/ivuorinen/dotfiles.git
synced 2026-01-26 03:04:06 +00:00
fix(lint): packages, helpers, common
This commit is contained in:
@@ -208,6 +208,11 @@ lib::error::throw()
|
||||
logger::log()
|
||||
{
|
||||
local level=$1
|
||||
if [[ -z "${LOG_LEVELS[$level]:-}" ]]; then
|
||||
lib::error "Invalid log level: $level"
|
||||
return 1
|
||||
fi
|
||||
|
||||
shift
|
||||
local msg=$1
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
"fix:markdown": "npx markdownlint -df .",
|
||||
"lint:prettier": "npx prettier . --check",
|
||||
"fix:prettier": "npx prettier . --write",
|
||||
"test": "bats tests/dfm"
|
||||
"test": "npx bats --recursive tests/"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
@@ -32,5 +32,5 @@
|
||||
"bats": "^1.12.0",
|
||||
"typescript": "^5.8.3"
|
||||
},
|
||||
"packageManager": "yarn@1.22.22"
|
||||
"packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
|
||||
}
|
||||
|
||||
@@ -14,4 +14,3 @@ run_with_dfm() {
|
||||
set +e
|
||||
eval "$cmd"' bash "$cmd"
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user