diff --git a/.eslintrc b/.eslintrc
index 9f3e6cf..5697453 100644
--- a/.eslintrc
+++ b/.eslintrc
@@ -17,7 +17,7 @@
"defineProps": "readonly",
"defineEmits": "readonly"
},
- "plugins": ["vue", "@typescript-eslint"],
+ "plugins": ["vue", "@typescript-eslint", "simple-import-sort"],
"parserOptions": {
"parser": "@typescript-eslint/parser",
"sourceType": "module",
@@ -65,7 +65,9 @@
"@typescript-eslint/no-use-before-define": "off",
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/ban-types": "off",
- "class-methods-use-this": "off" // 因为AxiosCancel必须实例化而能静态化所以加的规则,如果有办法解决可以取消
+ "class-methods-use-this": "off", // 因为AxiosCancel必须实例化而能静态化所以加的规则,如果有办法解决可以取消
+ "simple-import-sort/imports": "error",
+ "simple-import-sort/exports": "error"
},
"overrides": [
{
diff --git a/mock/index.ts b/mock/index.ts
index a02319d..048fea0 100644
--- a/mock/index.ts
+++ b/mock/index.ts
@@ -1,5 +1,5 @@
-import { MockMethod } from 'vite-plugin-mock';
import Mock from 'mockjs';
+import { MockMethod } from 'vite-plugin-mock';
export default [
{
diff --git a/package.json b/package.json
index 8439b7b..735d345 100644
--- a/package.json
+++ b/package.json
@@ -55,6 +55,7 @@
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-prettier": "^4.2.1",
+ "eslint-plugin-simple-import-sort": "^10.0.0",
"eslint-plugin-vue": "^9.8.0",
"eslint-plugin-vue-scoped-css": "^2.2.0",
"husky": "^8.0.2",
diff --git a/src/App.vue b/src/App.vue
index ef6f2f6..2ed5814 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -3,6 +3,7 @@