forked from MayberryZoom/dread-bot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
54 lines (54 loc) · 1.88 KB
/
.eslintrc.json
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
47
48
49
50
51
52
53
54
{
"env": {
"node": true,
"commonjs": true,
"es2021": true
},
"extends": "eslint:recommended",
"parserOptions": {
"ecmaVersion": "latest"
},
"rules": {
"arrow-body-style": "error",
"func-style": "error",
"no-var": "error",
"object-shorthand": ["error", "methods"],
"operator-assignment": "error",
"prefer-arrow-callback": "error",
"prefer-const": "error",
"prefer-exponentiation-operator": "error",
"prefer-regex-literals": "error",
"require-await": "error",
"spaced-comment": "error",
"arrow-spacing": "error",
"brace-style": ["error", "stroustrup", { "allowSingleLine": true }],
"eol-last": "error",
"func-call-spacing": "error",
"indent": ["error", 4, { "MemberExpression": "off", "flatTernaryExpressions": true }],
"key-spacing": "error",
"keyword-spacing": "error",
"no-multi-spaces": "error",
"no-trailing-spaces": "error",
"no-whitespace-before-property": "error",
"nonblock-statement-body-position": "error",
"object-curly-newline": ["error", { "multiline": true }],
"object-curly-spacing": ["error", "always"],
"padded-blocks": ["error", "never"],
"quotes": ["error", "single", { "avoidEscape": true, "allowTemplateLiterals": true }],
"semi": "error",
"semi-spacing": "error",
"semi-style": "error",
"space-before-blocks": "error",
"space-before-function-paren": ["error", { "named": "never" }],
"space-in-parens": "error",
"space-infix-ops": "error",
"space-unary-ops": "error",
"template-curly-spacing": "error"
},
"globals": {
"client": "writable",
"wipForms": "writable",
"addWipForm": "readonly",
"removeWipForm": "readonly"
}
}