forked from discordjs/Commando
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
107 lines (107 loc) · 2.32 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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
{
"env": {
"commonjs": true,
"es2022": true,
"node": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module",
"project": "./tsconfig.json"
},
"plugins": [
"@typescript-eslint"
],
"rules": {
"comma-dangle": [
"error",
{
"arrays": "always-multiline",
"objects": "always-multiline",
"imports": "always-multiline",
"exports": "always-multiline",
"functions": "never"
}
],
"eol-last": "warn",
"indent": [
"warn",
4,
{
"SwitchCase": 1
}
],
"max-len": [
"warn",
{
"code": 125
}
],
"new-cap": "error",
"no-var": "error",
"operator-linebreak": [
"error",
"before"
],
"quotes": [
"warn",
"single"
],
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": "error",
"no-multiple-empty-lines": [
"warn",
{
"max": 1
}
],
"eqeqeq": "error",
"prefer-const": "error",
"camelcase": "warn",
"object-property-newline": [
"error",
{
"allowAllPropertiesOnSameLine": true
}
],
"array-element-newline": [
"error",
"consistent"
],
"no-duplicate-imports": "error",
"max-depth": [
"error",
3
],
"no-await-in-loop": [
"error"
],
"@typescript-eslint/array-type": [
"error",
{
"default": "array-simple"
}
],
"@typescript-eslint/consistent-type-assertions": [
"error",
{
"assertionStyle": "as",
"objectLiteralTypeAssertions": "allow-as-parameter"
}
],
"@typescript-eslint/explicit-function-return-type": "error",
"@typescript-eslint/no-redundant-type-constituents": "error",
"@typescript-eslint/prefer-reduce-type-parameter": "error",
"@typescript-eslint/prefer-return-this-type": "error",
"@typescript-eslint/sort-type-union-intersection-members": "warn",
"@typescript-eslint/member-delimiter-style": "error",
"@typescript-eslint/semi": "error",
"@typescript-eslint/explicit-member-accessibility": "error",
"@typescript-eslint/no-explicit-any": "error"
}
}