From 31f489fa90ba8c2f00420c2e564fbac2029ec524 Mon Sep 17 00:00:00 2001 From: vben <anncwb@126.com> Date: 星期一, 14 十一月 2022 14:36:42 +0800 Subject: [PATCH] chore: update ci --- .eslintrc.js | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index 09aff82..9aa3e10 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -1,6 +1,4 @@ -// @ts-check -const { defineConfig } = require('eslint-define-config'); -module.exports = defineConfig({ +module.exports = { root: true, env: { browser: true, @@ -20,10 +18,10 @@ extends: [ 'plugin:vue/vue3-recommended', 'plugin:@typescript-eslint/recommended', - 'prettier', 'plugin:prettier/recommended', ], rules: { + 'vue/script-setup-uses-vars': 'error', '@typescript-eslint/ban-ts-ignore': 'off', '@typescript-eslint/explicit-function-return-type': 'off', '@typescript-eslint/no-explicit-any': 'off', @@ -60,6 +58,7 @@ 'vue/singleline-html-element-content-newline': 'off', 'vue/attribute-hyphenation': 'off', 'vue/require-default-prop': 'off', + 'vue/require-explicit-emits': 'off', 'vue/html-self-closing': [ 'error', { @@ -72,5 +71,6 @@ math: 'always', }, ], + 'vue/multi-word-component-names': 'off', }, -}); +}; -- Gitblit v1.8.0