Selaa lähdekoodia

chore: 基础配置调整

zhangyuhan 1 vuosi sitten
vanhempi
commit
c04adf36f0
4 muutettua tiedostoa jossa 31 lisäystä ja 1 poistoa
  1. 5 0
      .editorconfig
  2. 20 0
      .prettierrc.json
  3. 4 1
      package.json
  4. 2 0
      pnpm-workspace.yaml

+ 5 - 0
.editorconfig

@@ -0,0 +1,5 @@
+[*.{js,jsx,ts,tsx,vue}]
+indent_style = space
+indent_size = 2
+trim_trailing_whitespace = true
+insert_final_newline = true

+ 20 - 0
.prettierrc.json

@@ -0,0 +1,20 @@
+{
+  "semi": false,
+  "singleQuote": true,
+  "trailingComma": "none",
+  "overrides": [
+    {
+      "files": ["*.json5"],
+      "options": {
+        "singleQuote": false,
+        "quoteProps": "preserve"
+      }
+    },
+    {
+      "files": ["*.yml"],
+      "options": {
+        "singleQuote": false
+      }
+    }
+  ]
+}

+ 4 - 1
package.json

@@ -5,7 +5,9 @@
   "workspaces": [
     "packages/*",
     "data/*",
-    "apps/*"
+    "apps/*",
+    "plugins/*",
+    "core/*"
   ],
   "main": "index.js",
   "scripts": {
@@ -30,6 +32,7 @@
     "cross-env": "^7.0.3",
     "execa": "^7.1.1",
     "inquirer": "^9.1.5",
+    "prettier": "^3.1.0",
     "typescript": "^5.0.2",
     "vite": "^4.3.1"
   },

+ 2 - 0
pnpm-workspace.yaml

@@ -1,4 +1,6 @@
 packages:
   - './packages/**'
+  - './core/**'
   - './data/**'
   - './apps/**'
+  - './plugins/**'