代码拉取完成,页面将自动刷新
同步操作将从 舒小凯/moyu 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
module.exports = {
root: true,
globals: {
defineProps: "readonly",
defineEmits: "readonly",
defineExpose: "readonly",
withDefaults: "readonly",
$t: "readonly",
},
env: {
node: true,
},
extends: [
"plugin:vue/vue3-recommended",
"@vue/typescript/recommended",
"@vue/airbnb",
],
parserOptions: {
ecmaVersion: 2020,
},
rules: {
"no-console": process.env.NODE_ENV === "production" ? "off" : "off",
"vue/html-indent": ["error", 4],
"vue/max-attributes-per-line": "off",
"vue/html-self-closing": "off",
"vue/singleline-html-element-content-newline": "off",
"space-before-function-paren": "off",
"no-unused-expressions": "off",
"import/no-extraneous-dependencies": [
"off",
{ packageDir: "./build/" },
],
indent: [2, 4], //强制为4格缩进
semi: "off", //结尾分号无所谓
"comma-dangle": "off",
quotes: [
2,
"double",
{
avoidEscape: true,
allowTemplateLiterals: true,
},
],
"max-len": ["error", { code: 400 }], //最大代码长度为400行
"no-param-reassign": ["error", { props: false }], //函数参数非对象情况不允许直接改变
"linebreak-style": ["off", "windows"],
"spaced-comment": "off", //注释不做限制
"prefer-destructuring": [
"error",
{
//申明变量解构有限,赋值可以不必解构
VariableDeclarator: {
array: false,
object: true,
},
AssignmentExpression: {
array: false,
object: true,
},
},
],
"import/prefer-default-export": "off",
"class-methods-use-this": "off",
"no-underscore-dangle": "off",
"import/no-unresolved": "off",
"@typescript-eslint/no-unused-vars": ["error"],
"arrow-parens": "off",
"object-curly-newline": "off",
"import/no-cycle": "off",
"no-continue": "off",
"array-callback-return": "off",
},
};
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。