Skip to content
Open
7 changes: 5 additions & 2 deletions client/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@
},
"include": [
"src",
".eslintrc.js"
]
".eslintrc.js",
],
"files": [
"uuid.d.ts"
],
}
1 change: 1 addition & 0 deletions client/uuid.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
declare module 'uuid';
13 changes: 13 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
"build": "tsc",
"lint": "eslint src/** --ext .ts",
"lint-fix": "eslint src/**/*.ts --fix --max-warnings=0",
"prepare": "husky install",
"postinstall": "cd client && npm i"
"postinstall": "cd client && npm i",
"heroku-postbuild": "npm i --force && cd client && npm run build && cd .. && npm run build"
},
"repository": {
"type": "git",
Expand Down
6 changes: 1 addition & 5 deletions src/routes/comments.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,7 @@ import { Router } from 'express';
import { isAuth } from '../middlewares/auth.middleware';

const router = Router();
router.get(
'/posts/:postId/comments',
errorWrapper(isAuth),
errorWrapper(CommentsController.index),
);
router.get('/posts/:postId/comments', errorWrapper(CommentsController.index));
router.post(
'/post/:postId/comments',
errorWrapper(isAuth),
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"compileOnSave": false,
"compilerOptions": {
"skipLibCheck": true,
"strict": true,
"strict": false,
"noFallthroughCasesInSwitch": true,
"isolatedModules": true,
"target": "es2021",
Expand Down