mirror of
https://github.com/ivuorinen/dotfiles.git
synced 2026-01-26 11:14:08 +00:00
fix(lint): packages, helpers, common
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
|||||||
@@ -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"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -14,4 +14,3 @@ run_with_dfm() {
|
|||||||
set +e
|
set +e
|
||||||
eval "$cmd"' bash "$cmd"
|
eval "$cmd"' bash "$cmd"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user