加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.eslintrc.json 1.47 KB
一键复制 编辑 原始数据 按行查看 历史
Hex 提交于 2023-03-18 09:29 . update
{
"env": {
"commonjs": true,
"es2021": true,
"node": true
},
"extends": "eslint:recommended",
"parserOptions": {
"ecmaVersion": "latest"
},
"globals": {
"$persistentStore": true,
"$prefs": true,
"$httpClient": true,
"$task": true,
"$notification": true,
"$done": true,
"$notify": true
},
"rules": {
"indent": ["warn", 2, {"SwitchCase": 1}],
"brace-style": [1, "stroustrup", {"allowSingleLine": true}],
"comma-style": [1, "last"],
"default-case": 2,
"no-floating-decimal": 2,
"space-before-function-paren": [1, {"anonymous": "never", "named": "never", "asyncArrow": "always"}],
"keyword-spacing": [2, {"after": true}],
"space-before-blocks": 1,
"wrap-iife": [2, "any"],
"no-alert": 2,
"curly": [2, "all"],
"no-empty": [2, {"allowEmptyCatch": true}],
"no-obj-calls": 2,
"no-unused-vars": [1, {"vars": "local", "args": "after-used"}],
"no-invalid-regexp": 2,
"comma-dangle": [1, "never"],
"no-undef": 2,
"no-new": 2,
"no-extra-semi": 0,
"no-debugger": 2,
"no-caller": 1,
"no-unreachable": 2,
"no-multi-str": 1,
"no-mixed-spaces-and-tabs": 1,
"no-trailing-spaces": 1,
"space-infix-ops": 1,
"no-with": 2,
"dot-notation": 1,
"semi-spacing": 1,
"key-spacing": [1, {"beforeColon": false, "afterColon": true, "mode": "minimum"}],
"space-in-parens": [1, "never"],
"prefer-const": 2,
"no-control-regex": 0,
"no-var": 1
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化