Chore/149490791/remove redundant packages#22
Conversation
install moment Start #149490791
uninstall unused packages edit users update route edit documents get all route Finishes #149490791
There was a problem hiding this comment.
Unable to resolve path to module 'chai' import/no-unresolved
Missing file extension for "chai" import/extensions
| @@ -1,5 +1,4 @@ | |||
| import chai, { expect } from 'chai'; | |||
| import chaiHttp from 'chai-http'; | |||
| import { expect } from 'chai'; | |||
There was a problem hiding this comment.
Unable to resolve path to module 'chai' import/no-unresolved
Missing file extension for "chai" import/extensions
| @@ -1,5 +1,4 @@ | |||
| import chai, { expect } from 'chai'; | |||
| import chaiHttp from 'chai-http'; | |||
| import { expect } from 'chai'; | |||
There was a problem hiding this comment.
Unable to resolve path to module 'chai' import/no-unresolved
Missing file extension for "chai" import/extensions
| import express from 'express'; | ||
| import _ from 'lodash'; | ||
| import { hashPassword, isAdmin, isUser } from '../helpers/helper'; | ||
| import { formatDate, hashPassword, isAdmin, isUser } from '../helpers/helper'; |
There was a problem hiding this comment.
Unable to resolve path to module '../helpers/helper' import/no-unresolved
Missing file extension for "../helpers/helper" import/extensions
| @@ -1,5 +1,5 @@ | |||
| import express from 'express'; | |||
| import { isAdmin, isUser } from '../helpers/helper'; | |||
| import { formatDate, isAdmin, isUser } from '../helpers/helper'; | |||
There was a problem hiding this comment.
Unable to resolve path to module '../helpers/helper' import/no-unresolved
Missing file extension for "../helpers/helper" import/extensions
| @@ -1,13 +1,38 @@ | |||
| import bcrypt from 'bcryptjs'; | |||
| import moment from 'moment'; | |||
There was a problem hiding this comment.
Unable to resolve path to module 'moment' import/no-unresolved
Missing file extension for "moment" import/extensions
|
Your |
| + Delete documents, users | ||
| + Update documents, users | ||
|
|
||
| ## Endpoints |
There was a problem hiding this comment.
Is there any reason you removed this, I think it's important because how do I know what routes are available and the HTTP method to use.
There was a problem hiding this comment.
There's a documentation available at root of the url @ http://cjdocs.herokuapp.com
There was a problem hiding this comment.
If I wanted to contribute to your project, I'd be hurt if I didn't see it in your README. The README is like a developers go-to source for information about a project. The more descriptive, the better.
There was a problem hiding this comment.
I agree, but the feedback a friend got during his defense said to remove it. That was why I removed it.
There was a problem hiding this comment.
any reason you're not complying with ES6 standard here. You could easily export const formatDate = (date) => { here.
Just a thought.
There was a problem hiding this comment.
I'm following the Airbnb style guide, which say prefer normal function for things like that
There was a problem hiding this comment.
Can you share a link to where you found that, will love to see how they put it.
There was a problem hiding this comment.
It's from ESLint, but I can check for it. Encountered it when I was working on a React app in CP1
There was a problem hiding this comment.
I think it's here https://github.com/airbnb/javascript#functions
There was a problem hiding this comment.
I feel you are safer using arrow functions instead.

#149490791 remove redundant packages