forked from OoliteProject/oolite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
164 lines (162 loc) · 5.92 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
{
"ignorePatterns": ["deps/**/*.js"],
"overrides": [
{
"files": ["DebugOXP", "Resources"]
}
],
"env": {
"es2021": true
},
"extends": "eslint:recommended",
"plugins": ["es-x"],
"parserOptions": {
"ecmaVersion": 2015
},
"rules": {
"no-mixed-spaces-and-tabs": "off",
"no-unused-vars": ["error", { "argsIgnorePattern": "^_"}],
"es-x/no-array-from": "error",
"es-x/no-array-of": "error",
"es-x/no-array-prototype-copywithin": "error",
"es-x/no-array-prototype-entries": "error",
"es-x/no-array-prototype-fill": "error",
"es-x/no-array-prototype-find": "error",
"es-x/no-array-prototype-findindex": "error",
"es-x/no-array-prototype-keys": "error",
"es-x/no-array-prototype-values": "error",
"es-x/no-arrow-functions": "error",
"es-x/no-binary-numeric-literals": "error",
"es-x/no-block-scoped-functions": "error",
"es-x/no-block-scoped-variables": "off",
"es-x/no-classes": "error",
"es-x/no-computed-properties": "error",
"es-x/no-default-parameters": "error",
"es-x/no-destructuring": "off",
"es-x/no-for-of-loops": "error",
"es-x/no-generators": "error",
"es-x/no-map": "error",
"es-x/no-math-acosh": "error",
"es-x/no-math-asinh": "error",
"es-x/no-math-atanh": "error",
"es-x/no-math-cbrt": "error",
"es-x/no-math-clz32": "error",
"es-x/no-math-cosh": "error",
"es-x/no-math-expm1": "error",
"es-x/no-math-fround": "error",
"es-x/no-math-hypot": "error",
"es-x/no-math-imul": "error",
"es-x/no-math-log10": "error",
"es-x/no-math-log1p": "error",
"es-x/no-math-log2": "error",
"es-x/no-math-sign": "error",
"es-x/no-math-sinh": "error",
"es-x/no-math-tanh": "error",
"es-x/no-math-trunc": "error",
"es-x/no-modules": "error",
"es-x/no-new-target": "error",
"es-x/no-number-epsilon": "error",
"es-x/no-number-isfinite": "error",
"es-x/no-number-isinteger": "error",
"es-x/no-number-isnan": "error",
"es-x/no-number-issafeinteger": "error",
"es-x/no-number-maxsafeinteger": "error",
"es-x/no-number-minsafeinteger": "error",
"es-x/no-number-parsefloat": "error",
"es-x/no-number-parseint": "error",
"es-x/no-object-assign": "error",
"es-x/no-object-getownpropertysymbols": "error",
"es-x/no-object-is": "error",
"es-x/no-object-setprototypeof": "error",
"es-x/no-object-super-properties": "error",
"es-x/no-octal-numeric-literals": "error",
"es-x/no-promise": "error",
"es-x/no-property-shorthands": "error",
"es-x/no-proxy": "error",
"es-x/no-reflect": "error",
"es-x/no-regexp-prototype-flags": "error",
"es-x/no-regexp-u-flag": "error",
"es-x/no-regexp-y-flag": "error",
"es-x/no-rest-parameters": "error",
"es-x/no-set": "error",
"es-x/no-spread-elements": "error",
"es-x/no-string-fromcodepoint": "error",
"es-x/no-string-prototype-codepointat": "error",
"es-x/no-string-prototype-endswith": "error",
"es-x/no-string-prototype-includes": "error",
"es-x/no-string-prototype-normalize": "error",
"es-x/no-string-prototype-repeat": "error",
"es-x/no-string-prototype-startswith": "error",
"es-x/no-string-raw": "error",
"es-x/no-subclassing-builtins": "error",
"es-x/no-symbol": "error",
"es-x/no-template-literals": "error",
"es-x/no-typed-arrays": "error",
"es-x/no-unicode-codepoint-escapes": "error",
"es-x/no-weak-map": "error",
"es-x/no-weak-set": "error"
},
"globals": {
"clock": "readonly",
"defaultFont": "readonly",
"galaxyNumber": "readonly",
"global": "readonly",
"guiScreen": "readonly",
"manifest": "readonly",
"mission": "readonly",
"missionVariables": "readonly",
"oolite": "readonly",
"player": "readonly",
"ship": "readonly",
"system": "readonly",
"timeAccelerationFactor": "readonly",
"worldScriptNames": "readonly",
"worldScripts": "readonly",
"addFrameCallback": "readonly",
"displayNameForCommodity": "readonly",
"expandDescription": "readonly",
"expandMissionText": "readonly",
"formatCredits": "readonly",
"formatInteger": "readonly",
"getGuiColorSettingForKey": "readonly",
"getScreenBackgroundForKey": "readonly",
"isValidFrameCallback": "readonly",
"log": "readonly",
"pauseGame": "readonly",
"randomInhabitantsDescription": "readonly",
"randomName": "readonly",
"removeFrameCallback": "readonly",
"setGuiColorSettingForKey": "readonly",
"setScreenBackground": "readonly",
"setScreenOverlay": "readonly",
"takeSnapShot": "readonly",
"Clock": "readonly",
"Dock": "readonly",
"Entity": "readonly",
"ExhaustPlume": "readonly",
"EquipmentInfo": "readonly",
"Flasher": "readonly",
"Global": "readonly",
"Manifest": "readonly",
"Mission": "readonly",
"Oolite": "readonly",
"Planet": "readonly",
"Player": "readonly",
"PlayerShip": "readonly",
"PriorityAIController": "readonly",
"Quaternion": "readonly",
"Ship": "readonly",
"ShipGroup": "readonly",
"Sound": "readonly",
"SoundSource": "readonly",
"Station": "readonly",
"Sun": "readonly",
"System": "readonly",
"SystemInfo": "readonly",
"Timer": "readonly",
"Vector3D": "readonly",
"VisualEffect": "readonly",
"Waypoint": "readonly",
"Wormhole": "readonly"
}
}