chore: format code & add format tools.

This commit is contained in:
jaywcjlove
2022-09-02 22:45:28 +08:00
parent 6da12fcb10
commit d007e11f20
12 changed files with 157 additions and 85 deletions

View File

@@ -4,7 +4,10 @@
"private": true,
"scripts": {
"start": "kkt start",
"build": "kkt build"
"build": "kkt build",
"prepare": "husky install",
"prettier": "prettier --write '**/*.{js,jsx,tsx,ts,less,md,json}'",
"pretty-quick": "pretty-quick --staged"
},
"license": "MIT",
"dependencies": {
@@ -52,6 +55,9 @@
"@types/react": "^18.0.17",
"@types/react-dom": "^18.0.6",
"@types/styled-components": "^5.1.25",
"husky": "^8.0.1",
"prettier": "^2.7.1",
"pretty-quick": "~3.1.3",
"kkt": "^7.2.0",
"markdown-react-code-preview-loader": "^2.1.2"
},