0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2024-12-16 20:26:19 -05:00

chore: update commit hooks

This commit is contained in:
Gao Sun 2021-07-11 21:16:01 +08:00
parent b8c1da5ecc
commit 869a2425a2
No known key found for this signature in database
GPG key ID: 0F0EFA2E36639F31
4 changed files with 4 additions and 2 deletions

View file

@ -0,0 +1 @@
*.config.js

View file

@ -21,5 +21,6 @@ yarn-error.log*
# misc
cache
.*cache
.DS_Store
*.env

View file

@ -1,3 +1,3 @@
module.exports = {
'*.ts?(x)': ['yarn lint --fix', () => 'tsc -p tsconfig.json --noEmit'],
'*.ts?(x)': ['eslint --format pretty --cache --fix', () => 'tsc -p tsconfig.json --noEmit'],
};

View file

@ -8,7 +8,7 @@
"private": true,
"scripts": {
"build": "tsc",
"lint": "eslint --format pretty \"src/**\"",
"lint": "eslint --format pretty --ext .ts src",
"dev": "tsc-watch --onSuccess \"node ./build/index.js\"",
"prepare": "husky install"
},