|
8 | 8 | }, |
9 | 9 | "rules": { |
10 | 10 | "curly": "error", |
11 | | - "eslint/no-underscore-dangle": [ |
12 | | - "error", |
13 | | - { |
14 | | - "allow": [ |
15 | | - "__agentId", |
16 | | - "__bundledOverrideRuntime", |
17 | | - "__bundledPluginFailureLoads", |
18 | | - "__bundledPluginUndefinedLoads", |
19 | | - "__bundledRootRuntime", |
20 | | - "__bundledSecretsFailureLoads", |
21 | | - "__bundledSetupFailureLoads", |
22 | | - "__bundledSetupOnlyMainLoaded", |
23 | | - "__bundledSetupOnlyPluginLoaded", |
24 | | - "__bundledSetupOnlySetupLoaded", |
25 | | - "__bundledSetupSecretsFailureLoads", |
26 | | - "__esModule", |
27 | | - "__dirname", |
28 | | - "__filename", |
29 | | - "__testing", |
30 | | - "__test__", |
31 | | - "__test", |
32 | | - "__testing_resetResolvedSkillsCache", |
33 | | - "__openclaw", |
34 | | - "__openclawBundledChannelReenter", |
35 | | - "__openclawBundledOverrideRuntime", |
36 | | - "__openclawBundledPluginFailureLoads", |
37 | | - "__openclawBundledPluginUndefinedLoads", |
38 | | - "__openclawBundledRootRuntime", |
39 | | - "__openclawBundledSecretsFailureLoads", |
40 | | - "__openclawBundledSetupFailureLoads", |
41 | | - "__openclawBundledSetupOnlyMainLoaded", |
42 | | - "__openclawBundledSetupOnlyPluginLoaded", |
43 | | - "__openclawBundledSetupOnlySetupLoaded", |
44 | | - "__openclawBundledSetupSecretsFailureLoads", |
45 | | - "__openclawDiagnosticStabilityState", |
46 | | - "__openclawLastA2UIAction", |
47 | | - "__openclawPreauthBudgetClaimed", |
48 | | - "__openclawPreauthBudgetKey", |
49 | | - "__openclawSessionEventWriteLockInstalled", |
50 | | - "__openclawSessionLockPromptReleaseInstalled", |
51 | | - "__openclawSessionWriteLockInstalled", |
52 | | - "__OPENCLAW_TEST_REFRESH_OPENAI_CODEX_TOKEN__", |
53 | | - "__countTrackedSessionBrowserTabsForTests", |
54 | | - "__emit", |
55 | | - "__gatewayStartupSecretsRuntimeMock", |
56 | | - "__image", |
57 | | - "__matrixQaProfileTesting", |
58 | | - "__OPENCLAW_VERSION__", |
59 | | - "__OPENCLAW_CONTROL_UI_BUILD_ID__", |
60 | | - "__OPENCLAW_NATIVE_CONTROL_AUTH__", |
61 | | - "__OPENCLAW_CONTROL_UI_BASE_PATH__", |
62 | | - "__testDivider", |
63 | | - "__proofAttachmentApi", |
64 | | - "__proofAttachmentLog", |
65 | | - "__QA_IMAGE_UNDERSTANDING_LARGE_PNG_BASE64", |
66 | | - "__QA_IMAGE_UNDERSTANDING_PNG_BASE64", |
67 | | - "__resetContainerEnvironmentCacheForTest", |
68 | | - "__resetDiscordChannelInfoCacheForTest", |
69 | | - "__resetDiscordDirectoryCacheForTest", |
70 | | - "__resetDiscordThreadStarterCacheForTest", |
71 | | - "__resetGatewayModelPricingCacheForTest", |
72 | | - "__resetLmstudioPreloadCooldownForTest", |
73 | | - "__resetModelCatalogCacheForTest", |
74 | | - "__resetSlackChannelTypeCacheForTest", |
75 | | - "__resetTrackedSessionBrowserTabsForTests", |
76 | | - "__resetUsageFormatCachesForTest", |
77 | | - "__sessionKey", |
78 | | - "__sessionUpdateMock", |
79 | | - "__setGatewayModelPricingForTest", |
80 | | - "__setMaxChatHistoryMessagesBytesForTest", |
81 | | - "__setMembers", |
82 | | - "__setModelCatalogImportForTest", |
83 | | - "__setRealtimeVoiceAgentConsultDepsForTest", |
84 | | - "__slackClient", |
85 | | - "__slackHandlers", |
86 | | - "__testOnlyOpenAiHttp", |
87 | | - "__truncated", |
88 | | - "__unhandledDestroyError", |
89 | | - "_accountRegistry", |
90 | | - "_adapter", |
91 | | - "_adapterFactory", |
92 | | - "_agentEventQueue", |
93 | | - "_ambiguousThreadReply", |
94 | | - "_approveRuntimeGetter", |
95 | | - "_audioPort", |
96 | | - "_baseSystemPrompt", |
97 | | - "_body", |
98 | | - "_boundaryPrefix", |
99 | | - "_cache", |
100 | | - "_cachedCapability", |
101 | | - "_callbackChain", |
102 | | - "_capturedPayload", |
103 | | - "_clearForTest", |
104 | | - "_client", |
105 | | - "_advancedWaitingSort", |
106 | | - "_diaryEntryCount", |
107 | | - "_diaryPage", |
108 | | - "_diarySubTab", |
109 | | - "_dreamIndex", |
110 | | - "_dreamLastSwap", |
111 | | - "_expandedInsightCards", |
112 | | - "_expandedPalaceCards", |
113 | | - "_indices", |
114 | | - "_keys", |
115 | | - "_pendingUpdate", |
116 | | - "_refreshSeq", |
117 | | - "_subTab", |
118 | | - "_wikiPreviewContent", |
119 | | - "_wikiPreviewError", |
120 | | - "_wikiPreviewLoading", |
121 | | - "_wikiPreviewOpen", |
122 | | - "_wikiPreviewPath", |
123 | | - "_wikiPreviewTitle", |
124 | | - "_wikiPreviewTotalLines", |
125 | | - "_wikiPreviewTruncated", |
126 | | - "_wikiPreviewUpdatedAt", |
127 | | - "_config", |
128 | | - "_createdAt", |
129 | | - "_createGraphCollectionResponse", |
130 | | - "_createHostedImageContents", |
131 | | - "_createMemoryConfig", |
132 | | - "_createMemorySyncControlConfigForTests", |
133 | | - "_createPdfResponse", |
134 | | - "_createUnboundConfiguredRoute", |
135 | | - "_data", |
136 | | - "_default", |
137 | | - "_def", |
138 | | - "_distance", |
139 | | - "_doIdle", |
140 | | - "_doPartialReply", |
141 | | - "_embeddedMode", |
142 | | - "_event", |
143 | | - "_exhaustive", |
144 | | - "_extensionRunner", |
145 | | - "_fallbackLogger", |
146 | | - "_findChatGuidForTest", |
147 | | - "_flow", |
148 | | - "_formatImagePlaceholder", |
149 | | - "_getActiveHandles", |
150 | | - "_getActiveRequests", |
151 | | - "_getData", |
152 | | - "_getStatusCode", |
153 | | - "_getTrustedDirs", |
154 | | - "_globalUndiciStreamTimeoutMs", |
155 | | - "_GRAPH_HOST", |
156 | | - "_handlers", |
157 | | - "_host", |
158 | | - "_id", |
159 | | - "_instruction", |
160 | | - "_isMockFunction", |
161 | | - "_item", |
162 | | - "_logger", |
163 | | - "_maxPayload", |
164 | | - "_meta", |
165 | | - "_mode", |
166 | | - "_normalizeDirectChatIdentifierForTest", |
167 | | - "_openclawVersion", |
168 | | - "_openRouterMusicTestInternals", |
169 | | - "_parsed", |
170 | | - "_pendingSessionText", |
171 | | - "_pendingUploadId", |
172 | | - "_pluginVersion", |
173 | | - "_private", |
174 | | - "_probeThrottleInternals", |
175 | | - "_processAgentEvent", |
176 | | - "_rawData", |
177 | | - "_ready", |
178 | | - "_rebuildSystemPrompt", |
179 | | - "_receiver", |
180 | | - "_registerOpenAIPlugin", |
181 | | - "_registerProvider", |
182 | | - "_requestLanguageOverride", |
183 | | - "_requestPromptOverride", |
184 | | - "_resetActiveManagedProxyStateForTests", |
185 | | - "_resetBootstrapWarningCacheForTest", |
186 | | - "_resetIMessageShortIdState", |
187 | | - "_resetMemoryEmbeddingProviders", |
188 | | - "_resetMemoryPluginState", |
189 | | - "_resetResolveSystemBin", |
190 | | - "_resetThreadParentContextCachesForTest", |
191 | | - "_resetWindowsInstallRootsForTests", |
192 | | - "_resolveFilename", |
193 | | - "_resolveVersion", |
194 | | - "_resolveWhatsAppAccountConfig", |
195 | | - "_rewriteFile", |
196 | | - "_setComfyFetchGuardForTesting", |
197 | | - "_setFalFetchGuardForTesting", |
198 | | - "_setFalVideoFetchGuardForTesting", |
199 | | - "_setGitHubCopilotDeviceFlowFetchGuardForTesting", |
200 | | - "_SHAREPOINT_HOST", |
201 | | - "_silkWasmAvailable", |
202 | | - "_silkWasmPromise", |
203 | | - "_socket", |
204 | | - "_status", |
205 | | - "_test", |
206 | | - "_token", |
207 | | - "_truncated", |
208 | | - "_videoGenerationSdkCompat", |
209 | | - "_QA_IMAGE_UNDERSTANDING_LARGE_PNG_BASE64", |
210 | | - "_QA_IMAGE_UNDERSTANDING_PNG_BASE64", |
211 | | - "_TEST_URL_HTML_A", |
212 | | - "_TEST_URL_HTML_B", |
213 | | - "_TEST_URL_IMAGE_1_PNG", |
214 | | - "_TEST_URL_IMAGE_2_JPG", |
215 | | - "_TEST_URL_IMAGE_PNG", |
216 | | - "_TEST_URL_PDF", |
217 | | - "_TEST_URL_PDF_1", |
218 | | - "_TEST_URL_PDF_2", |
219 | | - "isManuallyStopped_", |
220 | | - "resetRestartAttempts_", |
221 | | - "require_" |
222 | | - ] |
223 | | - } |
224 | | - ], |
| 11 | + "eslint/no-underscore-dangle": "error", |
225 | 12 | "eslint-plugin-unicorn/prefer-array-find": "error", |
226 | 13 | "eslint/no-array-constructor": "error", |
227 | 14 | "eslint/no-await-in-loop": "off", |
|
0 commit comments