forked from DraftBot-A-Discord-Adventure/DraftBot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
92 lines (90 loc) · 2.43 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
{
"env": {
"browser": false,
"commonjs": false,
"es2021": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2020
},
"plugins": [
"@typescript-eslint"
],
"rules": {
"indent": [
"error",
"tab"
],
"quotes": [
"error",
"double"
],
"semi": [
"error",
"always"
],
"no-undef": "off",
"@typescript-eslint/no-var-requires": "off",
"@typescript-eslint/no-extra-parens": "warn",
"block-scoped-var": "warn",
"curly": "warn",
"default-case": "error",
"default-case-last": "error",
"default-param-last": "error",
"dot-location": ["warn", "property"],
"eqeqeq": "error",
"guard-for-in": "error",
"no-else-return": "error",
"no-magic-numbers": "off",
"no-multi-spaces": "warn",
"no-return-assign": "error",
"no-self-compare": "error",
"no-useless-return": "error",
"require-await": "error",
"yoda": "warn",
"block-spacing": "warn",
"brace-style": ["warn", "stroustrup"],
"camelcase": "warn",
"comma-dangle": "warn",
"func-call-spacing": "warn",
"key-spacing": "warn",
"keyword-spacing": "warn",
"lines-between-class-members": "warn",
"max-depth": ["warn", 5],
"max-len": ["warn", 200],
"max-lines": ["warn", 800],
"max-lines-per-function": "off",
"max-params": ["warn", 6],
"new-cap": "warn",
"new-parens": "warn",
"newline-per-chained-call": ["warn"],
"no-lonely-if": "warn",
"no-multiple-empty-lines": "warn",
"no-trailing-spaces": "warn",
"no-unneeded-ternary": "warn",
"no-whitespace-before-property": "error",
"object-curly-newline": "warn",
"operator-assignment": "warn",
"space-before-function-paren": ["error", {
"anonymous": "never",
"named": "never",
"asyncArrow": "always"
}],
"space-infix-ops": "warn",
"spaced-comment": "warn",
"switch-colon-spacing": "warn",
"arrow-body-style": "warn",
"arrow-spacing": "warn",
"no-confusing-arrow": "warn",
"no-duplicate-imports": "error",
"no-var": "error",
"prefer-const": "warn",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/explicit-module-boundary-types": "off"
}
}