From a337fc824fc85b3771a422b373dfcb9ae1161f8c Mon Sep 17 00:00:00 2001
From: quanyawei <401863037@qq.com>
Date: Thu, 21 Dec 2023 16:31:08 +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