Skip to content

Commit

Permalink
fix: update lint
Browse files Browse the repository at this point in the history
  • Loading branch information
scttcper committed Oct 14, 2019
1 parent 47470b3 commit 4497c3e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
dist
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion test/example.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}

0 comments on commit 4497c3e

Please sign in to comment.