Get eslint to fix files in precommit git hook

We need the hook to fix things when possible.
This commit is contained in:
Franck Royer 2022-03-01 17:04:03 +11:00
parent 35414eaffd
commit 8029200984
No known key found for this signature in database
GPG Key ID: A82ED75A8DFC50A4
1 changed files with 1 additions and 2 deletions

View File

@ -162,8 +162,7 @@
], ],
"lint-staged": { "lint-staged": {
"*.ts": [ "*.ts": [
"eslint", "eslint --fix"
"prettier --write"
], ],
"*.{ts,json,conf.js}": [ "*.{ts,json,conf.js}": [
"prettier --write" "prettier --write"