From 4497c3e4e2e9ae830e27c1e8cd94ecd1a3637994 Mon Sep 17 00:00:00 2001 From: Scott Cooper Date: Sun, 13 Oct 2019 21:00:40 -0700 Subject: [PATCH] fix: update lint --- .eslintignore | 1 + package.json | 4 ++-- test/example.ts | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) create mode 100644 .eslintignore diff --git a/.eslintignore b/.eslintignore new file mode 100644 index 0000000..1521c8b --- /dev/null +++ b/.eslintignore @@ -0,0 +1 @@ +dist diff --git a/package.json b/package.json index 9329cd5..b08c21a 100644 --- a/package.json +++ b/package.json @@ -9,8 +9,8 @@ ], "scripts": { "start": "ts-node test/example.ts", - "lint": "eslint lib/**/*.ts test/**/*.ts", - "lint:fix": "eslint --fix lib/**/*.ts test/**/*.ts", + "lint": "eslint --ext .ts,.js .", + "lint:fix": "eslint --ext .ts,.js --fix .", "prepare": "npm run build", "build": "del dist && tsc -p tsconfig.build.json", "postbuild": "cp lib/index.hbs dist && cp lib/favicon-32x32.png dist && cp lib/favicon-16x16.png dist", diff --git a/test/example.ts b/test/example.ts index 650b818..3fc40ab 100644 --- a/test/example.ts +++ b/test/example.ts @@ -16,7 +16,7 @@ app .use(router.allowedMethods()); // istanbul ignore next -if (!module.parent) { +if (module.parent === null) { app.listen(3000); console.log('listening on: http://localhost:3000/docs'); }