fix: fix formatting scritps

This commit is contained in:
Denys Dovhan
2022-04-26 17:04:52 +03:00
parent 5773ebd846
commit e87440bb1a

View File

@ -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": {