加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.eslintrc.json 1.73 KB
一键复制 编辑 原始数据 按行查看 历史
mantou 提交于 2017-09-04 01:31 . add
{
"plugins": [],
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"js": true
}
},
"env": {
"es6": true,
"browser": true,
"node": true,
"jquery": true,
"commonjs": true
},
"rules": {
"no-cond-assign": "error",
"no-constant-condition": "error",
"no-dupe-args": "error",
"no-dupe-keys": "error",
"no-duplicate-case": "error",
"no-empty-character-class": "error",
"no-empty": "error",
"no-ex-assign": "error",
"no-extra-boolean-cast": "error",
"no-extra-semi": "error",
"no-func-assign": "error",
"no-inner-declarations": "error",
"no-invalid-regexp": "error",
"no-irregular-whitespace": "error",
"no-obj-calls": "error",
"no-regex-spaces": "error",
"no-sparse-arrays": "error",
"no-unexpected-multiline": "error",
"no-unreachable": "error",
"no-unsafe-finally": "error",
"no-caller": "error",
"no-case-declarations": "error",
"no-empty-function": "error",
"no-empty-pattern": "error",
"no-redeclare": "error",
"no-self-assign": "error",
"no-multiple-empty-lines": ["error", {"max": 1}],
"space-infix-ops": "error",
"comma-spacing": "error",
"comma-style": "error",
"comma-dangle": "error",
"semi-spacing": "error",
"key-spacing": "error",
"curly": "error",
"use-isnan": "error",
"valid-typeof": "error",
"accessor-pairs": "error",
"radix": "error",
"indent": ["error", 4, {"SwitchCase": 1}]
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化