Selaa lähdekoodia

chore: eslint

王家程 11 kuukautta sitten
vanhempi
commit
fba829f2e8
3 muutettua tiedostoa jossa 14 lisäystä ja 9 poistoa
  1. 9 3
      .eslintrc.js
  2. 5 5
      commitlint.config.js
  3. 0 1
      package.json

+ 9 - 3
.eslintrc.js

@@ -2,7 +2,7 @@
  * @Author: wjc
  * @Date: 2024-05-27 11:53:23
  * @LastEditors: wjc
- * @LastEditTime: 2024-05-31 09:24:37
+ * @LastEditTime: 2024-06-05 09:24:04
  * @Description:
  */
 module.exports = {
@@ -12,10 +12,9 @@ module.exports = {
   },
   extends: [
     'eslint:recommended',
-    'plugin:vue/vue3-essential',
+    'plugin:vue/vue3-recommended',
     'plugin:@typescript-eslint/recommended',
     'plugin:import/recommended',
-    'standard',
     'prettier',
     'plugin:prettier/recommended',
   ],
@@ -32,6 +31,13 @@ module.exports = {
     },
   },
   plugins: ['vue', '@typescript-eslint', 'prettier', 'import'],
+  settings: {
+    'import/resolver': {
+      typescript: {
+        alwaysTryTypes: true,
+      },
+    },
+  },
   rules: {
     'vue/no-mutating-props': [
       'error',

+ 5 - 5
commitlint.config.js

@@ -2,8 +2,8 @@
  * @Author: wjc
  * @Date: 2024-05-27 11:42:28
  * @LastEditors: wjc
- * @LastEditTime: 2024-05-28 10:21:22
- * @Description: 
+ * @LastEditTime: 2024-06-05 09:28:49
+ * @Description:
  */
 module.exports = {
   extends: ['@commitlint/config-conventional'],
@@ -24,7 +24,7 @@ module.exports = {
         'style', // 代码风格(不影响代码含义)
         'test', // 测试
         'wip', // 开发中
-      ]
-    ]
-  }
+      ],
+    ],
+  },
 }

+ 0 - 1
package.json

@@ -2,7 +2,6 @@
   "name": "huiguanjia-app",
   "version": "1.0.0",
   "description": "",
-  "main": "index.js",
   "scripts": {
     "dev:app": "uni -p app",
     "dev:app-android": "uni -p app-android",