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'); }