From e8adb7875576756c0338a909bc46e3d3f6bdfc9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=B1=E7=9C=A0=E5=84=80=E5=BC=8F?= <854085467@qq.com> Date: Sat, 25 Dec 2021 00:19:43 +0800 Subject: [PATCH] edit eslint config --- .eslintrc.js | 30 ++---------------------------- 1 file changed, 2 insertions(+), 28 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index b7477571..5347803e 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -38,22 +38,8 @@ module.exports = { '@typescript-eslint/ban-types': 'off', '@typescript-eslint/no-non-null-assertion': 'off', '@typescript-eslint/explicit-module-boundary-types': 'off', - '@typescript-eslint/no-unused-vars': [ - 'error', - { - argsIgnorePattern: '^_', - varsIgnorePattern: '^_' - } - ], - 'no-unused-vars': [ - 'error', - { - argsIgnorePattern: '^_', - varsIgnorePattern: '^_' - } - ], 'space-before-function-paren': 'off', - 'vue/name-property-casing': ['error', 'PascalCase'], // vue/component-definition-name-casing 对组件定义名称强制使用特定的大小 + 'vue/name-property-casing': ['error', 'PascalCase'], 'vue/attributes-order': 'off', 'vue/one-component-per-file': 'off', 'vue/html-closing-bracket-newline': 'off', @@ -62,18 +48,6 @@ module.exports = { 'vue/singleline-html-element-content-newline': 'off', 'vue/attribute-hyphenation': 'off', 'vue/require-default-prop': 'off', - 'vue/script-setup-uses-vars': 'off', - 'vue/html-self-closing': [ - 'error', - { - html: { - void: 'always', - normal: 'never', - component: 'always' - }, - svg: 'always', - math: 'always' - } - ] + 'vue/script-setup-uses-vars': 'off' } } \ No newline at end of file