-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.json
145 lines (145 loc) · 4.17 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
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
136
137
138
139
140
141
142
143
144
145
{
"env": {
"commonjs": true,
"es6": true,
"node": true
},
"extends": [
"airbnb-base"
],
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly",
"clusterNames": "readonly",
"appRoot": "readonly",
"PLX": "readonly",
"MARKET_TOKEN": "writable",
"hook": "readonly",
"nope": "writable",
"reload": "writable",
"invisibar": "writable",
"Embed": "readonly",
"RichEmbed": "readonly",
"weightedRand": "readonly",
"randomize": "readonly",
"miliarize": "readonly",
"shuffle": "readonly",
"capitalize": "readonly",
"objCount": "readonly",
"resolveFile": "readonly",
"file": "readonly",
"_emoji": "readonly",
"promiseLibrary": "readonly",
"DB": "readonly",
"translateEngineStart": "readonly",
"i18n": "readonly",
"$t": "readonly",
"rand$t": "readonly",
"Achievements": "readonly",
"userLimits": "readonly",
"fakeFeed": "writable",
"piggyback": "readonly",
"paths": "readonly",
"wait": "readonly",
"exec": "readonly"
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2020
},
"plugins": [
"@typescript-eslint"
],
"rules": {
"quotes": [
"warn",
"double"
],
"no-param-reassign": "off",
"global-require": "off",
"import/no-dynamic-require": "off",
"linebreak-style": "warn",
"disable-next-line": "off",
"no-extra-parens": "warn",
"no-extra-semi": "warn",
"no-regex-spaces": "warn",
//"curly": ["warn", "multi"],
"dot-location": ["warn", "property"],
"no-unsafe-negation": "error",
"arrow-body-style": ["warn", "as-needed"],
"newline-per-chained-call": ["error", { "ignoreChainWithDepth": 2 }],
//"array-bracket-newline": ["warn", "consistent"],
"array-bracket-spacing": ["warn", "always", { "singleValue": false }],
"block-spacing": "warn",
//"brace-style": ["warn", "stroustrup", { "allowSingleLine": true }],
"comma-spacing": ["warn", { "before": false, "after": true }],
//"no-tabs": 0,
//"indent": ["warn", "tab"],
"func-call-spacing": ["error", "never"],
"function-paren-newline": ["warn", "multiline"],
"no-console": "off",
"no-underscore-dangle": "off",
"no-multi-spaces": [
"warn",
{
"exceptions": {
"VariableDeclarator": true,
"Property": true
}
}
],
"max-len": [
"warn",
150
],
"no-bitwise": "off",
"class-methods-use-this": "off",
"no-plusplus": "off",
"radix": [
"warn",
"as-needed"
],
"no-return-assign": [
"error",
"except-parens"
],
"no-cond-assign": [
"error",
"except-parens"
],
"no-restricted-syntax": "off",
"no-nested-ternary": "off",
"prefer-const": [
"warn",
{
"destructuring": "all"
}
],
"no-continue": "off",
"no-empty": [
"error",
{
"allowEmptyCatch": true
}
],
"no-multi-assign": "off",
"@typescript-eslint/no-unused-vars": "error",
"@typescript-eslint/no-unused-expressions": [
"error",
{
"allowShortCircuit": true,
"allowTernary": true
}
],
"@typescript-eslint/no-shadow": "warn",
"@typescript-eslint/no-use-before-define": "error",
"@typescript-eslint/no-useless-constructor": "error",
// ts conflicts
"no-unused-vars": "off",
"no-unused-expressions": "off",
"no-shadow": "off",
"no-use-before-define": "off",
"no-useless-constructor": "off"
},
"ignorePatterns": "*.ts"
}