Skip to content

Commit fee27bc

Browse files
committed
⬆️ chore: upgrade to husky8
1 parent 5176c18 commit fee27bc

File tree

4 files changed

+14
-12
lines changed

4 files changed

+14
-12
lines changed

.husky/commit-msg

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/usr/bin/env sh
2+
. "$(dirname -- "$0")/_/husky.sh"
3+
4+
npx --no-install commitlint --edit $1

.husky/pre-commit

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/usr/bin/env sh
2+
. "$(dirname -- "$0")/_/husky.sh"
3+
4+
npx --no-install lint-staged

.huskyrc

Lines changed: 0 additions & 6 deletions
This file was deleted.

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,18 @@
1010
"start": "tsc -w",
1111
"build": "lerna run build --parallel",
1212
"---------": "",
13-
"test": "lerna run test",
13+
"test": "jest",
1414
"test:coverage": "jest --coverage",
1515
"--------- ": "",
1616
"release": "multi-semantic-release",
1717
"--------- ": "",
1818
"lint": "npm run lint-eslint && npm run tsc",
1919
"tsc": "tsc -p tsconfig-check.json",
20-
"lint-eslint": "eslint --cache --fix --ext .js,.jsx,.ts,.tsx --format=pretty packages",
20+
"lint-eslint": "eslint --cache --fix --ext .js,.jsx,.ts,.tsx packages/**/src",
2121
"lint-staged": "lint-staged",
2222
"lint-styles": "stylelint",
23-
"lint-staged:js": "eslint --cache --ext .js,.jsx,.ts,.tsx --format=pretty",
24-
"lint:fix": "eslint --fix --cache --ext .js,.jsx,.ts,.tsx --format=pretty ",
23+
"lint-staged:js": "eslint --cache --ext .js,.jsx,.ts,.tsx",
24+
"lint:fix": "eslint --fix --cache --ext .js,.jsx,.ts,.tsx ",
2525
"prettier": "prettier --write '**/*.{js,jsx,tsx,ts,less,md,json}'",
2626
"--------- ": "",
2727
"clean": "lerna run clean && rm -rf es lib dist build coverage .umi .eslintcache apis",
@@ -55,10 +55,10 @@
5555
"commitlint-config-gitmoji": "^2.2.5-beta.1",
5656
"eslint": "^8",
5757
"father": "^4",
58-
"husky": "^4.3.8",
58+
"husky": "^8",
5959
"jest": "^29",
6060
"lerna": "^4.0.0",
61-
"lint-staged": "^10.5.3",
61+
"lint-staged": "^13",
6262
"multi-semantic-release": "^2.6.0",
6363
"prettier": "^2.2.1",
6464
"semantic-release": "^19.0.5",

0 commit comments

Comments
 (0)