Run script(like linter or formatter) against staged git files.
create .lint-staged
on project root directory.
[
{
"fileExtensions": ["swift"],
"commands": ["swift-format -i"],
"stagedOnly": true
}
]
swift run -c release lint-staged
mint run yanamura/lint-staged lint-staged