build: Use prettier for javascript

Stop ignoring .js and .json files in prettier and fix existing issues.

The `prettier-plugin-multiline-arrays` plugin is used to split arrays
with multiple elements into one line per element.
This commit is contained in:
Ralph Hopman
2024-12-19 10:19:28 +01:00
committed by Adam Saghy
parent 2ec9ba81d6
commit f693318c2e
25 changed files with 7770 additions and 7608 deletions
+3 -1
View File
@@ -32,7 +32,9 @@ function setupForCorporateProxy(proxyConfig) {
if (proxyServer) {
console.log(`Using corporate proxy server: ${proxyServer}`);
agent = new HttpsProxyAgent(proxyServer);
proxyConfig.forEach(entry => { entry.agent = agent; });
proxyConfig.forEach((entry) => {
entry.agent = agent;
});
}
return proxyConfig;