-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix linting issues #28
Comments
@supasate I'll take this |
@iswanj Go for it |
@supasate I found lint issue in if (!error && response.statusCode === 200) {
console.log('Successfully sent generic message ' +
`with id ${body.message_id} to recipient ${body
body.recipient_id}`);
} else {
console.error('Unable to send message.');
console.error(response);
console.error(error);
} |
This repo still uses |
Inside refreshToken function, getting an eslint warn for "no-new" ( Do not use new for side effects ). So I'm gonna ignore "no-new" rull, any thoughts...? |
Also found another error "Fatal Parsing error: Unexpected token" on |
@iswanj The "no new for side effect" warning is there because wrapping the call to app.authenticate({
type: 'local',
'email': this.username,
'password': this.password
}).then(result => {
this.token = app.get('token');
}).catch(error => {
console.log(error);
}); |
@iswanj For parsing error of await, you can The reason is we use That's different from Therefore, eslint expects the following ES7 format: onMessaged: async (event) => {
...
await conversation.getContext(userid)
} We may refactor it later when we move to ES7. |
@supasate I think |
You're right. So, I think we can left it unless we find a workaround. |
No description provided.
The text was updated successfully, but these errors were encountered: