5 Star 1 Fork 2

gosted/前端监控系统

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
.eslintrc.json 2.16 KB
一键复制 编辑 原始数据 按行查看 历史
{
"root": true,
"env": {
"node": true,
// 在Vue3的setup中运行 提供defineProps等编译器宏函数
"vue/setup-compiler-macros": true
},
"extends": ["plugin:vue/vue3-recommended", "eslint:recommended", "plugin:@typescript-eslint/recommended"],
"parser": "vue-eslint-parser",
"plugins": ["vue", "html"],
"parserOptions": {
"parser": "@typescript-eslint/parser",
"ecmaVersion": 2020
},
"rules": {
"no-undef": "off",
"no-console": "off",
// 检测html标签自闭和
"vue/html-self-closing": "off",
// html中每行最多属性数目n
"vue/max-attributes-per-line": "off",
// 未使用的变量 ts中不需要
// "no-unused-vars": "warn",
// let -> const ts中不需要
// "prefer-const": "warn",
// 建议使用单引号
"quotes": ["warn", "single"],
// 多余的空行
"no-multiple-empty-lines": ["error", { "max": 1, "maxEOF": 1 }],
// new完之后必须赋值
"no-new": "error",
// 不允许new Object
"no-new-object": "error",
// 组件必须多名称 Todo -> TodoItem
"vue/multi-word-component-names": "off",
// props是否必需默认值
"vue/require-default-prop": "off",
// 缩进
"indent": ["warn", 2, { "SwitchCase": 1 }],
// 函数前空格
"space-before-function-paren": 0,
// 末尾逗号
"comma-dangle": [
"warn",
{
"arrays": "always-multiline",
"objects": "always-multiline",
"imports": "always-multiline",
"exports": "always-multiline",
"functions": "never"
}
],
// 元素内容需否要换行
"vue/singleline-html-element-content-newline": ["off"],
// 模板字符串插值首位不能有空格
"template-curly-spacing": ["error", "never"],
// 不允许行尾出现空格
"no-trailing-spaces": "error",
// 允许ts非空断言
"@typescript-eslint/no-non-null-assertion": "off",
// 允许使用any类型
"@typescript-eslint/no-explicit-any": "off",
// 允许v-html
"vue/no-v-html": "off",
// 允许空函数
"@typescript-eslint/no-empty-function": "off",
// 无禁止类型
"@typescript-eslint/ban-types": "off"
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
TypeScript
1
https://gitee.com/du-hao-111/monitoring-system.git
git@gitee.com:du-hao-111/monitoring-system.git
du-hao-111
monitoring-system
前端监控系统
master

搜索帮助

23e8dbc6 1850385 7e0993f3 1850385