Enable object-shorthand rule (#1500)

Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com>
This commit is contained in:
Panu Horsmalahti authored and GitHub committed 2020-11-24 13:16:35 +02:00
1 parent 2a8cfe5e67
commit ff93760dc4
42 files changed
+69 -66

No files matched your search

@@ -13,7 +13,7 @@ export class ClusterIdDetector extends BaseClusterDetector {
id = this.cluster.apiUrl;
}
const value = createHash("sha256").update(id).digest("hex");
return { value: value, accuracy: 100 };
return { value, accuracy: 100 };
}
protected async getDefaultNamespaceId() {
+1 -1
View File
@@ -91,7 +91,7 @@ export class ContextHandler {
return {
target: proxyUrl,
changeOrigin: true,
timeout: timeout,
timeout,
headers: {
"Host": this.clusterUrl.hostname,
},
+1 -1
View File
@@ -8,7 +8,7 @@ export class HelmCli extends LensBinary {
public constructor(baseDir: string, version: string) {
const opts: LensBinaryOpts = {
version,
baseDir: baseDir,
baseDir,
originalBinaryName: "helm",
newBinaryName: "helm3"
};
+1 -1
View File
@@ -40,7 +40,7 @@ export class HelmReleaseManager {
log: stdout,
release: {
name: releaseName,
namespace: namespace
namespace
}
};
} finally {
+4 -4
View File
@@ -67,15 +67,15 @@ export class Router {
output: "data",
});
return {
cluster: cluster,
cluster,
path: url.pathname,
raw: {
req: req,
req,
},
response: res,
query: url.searchParams,
payload: payload,
params: params
payload,
params
};
}
+3 -3
View File
@@ -78,16 +78,16 @@ class PortForwardRoute extends LensApi {
let portForward = PortForward.getPortforward({
clusterId: cluster.id, kind: resourceType, name: resourceName,
namespace: namespace, port: port
namespace, port
});
if (!portForward) {
logger.info(`Creating a new port-forward ${namespace}/${resourceType}/${resourceName}:${port}`);
portForward = new PortForward({
clusterId: cluster.id,
kind: resourceType,
namespace: namespace,
namespace,
name: resourceName,
port: port,
port,
kubeConfig: cluster.getProxyKubeconfigPath()
});
const started = await portForward.start();
+1 -1
View File
@@ -47,7 +47,7 @@ export class ShellSession extends EventEmitter {
this.shellProcess = pty.spawn(shell, args, {
cols: 80,
cwd: this.cwd() || env.HOME,
env: env,
env,
name: "xterm-256color",
rows: 30,
});
+1 -1
View File
@@ -124,7 +124,7 @@ export class WindowManager extends Singleton {
await this.ensureMainWindow();
this.sendToView({
channel: "renderer:navigate",
frameId: frameId,
frameId,
data: [url],
});
}