From 4430ab509841931515c3ea28c6954f35e5d5a82c Mon Sep 17 00:00:00 2001 From: guidohollander Date: Fri, 2 Jun 2023 15:07:02 +0200 Subject: [PATCH] eslint2 --- .eslintignore | 1 + package.json | 3 ++- src/index.ts | 8 -------- 3 files changed, 3 insertions(+), 9 deletions(-) create mode 100644 .eslintignore diff --git a/.eslintignore b/.eslintignore new file mode 100644 index 0000000..4c43fe6 --- /dev/null +++ b/.eslintignore @@ -0,0 +1 @@ +*.js \ No newline at end of file diff --git a/package.json b/package.json index a5b9397..940631d 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,8 @@ "scripts": { "build": "tsc", "format": "prettier --write .", - "prepare": "husky install" + "prepare": "husky install", + "lint": "eslint ." }, "devDependencies": { "@types/node": "^20.2.3", diff --git a/src/index.ts b/src/index.ts index 9e1df0d..656c355 100644 --- a/src/index.ts +++ b/src/index.ts @@ -24,12 +24,4 @@ // spawnSample('powershell',['node', '-v']); // } // start(); -type Haha = true; console.log("Hello world!"); -export const hello = "hi world"; - -async function test() { - await Promise.resolve("hi"); -} - -var h = true;