加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.eslintrc.js 750 Bytes
一键复制 编辑 原始数据 按行查看 历史
Suwings 提交于 2020-10-08 18:29 . 优化 使用 Prettier 格式
module.exports = {
env: {
browser: true,
commonjs: true,
es6: true
},
extends: "eslint:recommended",
globals: {
Atomics: "readonly",
SharedArrayBuffer: "readonly",
MCSERVER: "writeable",
__dirname: "writeable",
Buffer: "writeable",
Vue: "readonly",
MI: "writeable",
MS: "writeable",
TOOLS: "writeable",
VIEW_MODEL: "writeable",
RES: "readonly",
PAGE: "writeable",
$: "writeable",
WS: "readonly",
hex_md5: "readonly",
process: "readonly"
},
parserOptions: {
ecmaVersion: 2018
},
rules: {
"no-unused-vars": "warn",
"no-use-before-define": "warn",
"no-undef": "warn",
"no-use-before-define": "off",
"no-prototype-builtins": "off"
}
};
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化