diff --git a/.husky/pre-commit b/.husky/pre-commit
new file mode 100644
index 0000000..36af219
--- /dev/null
+++ b/.husky/pre-commit
@@ -0,0 +1,4 @@
+#!/bin/sh
+. "$(dirname "$0")/_/husky.sh"
+
+npx lint-staged
diff --git a/jsconfig.json b/jsconfig.json
index 4aafc5f..fc2b38c 100644
--- a/jsconfig.json
+++ b/jsconfig.json
@@ -4,6 +4,7 @@
"module": "esnext",
"baseUrl": "./",
"moduleResolution": "node",
+ "jsx": "preserve",
"paths": {
"@/*": [
"src/*"
diff --git a/package.json b/package.json
index a778df8..d7d9b9d 100644
--- a/package.json
+++ b/package.json
@@ -11,6 +11,8 @@
"dependencies": {
"axios": "^0.27.2",
"core-js": "^3.8.3",
+ "element-plus": "1.3.0-beta.5",
+ "lint-staged": "13.0.3",
"vue": "^3.2.13",
"vue-router": "^4.0.3",
"vuex": "^4.0.0"
@@ -25,6 +27,7 @@
"@vue/cli-plugin-router": "~5.0.0",
"@vue/cli-plugin-vuex": "~5.0.0",
"@vue/cli-service": "~5.0.0",
+ "@vue/composition-api": "^1.1.0",
"@vue/eslint-config-standard": "^6.1.0",
"cz-customizable": "^6.3.0",
"eslint": "^7.32.0",
@@ -34,11 +37,19 @@
"eslint-plugin-vue": "^8.0.3",
"husky": "^7.0.1",
"sass": "^1.32.7",
- "sass-loader": "^12.0.0"
+ "sass-loader": "^12.0.0",
+ "unplugin-auto-import": "^0.9.3",
+ "unplugin-vue-components": "^0.21.1"
},
"config": {
"commitizen": {
"path": "node_modules/cz-customizable"
}
+ },
+ "lint-staged": {
+ "src/**/*.{js,vue}": [
+ "eslint --fix",
+ "git add"
+ ]
}
}
diff --git a/src/App.vue b/src/App.vue
index ec98c47..27845d3 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -1,9 +1,16 @@
-
+