From 6b7604951f61b7033cc643afe0e4ca67565a1a36 Mon Sep 17 00:00:00 2001
From: quanyawei <401863037@qq.com>
Date: Tue, 18 Jun 2024 15:39:41 +0800
Subject: [PATCH] fix: bug修改
---
.eslintrc.js | 60 ++++++++++++++++++++----------------------------------------
1 files changed, 20 insertions(+), 40 deletions(-)
diff --git a/.eslintrc.js b/.eslintrc.js
index 853e4dd..752d712 100644
--- a/.eslintrc.js
+++ b/.eslintrc.js
@@ -3,7 +3,7 @@
browser: true,
es2021: true
},
- extends: ['eslint:recommended', 'standard'],
+ extends: ['standard', 'plugin:vue/recommended'],
overrides: [
{
env: {
@@ -16,48 +16,28 @@
}
],
parserOptions: {
- ecmaVersion: '12',
- sourceType: 'module'
+ ecmaVersion: 2021,
+ sourceType: 'module',
+ parser: 'babel-eslint',
+ ecmaFeatures: {
+ // ��� react ������������ jsx ������������,��������� true
+ jsx: false
+ }
+ },
+ globals: {
+ AMap: true,
+ AMapUI: true
},
plugins: ['vue'],
rules: {
- 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 // ������������������ // ��� /* ���������������������
+ '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