mirror of
https://github.com/denysdovhan/wtfjs.git
synced 2025-08-17 04:40:15 +08:00
fix: fix formatting scritps
This commit is contained in:
13
package.json
13
package.json
@ -7,8 +7,8 @@
|
|||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"toc": "npx doctoc --github --title '# Table of Contents' --maxlevel 2 README*.md",
|
"toc": "npx doctoc --github --title '# Table of Contents' --maxlevel 2 README*.md",
|
||||||
"format": "prettier --write --ignore-unknown .",
|
"format": "prettier --write .",
|
||||||
"test": "prettier --check --ignore-unknown .",
|
"test": "prettier --check .",
|
||||||
"release": "npx semantic-release",
|
"release": "npx semantic-release",
|
||||||
"prepare": "husky install"
|
"prepare": "husky install"
|
||||||
},
|
},
|
||||||
@ -49,13 +49,8 @@
|
|||||||
"update-notifier": "^2.0.0"
|
"update-notifier": "^2.0.0"
|
||||||
},
|
},
|
||||||
"lint-staged": {
|
"lint-staged": {
|
||||||
"README*.md": [
|
"README*.md": "npm run toc",
|
||||||
"npm run toc",
|
"**/*": "prettier --write --ignore-unknown"
|
||||||
"npm run format"
|
|
||||||
],
|
|
||||||
"**/*": [
|
|
||||||
"npm run format"
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
"husky": {
|
"husky": {
|
||||||
"hooks": {
|
"hooks": {
|
||||||
|
Reference in New Issue
Block a user