加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.eslintrc 976 Bytes
一键复制 编辑 原始数据 按行查看 历史
doramart 提交于 2021-09-25 22:06 . DoraCMS 2.1.8 版本更新
{
"extends": "eslint-config-egg",
"parser": "babel-eslint",
"plugins": ["prettier"],
"rules": {
"no-control-regex": 0,
"no-unused-vars": "off",
"one-var-declaration-per-line": ["error", "initializations"],
"quotes": [2, "single"],
"arrow-parens": ["error", "always"],
"array-bracket-spacing": [2, "never"],
"space-before-function-paren": 0,
"indent": [0, 2],
"prettier/prettier": ["error", {}],
"linebreak-style": ["error", "unix"]
},
"globals": {
"exec": true,
"concatPopulate": true,
"getDateStr": true,
"getContentListFields": true,
"getAuthUserFields": true,
"checkCurrentId": true,
"remote": true,
"hot": true,
"news": true,
"random": true,
"near_post": true,
"hottags": true,
"ads": true,
"recommend": true,
"tags": true,
"navtree": true,
"childnav": true,
"PluginsExtension": true,
"HeaderExtension": true,
"AssetsExtension": true
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化