-
Notifications
You must be signed in to change notification settings - Fork 3
/
.xo-config
135 lines (135 loc) · 3.08 KB
/
.xo-config
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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
{
"env": [
"node"
],
"space": true,
"semicolon": false,
"prettier": true,
"plugins": [
"eslint-plugin-unused-imports"
],
"rules": {
"capitalized-comments": "off",
"no-bitwise": "off",
"no-warning-comments": "off",
"@typescript-eslint/no-extraneous-class": "off",
"@typescript-eslint/ban-types": "off",
"unicorn/filename-case": "off",
"unicorn/no-array-callback-reference": "off",
"unicorn/no-array-for-each": "off",
"unicorn/no-static-only-class": "off",
"unicorn/prefer-math-trunc": "off",
"unicorn/prefer-module": "off",
"unicorn/prevent-abbreviations": "off",
"curly": [
"error",
"all"
],
"func-style": [
"error",
"declaration"
],
"no-use-before-define": [
"error",
{
"functions": true,
"classes": true,
"variables": true,
"allowNamedExports": false
}
],
"@typescript-eslint/naming-convention": [
"error",
{
"selector": "variable",
"format": [
"camelCase",
"UPPER_CASE",
"PascalCase"
]
}
],
"@typescript-eslint/class-literal-property-style": [
"error",
"fields"
],
"@typescript-eslint/prefer-literal-enum-member": [
"error",
{
"allowBitwiseExpressions": true
}
],
"@typescript-eslint/consistent-type-imports": [
"error",
{
"fixStyle": "inline-type-imports"
}
],
"@typescript-eslint/explicit-function-return-type": "error",
"@typescript-eslint/array-type": [
"error",
{
"default": "array"
}
],
"@typescript-eslint/parameter-properties": [
"error",
{
"prefer": "class-property"
}
],
"operator-assignment": [
"error",
"never"
],
"logical-assignment-operators": [
"error",
"never"
],
"@typescript-eslint/no-inferrable-types": [
"error",
{
"ignoreParameters": true,
"ignoreProperties": true
}
],
"@typescript-eslint/no-unnecessary-boolean-literal-compare": "off",
"unicorn/prefer-ternary": "off",
"no-ternary": "error",
"no-await-in-loop": "off",
"@typescript-eslint/consistent-type-definitions": "off",
"@typescript-eslint/non-nullable-type-assertion-style": "off",
"unicorn/prefer-number-properties": [
"error",
{
"checkInfinity": true,
"checkNaN": true
}
],
"unused-imports/no-unused-imports": "error",
"guard-for-in": "off",
"arrow-body-style": [
"error",
"always"
],
"@typescript-eslint/unified-signatures": "off",
"unicorn/no-for-loop": "off",
"@typescript-eslint/no-unsafe-argument": "off",
"object-shorthand": [
"error",
"always",
{
"avoidQuotes": true
}
],
"no-plusplus": [
"error",
{
"allowForLoopAfterthoughts": true
}
],
"@typescript-eslint/no-unsafe-enum-comparison": "off",
"unicorn/no-this-assignment": "off",
"@typescript-eslint/no-this-alias": "off"
}
}