From ebf10826d6bba0d3b542dce64531aa71bc2fd77e Mon Sep 17 00:00:00 2001 From: quanyawei <401863037@qq.com> Date: Thu, 23 Nov 2023 11:00:29 +0800 Subject: [PATCH] fix:导出修改 --- .eslintrc.js | 29 ++++++++++++----------------- 1 files changed, 12 insertions(+), 17 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index 54bb8f5..65034b5 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -1,23 +1,16 @@ module.exports = { root: true, - parserOptions: { - parser: 'babel-eslint', - sourceType: 'module' - }, env: { browser: true, node: true, - es6: true, + es6: true }, - extends: ['plugin:vue/recommended', 'eslint:recommended'], - - // add your custom rules here - //it is base on https://github.com/vuejs/eslint-config-vue + extends: ['plugin:vue/essential', '@vue/standard'], rules: { - 'eqeqeq': ['error', 'always'], // ��������������������������� - 'semi': 0, // ��������������������������������� + eqeqeq: ['error', 'always'], // ��������������������������� + semi: 2, // ��������������������������������� 'no-use-before-define': [1, 'nofunc'], // ������������������������ - 'max-lines': ['error', { 'max': 2000, 'skipBlankLines': true }], + '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��������������������������������������� @@ -31,11 +24,12 @@ alignAttributesVertically: true } ], - 'curly': 2, // ������������ if(){} ������{} + 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��������������������� + 'vue/max-attributes-per-line': [ + // template���������������������������prop������,������3������������3���������������������������prop��������������������� 'warn', { singleline: 3, @@ -52,8 +46,9 @@ 'no-unused-vars': 0, // ��������������������������������� 'spaced-comment': 0 // ������������������ // ��� /* ��������������������� }, - globals: { - 'AMap': false, - 'AMapUI': false + parserOptions: { + ecmaVersion: 6, + parser: 'babel-eslint' }, + plugins: ['vue'] } -- Gitblit v1.8.0