andy 1 year ago
parent
commit
3e46bfaf66
2 changed files with 4 additions and 2 deletions
  1. 2 1
      .prettierignore
  2. 2 1
      package.json

+ 2 - 1
.prettierignore

@@ -1,2 +1,3 @@
 unpackage
-node_modules
+node_modules
+uni_modules

+ 2 - 1
package.json

@@ -4,7 +4,8 @@
   "description": "",
   "main": "index.js",
   "scripts": {
-    "prepare": "husky install"
+    "prepare": "husky install",
+    "prettier": "prettier --config prettier.config.js --write \"**/*.{ts,js,vue,css,scss,less,html}\""
   },
   "keywords": [],
   "author": "",