代码拉取完成,页面将自动刷新
同步操作将从 舒小凯/apiflow 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
module.exports = {
root: true,
globals: {
defineProps: "readonly",
defineEmits: "readonly",
defineExpose: "readonly",
withDefaults: "readonly",
config: "readonly",
$t: "readonly",
},
env: {
node: true,
},
extends: [
"plugin:vue/vue3-recommended",
"@vue/typescript/recommended",
"@vue/airbnb",
],
parserOptions: {
ecmaVersion: 2020,
},
rules: {
"import/order": "off",
"no-console": process.env.NODE_ENV === "production" ? "off" : "off",
"vue/html-indent": ["error", 2],
"vue/script-indent": ["error", 2],
"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: ["error", 2],
// "@typescript-eslint/indent": ["error", 2],
semi: "off", //结尾分号无所谓
"comma-dangle": "off",
quotes: ["error", "single"],
"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",
"arrow-body-style": "off",
"prefer-destructuring": "off",
},
};
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。