MCSManager/.eslintrc.js
2020-10-08 18:29:35 +08:00

37 lines
750 B
JavaScript

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"
}
};