Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import { Linear } from "@linear/sdk";
if (!process.env.LINEAR_API_KEY) {
throw new Error("Expected LINEAR_API_KEY env var to be set, but it wasn't");
}
export const client = new Linear({
apiKey: process.env.LINEAR_API_KEY,
});
public constructor() {
this.onDidChangeTreeData = this._onDidChangeTreeData.event;
this.linear = new Linear({
token: "",
});
this.refresh();
}