Skip to content

Commit f20f1a4

Browse files
committed
ci: switch pretty-quick with lint-staged
1 parent 5d6d802 commit f20f1a4

File tree

5 files changed

+2154
-710
lines changed

5 files changed

+2154
-710
lines changed

.eslintrc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
}
2828
},
2929
"rules": {
30-
"prettier/prettier": ["error"],
30+
"prettier/prettier": ["warn"],
3131
"no-console": 0,
3232
"class-methods-use-this": 0
3333
}

.husky/pre-commit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/bin/sh
22
. "$(dirname "$0")/_/husky.sh"
33

4-
npx pretty-quick --staged && npm exec concurrently npm:test:once npm:lint
4+
npx lint-staged && npm run test:once

.lintstagedrc.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
"*": "prettier --ignore-unknown --write"
2+
"*.ts": "eslint --fix"

0 commit comments

Comments
 (0)