I found that .simple-pre-commit.json (with dot) doesn’t work in the latest version.
➜ cat .simple-pre-commit.json
{
"simple-pre-commit": "npx lint-staged"
}
➜ npx simple-pre-commit
Couldn't parse command! Please add command to package.json or .simple-pre-commit.json. See README.md for details
os.exit is not a function
➜ mv .simple-pre-commit.json simple-pre-commit.json
➜ npx simple-pre-commit
Set pre commit hook: npx lint-staged
I personally prefer configs with ., but it is not a big deal. We can just change docs to promote only simple-pre-commit.json.
I found that
.simple-pre-commit.json
(with dot) doesn’t work in the latest version.I personally prefer configs with
.
, but it is not a big deal. We can just change docs to promote onlysimple-pre-commit.json
.