Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit a13c531

Browse filesBrowse files
committed
chore: add husky and nano-staged
1 parent 881bc5c commit a13c531
Copy full SHA for a13c531

File tree

Expand file treeCollapse file tree

3 files changed

+35
-1
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

3 files changed

+35
-1
lines changed
Open diff view settings
Collapse file

‎.husky/pre-commit‎

Copy file name to clipboard
+4Lines 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+
pnpm nano-staged
Collapse file

‎package.json‎

Copy file name to clipboardExpand all lines: package.json
+11-1Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,21 @@
1010
"docs:build": "vuepress build docs",
1111
"docs:dev": "vuepress dev docs",
1212
"docs:clean-dev": "vuepress dev docs --clean-cache",
13-
"lint": "prettier --check --write . && markdownlint docs/**/*.md"
13+
"lint": "prettier --check --write . && markdownlint docs/**/*.md",
14+
"prepare": "husky install"
15+
},
16+
"nano-staged": {
17+
".ts,.scss": "prettier --write",
18+
".md": [
19+
"prettier --write",
20+
"markdownlint"
21+
]
1422
},
1523
"dependencies": {
1624
"@vuepress/client": "2.0.0-beta.61",
25+
"husky": "^8.0.3",
1726
"markdownlint-cli": "0.33.0",
27+
"nano-staged": "^0.8.0",
1828
"prettier": "2.8.8",
1929
"vue": "3.2.47",
2030
"vuepress": "2.0.0-beta.61",
Collapse file

‎pnpm-lock.yaml‎

Copy file name to clipboardExpand all lines: pnpm-lock.yaml
+20Lines changed: 20 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.