1 Star 0 Fork 19

hz/apiflow

forked from 舒小凯/apiflow 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.eslintrc.js 2.03 KB
一键复制 编辑 原始数据 按行查看 历史
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",
},
};
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
TypeScript
1
https://gitee.com/hzwd/apiflow.git
git@gitee.com:hzwd/apiflow.git
hzwd
apiflow
apiflow
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385