Skip to content

Commit 3626b6c

Browse files
committed
chore(deps): upgrade outdated deps, fixed version & add commitlint
1 parent 43b209c commit 3626b6c

File tree

7 files changed

+901
-1998
lines changed

7 files changed

+901
-1998
lines changed

.husky/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
_

.husky/commit-msg

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
yarn 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+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
yarn lint-staged

.huskyrc

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

.lintstagedrc

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

package.json

Lines changed: 36 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111
"files": [
1212
"generators"
1313
],
14+
"engines": {
15+
"node": ">=12.10.0"
16+
},
1417
"scripts": {
1518
"purge": "rimraf node_modules",
1619
"format": "prettier --write --ignore-path .gitignore **/*.{js,json,md,yml}",
@@ -19,32 +22,46 @@
1922
"release": "standard-version",
2023
"release:major": "yarn release --release-as major",
2124
"release:minor": "yarn release --release-as minor",
22-
"release:patch": "yarn release --release-as patch"
25+
"release:patch": "yarn release --release-as patch",
26+
"husky": "husky",
27+
"lint-staged": "lint-staged",
28+
"commitlint": "commitlint"
2329
},
2430
"keywords": [
2531
"yeoman-generator",
2632
"create-service-component"
2733
],
2834
"dependencies": {
29-
"chalk": "^4.1.0",
30-
"change-case": "^4.1.2",
31-
"pluralize": "^8.0.0",
32-
"yeoman-generator": "^4.12.0",
33-
"yosay": "^2.0.2"
35+
"chalk": "4.1.1",
36+
"change-case": "4.1.2",
37+
"pluralize": "8.0.0",
38+
"yeoman-generator": "5.3.0",
39+
"yosay": "2.0.2"
3440
},
3541
"devDependencies": {
36-
"@boringcodes/eslint-config": "^1.2.1",
37-
"@boringcodes/prettier-config": "^1.3.1",
38-
"eslint": "^7.17.0",
39-
"eslint-config-prettier": "^7.1.0",
40-
"eslint-config-standard": "^16.0.2",
41-
"eslint-plugin-import": "^2.22.1",
42-
"eslint-plugin-node": "^11.1.0",
43-
"eslint-plugin-promise": "^4.2.1",
44-
"husky": "^4.3.7",
45-
"lint-staged": "^10.5.3",
46-
"prettier": "^2.2.1",
47-
"rimraf": "^3.0.2",
48-
"standard-version": "^9.1.0"
42+
"@boringcodes/eslint-config": "1.2.6",
43+
"@boringcodes/prettier-config": "1.3.2",
44+
"@commitlint/cli": "12.1.4",
45+
"@commitlint/config-conventional": "12.1.4",
46+
"eslint": "7.28.0",
47+
"eslint-config-prettier": "8.3.0",
48+
"eslint-config-standard": "16.0.3",
49+
"eslint-plugin-import": "2.23.4",
50+
"eslint-plugin-node": "11.1.0",
51+
"eslint-plugin-promise": "5.1.0",
52+
"husky": "6.0.0",
53+
"lint-staged": "11.0.0",
54+
"prettier": "2.3.1",
55+
"rimraf": "3.0.2",
56+
"standard-version": "9.3.0"
57+
},
58+
"lint-staged": {
59+
"**/*.{js,json,md,yml}": "yarn format",
60+
"!(**/templates/*).js": "yarn lint"
61+
},
62+
"commitlint": {
63+
"extends": [
64+
"@commitlint/config-conventional"
65+
]
4966
}
5067
}

0 commit comments

Comments
 (0)