Skip to content

Commit

Permalink
chore: added prettier and eslint config
Browse files Browse the repository at this point in the history
  • Loading branch information
roman-ojha committed Jun 7, 2022
1 parent 1b6092c commit 0923635
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 3 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules/
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules/
8 changes: 8 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"trailingComma": "es5",
"tabWidth": 2,
"semi": true,
"singleQuote": false,
"arrowParens": "always",
"useTabs": false
}
3 changes: 1 addition & 2 deletions client/src/pages/GetUserID.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const GetUserID = (props) => {
};
getUserDetail();
}
}, []);
}, [history, uid]);
const submitDetail = async (e) => {
try {
dispatch(showLoadingSpinner(true));
Expand All @@ -64,7 +64,6 @@ const GetUserID = (props) => {
data: data,
withCredentials: true,
});
const resData = await res.data;
if (res.status !== 200) {
// console.log(resData);
} else {
Expand Down
1 change: 0 additions & 1 deletion controllers/setting.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ export default {
changeUserID: async (req: Request, res: Response): Promise<object> => {
try {
const newUserID = req.body.newUserID;
console.log(req.body);
const oldUserID = req.rootUser.userID;
if (!newUserID) {
return res.status(400).json(<ResponseObject>{
Expand Down

0 comments on commit 0923635

Please sign in to comment.