forked from Warzone2100/warzone2100
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
221 lines (221 loc) · 5.93 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
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
{
"extends": "eslint:recommended",
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "script",
"ecmaFeatures": {
"jsx": false,
"globalReturn": false
}
},
"env": {
"es6": true
},
"rules": {
"no-undef": "off",
"no-fallthrough": "off",
"no-mixed-spaces-and-tabs": "off",
"no-console": "error",
"indent": "off",
"semi": "off",
"no-tabs": "off",
"no-redeclare": "warn",
"curly": "off",
"dot-location": "off",
"getter-return": "error",
"yoda": "off",
"require-atomic-updates": "error",
"no-with": "error",
"no-prototype-builtins": "off",
"no-misleading-character-class": "error",
"no-unused-vars": "off",
"no-cond-assign": [
"error",
"always"
],
"no-loss-of-precision": "error",
"no-promise-executor-return": "error",
"no-unreachable-loop": "error",
"no-useless-backreference": "error",
"accessor-pairs": "error",
"array-callback-return": "error",
"default-case-last": "error",
"default-param-last": "error",
"no-alert": "error",
"no-eval": "error",
"no-extra-bind": "error",
"no-implied-eval": "error",
"no-invalid-this": "error",
"no-iterator": "error",
"no-new": "error",
"no-new-func": "error",
"no-octal-escape": "error",
"no-proto": "error",
"no-self-compare": "error",
"no-sequences": "warn",
"no-throw-literal": "error",
"no-useless-call": "error",
"no-void": "error"
},
"globals": {
"version": "readonly",
"selectedPlayer": "readonly",
"gameTime": "readonly",
"modList": "readonly",
"difficulty": "readonly",
"mapName": "readonly",
"tilesetType": "readonly",
"baseType": "readonly",
"alliancesType": "readonly",
"powerType": "readonly",
"maxPlayers": "readonly",
"scavengers": "readonly",
"mapWidth": "readonly",
"mapHeight": "readonly",
"scavengerPlayer": "readonly",
"isMultiplayer": "readonly",
"challenge": "readonly",
"idleTime": "readonly",
"me": "readonly",
"scriptName": "readonly",
"scriptPath": "readonly",
"groupSizes": "readonly",
"playerData": "readonly",
"derrickPositions": "readonly",
"startPositions": "readonly",
"Stats": "readonly",
"MapTiles": "readonly",
"Upgrades": "writable",
"TER_WATER": "readonly",
"TER_CLIFFFACE": "readonly",
"WEATHER_RAIN": "readonly",
"WEATHER_SNOW": "readonly",
"WEATHER_CLEAR": "readonly",
"DORDER_STOP": "readonly",
"DORDER_MOVE": "readonly",
"DORDER_ATTACK": "readonly",
"DORDER_BUILD": "readonly",
"DORDER_HELPBUILD": "readonly",
"DORDER_LINEBUILD": "readonly",
"DORDER_DEMOLISH": "readonly",
"DORDER_REPAIR": "readonly",
"DORDER_OBSERVE": "readonly",
"DORDER_FIRESUPPORT": "readonly",
"DORDER_RTB": "readonly",
"DORDER_RTR": "readonly",
"DORDER_EMBARK": "readonly",
"DORDER_DISEMBARK": "readonly",
"DORDER_COMMANDERSUPPORT": "readonly",
"DORDER_RECYCLE": "readonly",
"DORDER_SCOUT": "readonly",
"DORDER_PATROL": "readonly",
"DORDER_REARM": "readonly",
"DORDER_RECOVER": "readonly",
"DORDER_HOLD": "readonly",
"BUILD": "readonly",
"MANUFACTURE": "readonly",
"RESEARCH": "readonly",
"INTELMAP": "readonly",
"DESIGN": "readonly",
"CANCEL": "readonly",
"COMMAND": "readonly",
"CAMP_CLEAN": "readonly",
"CAMP_BASE": "readonly",
"CAMP_WALLS": "readonly",
"NO_ALLIANCES": "readonly",
"ALLIANCES": "readonly",
"ALLIANCES_TEAMS": "readonly",
"ALLIANCES_UNSHARED": "readonly",
"NO_SCAVENGERS": "readonly",
"SCAVENGERS": "readonly",
"ULTIMATE_SCAVENGERS": "readonly",
"BEING_BUILT": "readonly",
"BUILT": "readonly",
"DROID_WEAPON": "readonly",
"DROID_SENSOR": "readonly",
"DROID_ECM": "readonly",
"DROID_CONSTRUCT": "readonly",
"DROID_PERSON": "readonly",
"DROID_CYBORG": "readonly",
"DROID_TRANSPORTER": "readonly",
"DROID_COMMAND": "readonly",
"DROID_REPAIR": "readonly",
"DROID_SUPERTRANSPORTER": "readonly",
"DROID_ANY": "readonly",
"ARTIFACT": "readonly",
"OIL_RESOURCE": "readonly",
"BUILDING": "readonly",
"OIL_DRUM": "readonly",
"HQ": "readonly",
"FACTORY": "readonly",
"POWER_GEN": "readonly",
"RESOURCE_EXTRACTOR": "readonly",
"DEFENSE": "readonly",
"WALL": "readonly",
"RESEARCH_LAB": "readonly",
"REPAIR_FACILITY": "readonly",
"COMMAND_CONTROL": "readonly",
"CYBORG_FACTORY": "readonly",
"VTOL_FACTORY": "readonly",
"REARM_PAD": "readonly",
"SAT_UPLINK": "readonly",
"GATE": "readonly",
"LASSAT": "readonly",
"SUPEREASY": "readonly",
"EASY": "readonly",
"MEDIUM": "readonly",
"HARD": "readonly",
"INSANE": "readonly",
"ALL_PLAYERS": "readonly",
"ALLIES": "readonly",
"ENEMIES": "readonly",
"DROID": "readonly",
"STRUCTURE": "readonly",
"FEATURE": "readonly",
"POSITION": "readonly",
"AREA": "readonly",
"PLAYER_DATA": "readonly",
"RESEARCH_DATA": "readonly",
"GROUP": "readonly",
"RADIUS": "readonly",
"LZ_COMPROMISED_TIME": "readonly",
"OBJECT_FLAG_UNSELECTABLE": "readonly",
"RES_MSG": "readonly",
"CAMP_MSG": "readonly",
"MISS_MSG": "readonly",
"PROX_MSG": "readonly",
"LDS_EXPAND_LIMBO": "readonly"
},
"overrides": [
{
"files": ["*.json"],
"extends": [
"plugin:jsonc/recommended-with-json"
],
"parser": "jsonc-eslint-parser",
"parserOptions": {
"jsonSyntax": "JSON"
}
},
{
"files": ["*.jsonc"],
"extends": [
"plugin:jsonc/recommended-with-jsonc"
],
"parser": "jsonc-eslint-parser",
"parserOptions": {
"jsonSyntax": "JSONC"
}
},
{
"files": ["*.json5"],
"extends": [
"plugin:jsonc/recommended-with-json5"
],
"parser": "jsonc-eslint-parser",
"parserOptions": {
"jsonSyntax": "JSON5"
}
}
]
}