From cd408072e22e695484baaf0c52faa7bf0afc7149 Mon Sep 17 00:00:00 2001
From: quanyawei <401863037@qq.com>
Date: Mon, 13 May 2024 16:15:13 +0800
Subject: [PATCH] fix: 样式修改
---
.eslintrc.js | 41 ++++++++++++++++++++++++++++++++++-------
1 files changed, 34 insertions(+), 7 deletions(-)
diff --git a/.eslintrc.js b/.eslintrc.js
index d172433..752d712 100644
--- a/.eslintrc.js
+++ b/.eslintrc.js
@@ -1,16 +1,43 @@
module.exports = {
env: {
browser: true,
- node: true
+ es2021: true
},
- extends: [
- 'plugin:vue/recommended', // ���������������������vue.js������
- 'eslint:recommended' //������Eslint������������������������������������
+ extends: ['standard', 'plugin:vue/recommended'],
+ overrides: [
+ {
+ env: {
+ node: true
+ },
+ files: ['.eslintrc.{js,cjs}'],
+ parserOptions: {
+ sourceType: 'script'
+ }
+ }
],
parserOptions: {
- ecmaVersion: 13,
- sourceType: 'module'
+ ecmaVersion: 2021,
+ sourceType: 'module',
+ parser: 'babel-eslint',
+ ecmaFeatures: {
+ // ��� react ������������ jsx ������������,��������� true
+ jsx: false
+ }
+ },
+ globals: {
+ AMap: true,
+ AMapUI: true
},
plugins: ['vue'],
- rules: {}
+ rules: {
+ '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