소스 검색

[edit][eslint]

zhangwei 3 년 전
부모
커밋
e798e493fe
4개의 변경된 파일262개의 추가작업 그리고 296개의 파일을 삭제
  1. 16 0
      .eslintrc.js
  2. 3 5
      package.json
  3. 2 2
      src/view/popup/top-up/info.vue
  4. 241 289
      yarn.lock

+ 16 - 0
.eslintrc.js

@@ -0,0 +1,16 @@
+module.exports = {
+    overrides: [
+        {
+            files: ['src/views/**/*.vue'],
+            rules: {
+                'vue/multi-word-component-names': 0,
+            },
+        },
+    ],
+    "parserOptions": {
+        "ecmaVersion": 7,
+        "sourceType": "module"
+    },
+    "parser": "babel-eslint"
+
+}

+ 3 - 5
package.json

@@ -14,7 +14,9 @@
     "axios": "^0.26.1",
     "clipboard": "^2.0.10",
     "core-js": "^3.8.3",
-    "element-plus": "^2.1.4",
+    "element-plus": "^2.1.10",
+    "eslint": "^8.13.0",
+    "eslint-plugin-vue": "^8.7.0",
     "moment": "^2.29.1",
     "node-sass": "^7.0.1",
     "postcss-import": "^14.0.2",
@@ -26,13 +28,9 @@
   },
   "devDependencies": {
     "@babel/core": "^7.12.16",
-    "@babel/eslint-parser": "^7.12.16",
     "@vue/cli-plugin-babel": "~5.0.0",
-    "@vue/cli-plugin-eslint": "~5.0.0",
     "@vue/cli-service": "~5.0.0",
     "copy-webpack-plugin": "^10.2.4",
-    "eslint": "^7.32.0",
-    "eslint-plugin-vue": "^8.0.3",
     "node-sass": "^7.0.1",
     "sass-loader": "^12.6.0",
     "unplugin-auto-import": "^0.6.6",

+ 2 - 2
src/view/popup/top-up/info.vue

@@ -76,7 +76,7 @@ function copyToken() {
             message: 'copy success',
             grouping: true,
             type: 'success',
-            offset: 5
+            offset: 0
         })
         console.info('Action:', e.action);
         console.info('Text:', e.text);
@@ -91,7 +91,7 @@ function copyToken() {
             message: 'copy error',
             grouping: true,
             type: 'error',
-            offset: 5
+            offset: 0
         })
         console.error('Action:', e.action);
         console.error('Trigger:', e.trigger);

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 241 - 289
yarn.lock


이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.