-
Notifications
You must be signed in to change notification settings - Fork 15
/
.eslintrc.cjs
46 lines (46 loc) · 1.21 KB
/
.eslintrc.cjs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
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,
ReplyError: 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",
// 插件规则
"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: [ "echarts.min.js", "westeros.js", "theme/" ]
}