From e635b5b4edab0a000a0af533b6b36f7300c5fa42 Mon Sep 17 00:00:00 2001
From: quanyawei <401863037@qq.com>
Date: Fri, 02 Feb 2024 10:07:00 +0800
Subject: [PATCH] fix:断线监控

---
 .eslintrc.js |   44 ++++++++++++++++++++++++++++++++------------
 1 files changed, 32 insertions(+), 12 deletions(-)

diff --git a/.eslintrc.js b/.eslintrc.js
index a949ef5..752d712 100644
--- a/.eslintrc.js
+++ b/.eslintrc.js
@@ -1,23 +1,43 @@
 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: ['standard', 'plugin:vue/recommended'],
+  overrides: [
+    {
+      env: {
+        node: true
+      },
+      files: ['.eslintrc.{js,cjs}'],
+      parserOptions: {
+        sourceType: 'script'
+      }
+    }
   ],
   parserOptions: {
-    ecmaVersion: 10,
-    sourceType: 'module'
+    ecmaVersion: 2021,
+    sourceType: 'module',
+    parser: 'babel-eslint',
+    ecmaFeatures: {
+      // ��� react ������������ jsx ������������,��������� true
+      jsx: false
+    }
+  },
+  globals: {
+    AMap: true,
+    AMapUI: true
   },
   plugins: ['vue'],
   rules: {
-    'space-before-function-paren': 0,
-    'no-console': 'off',
-    'no-unused-vars': 'off',
-    'vue/attribute-hyphenation': 0 // ������������������
+    'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
+    'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
+    camelcase: 'off',
+    'comma-dangle': 'off',
+    '@typescript-eslint/no-explicit-any': 'off',
+    '@typescript-eslint/camelcase': 'off',
+    '@typescript-eslint/no-empty-function': 'off',
+    'lines-between-class-members': 'off',
+    '@typescript-eslint/no-this-alias': 'off'
   }
 }

--
Gitblit v1.8.0