From e753bbdd0c0513f0d29d0f6845b1ecab519f422a Mon Sep 17 00:00:00 2001
From: quanyawei <401863037@qq.com>
Date: Fri, 24 Nov 2023 12:01:38 +0800
Subject: [PATCH] Merge branch 'feature_1.0'

---
 .eslintrc.js |   62 +++++++++++++++++++++++++-----
 1 files changed, 51 insertions(+), 11 deletions(-)

diff --git a/.eslintrc.js b/.eslintrc.js
index a949ef5..853e4dd 100644
--- a/.eslintrc.js
+++ b/.eslintrc.js
@@ -1,23 +1,63 @@
 module.exports = {
   env: {
     browser: true,
-    node: true
+    es2021: true
   },
-  extends: [
-    // ������vuejs���������eslint��������� https://eslint.vuejs.org/user-guide/#usage
-    'plugin:vue/recommended',
-    // ������ ESLint ��������������� prettier ������������
-    'eslint:recommended'
+  extends: ['eslint:recommended', 'standard'],
+  overrides: [
+    {
+      env: {
+        node: true
+      },
+      files: ['.eslintrc.{js,cjs}'],
+      parserOptions: {
+        sourceType: 'script'
+      }
+    }
   ],
   parserOptions: {
-    ecmaVersion: 10,
+    ecmaVersion: '12',
     sourceType: 'module'
   },
   plugins: ['vue'],
   rules: {
-    'space-before-function-paren': 0,
-    'no-console': 'off',
-    'no-unused-vars': 'off',
-    'vue/attribute-hyphenation': 0 // ������������������
+    eqeqeq: ['error', 'always'], // ���������������������������
+    semi: 2, // ���������������������������������
+    'no-use-before-define': [1, 'nofunc'], // ������������������������
+    'max-lines': ['error', { max: 2000, skipBlankLines: true }],
+    'no-mixed-spaces-and-tabs': 'warn', // ���������������������tab������������
+    'newline-per-chained-call': ['error', { ignoreChainWithDepth: 1 }], // promise ������ ���������������������������������������
+    'vue/attribute-hyphenation': ['error', 'always'], // prop������������������������������������������������������������������������������������prop���������������������������������������
+    'vue/html-indent': [
+      'warn',
+      2,
+      {
+        attribute: 1,
+        baseIndent: 1,
+        closeBracket: 0,
+        alignAttributesVertically: true
+      }
+    ],
+    curly: 2, // ������������ if(){} ������{}
+    'vue/prop-name-casing': ['warn', 'camelCase'], //������������������������
+    'vue/this-in-template': ['error', 'never'], //������������template������������this
+    'no-trailing-spaces': 1, //���������������������������������
+    'vue/max-attributes-per-line': [
+      // template���������������������������prop������,������3������������3���������������������������prop���������������������
+      'warn',
+      {
+        singleline: 3,
+        multiline: {
+          max: 1,
+          allowFirstLine: false
+        }
+      }
+    ],
+    'no-catch-shadow': 'error', //������catch������������������������������������������
+    'vue/v-bind-style': ['error', 'shorthand'], // ������������:���������
+    'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off', // ���������������������������������debugger
+    'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
+    'no-unused-vars': 0, // ���������������������������������
+    'spaced-comment': 0 // ������������������ // ��� /* ���������������������
   }
 }

--
Gitblit v1.8.0