代码拉取完成,页面将自动刷新
module.exports = {
env: {
es2021: true,
node: true
},
extends: [
"standard",
"plugin:jsdoc/recommended",
"plugin:import/recommended",
"plugin:promise/recommended"
],
parserOptions: {
ecmaVersion: "latest",
sourceType: "module"
},
plugins: [ "import", "promise", "jsdoc" ],
globals: {
Bot: true,
redis: true,
logger: true,
plugin: true,
segment: true,
uploadRecord: true
},
rules: {
"eqeqeq": [ "off" ],
"prefer-const": [ "off" ],
"arrow-body-style": "off",
"camelcase": "off",
"quotes": [ "error", "double" ],
"quote-props": [ "error", "consistent" ],
"no-eval": [ "error", { allowIndirect: true } ],
"array-bracket-newline": [ "error", { multiline: true } ],
"array-bracket-spacing": [ "error", "always" ],
"space-before-function-paren": [ "error", "never" ],
"no-invalid-this": "error",
"indent": [ "error", 2, { "SwitchCase": 1 } ], // 添加这行
"no-tabs": [ "error" ], // 禁止使用制表符
// 插件规则
"jsdoc/require-returns": 0,
"jsdoc/require-jsdoc": 0,
"jsdoc/require-param-description": 0,
"jsdoc/require-returns-description": 0,
"jsdoc/require-param-type": 0,
"import/extensions": [ "error", "ignorePackages" ]
},
ignorePatterns: [ "uploadRecord.js", "I.js" ]
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。