代码拉取完成,页面将自动刷新
module.exports = {
env: {
browser: true,
es2021: true,
node: true,
},
extends: [
"./src/types/eslintrc-auto-import.json",
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:vue/vue3-essential",
"plugin:prettier/recommended",
],
overrides: [
{
env: {
node: true,
},
files: [".eslintrc.{js,cjs}", "src/**/*.vue"],
parserOptions: {
sourceType: "script",
},
rules: {
// 解决ESLint和Prettier的switch/case缩进冲突
indent: ["error", 2, { SwitchCase: 1 }],
"vue/multi-word-component-names": "off",
"no-unused-vars": "off",
// vite打包时自动去除console和debugger,所以这里直接关掉检查
"no-console": "off",
"no-debugger": "off",
// 允许catch空着
"no-empty": ["error", { allowEmptyCatch: true }],
},
},
],
parserOptions: {
ecmaVersion: "latest",
parser: "@typescript-eslint/parser",
sourceType: "module",
},
plugins: ["@typescript-eslint", "vue"],
rules: {
indent: ["error", 2, { SwitchCase: 1 }],
"linebreak-style": ["error", "windows"],
quotes: ["error", "double"],
semi: ["error", "always"],
},
globals: {
wps: "on",
},
};
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。