Skip to content

Commit 2c3c741

Browse files
🔧 chore(npmrc, package.json, src): Update hoist patterns and packages
Add public-hoist-patterns to .npmrc and install various packages in package.json. Also update displayTypes in changelog/index.ts and add customTypeMap to support emojis for build, chore, and ci types. Finally, modify commitlint/index.ts to disable header length and footer blank checks.
1 parent 2345aa2 commit 2c3c741

File tree

4 files changed

+26
-5
lines changed

4 files changed

+26
-5
lines changed

.npmrc

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,11 @@
11
lockfile=false
2-
resolution-mode=highest
2+
resolution-mode=highest
3+
public-hoist-pattern[]=*@umijs/lint*
4+
public-hoist-pattern[]=*changelog*
5+
public-hoist-pattern[]=*commitlint*
6+
public-hoist-pattern[]=*eslint*
7+
public-hoist-pattern[]=*postcss*
8+
public-hoist-pattern[]=*prettier*
9+
public-hoist-pattern[]=*remark*
10+
public-hoist-pattern[]=*semantic-release*
11+
public-hoist-pattern[]=*stylelint*

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@
7272
"prettier-plugin-sort-json": "latest",
7373
"remark-frontmatter": "latest",
7474
"remark-gfm": "latest",
75+
"remark-lint": "latest",
7576
"remark-lint-checkbox-content-indent": "latest",
7677
"remark-lint-frontmatter-schema": "latest",
7778
"remark-lint-heading-whitespace": "latest",
@@ -115,7 +116,6 @@
115116
"prettier": "^2",
116117
"remark": "^14",
117118
"remark-cli": "^11",
118-
"remark-lint": "^9",
119119
"semantic-release": "^21",
120120
"stylelint": "^15",
121121
"typescript": "^5"

src/changelog/index.ts

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,20 @@
11
module.exports = {
2-
displayTypes: ['feat', 'fix', 'style', 'pref', 'build', 'refactor'],
3-
showAuthor: true,
4-
showAuthorAvatar: true,
52
newlineTimestamp: true,
63
reduceHeadingLevel: true,
74
addBackToTop: true,
85
showSummary: true,
96
scopeDisplayName: {
107
'*': 'misc',
118
},
9+
customTypeMap: {
10+
build: {
11+
emojj: '📦',
12+
},
13+
chore: {
14+
emojj: '🔧',
15+
},
16+
ci: {
17+
emojj: '👷',
18+
},
19+
},
1220
};

src/commitlint/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
module.exports = {
22
extends: ['gitmoji'],
3+
rules: {
4+
'footer-leading-blank': [0, 'never'],
5+
'header-max-length': [0, 'never'],
6+
},
37
};

0 commit comments

Comments
 (0)