0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2025-01-06 20:40:08 -05:00

chore: update commit hooks

This commit is contained in:
Gao Sun 2021-07-11 21:16:01 +08:00 committed by Gao Sun
parent 4778ccddd1
commit 1d8ac4bc8e
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"
},