Add eslint for linting (denoland/deno_std#235)

Original: c0390ade3d
This commit is contained in:
Kitson Kelly 2019-03-05 11:53:35 +11:00 committed by Ryan Dahl
parent 9f33cd2896
commit 17663c1232
41 changed files with 734 additions and 649 deletions

View file

@ -9,7 +9,7 @@ function pathBase(p: string): string {
return parts[parts.length - 1];
}
async function main() {
async function main(): Promise<void> {
const token = env()["GIST_TOKEN"];
if (!token) {
console.error("GIST_TOKEN environmental variable not set.");
@ -46,7 +46,7 @@ async function main() {
headers: [
["Content-Type", "application/json"],
["User-Agent", "Deno-Gist"],
["Authorization", "token " + token]
["Authorization", `token ${token}`]
],
body
});