{"action":"created","issue":{"url":"https://api.github.com/repos/Keanux/keanux-personal/issues/50","labels_url":"https://api.github.com/repos/Keanux/keanux-personal/issues/50/labels{/name}","comments_url":"https://api.github.com/repos/Keanux/keanux-personal/issues/50/comments","events_url":"https://api.github.com/repos/Keanux/keanux-personal/issues/50/events","html_url":"https://github.com/Keanux/keanux-personal/issues/50","id":88346979,"number":50,"title":"Redefind promise causing jshint error","user":{"login":"kirkchen","id":293918,"avatar_url":"https://avatars.githubusercontent.com/u/293918?v=3","gravatar_id":"","url":"https://api.github.com/users/kirkchen","html_url":"https://github.com/kirkchen","followers_url":"https://api.github.com/users/kirkchen/followers","following_url":"https://api.github.com/users/kirkchen/following{/other_user}","gists_url":"https://api.github.com/users/kirkchen/gists{/gist_id}","starred_url":"https://api.github.com/users/kirkchen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kirkchen/subscriptions","organizations_url":"https://api.github.com/users/kirkchen/orgs","repos_url":"https://api.github.com/users/kirkchen/repos","events_url":"https://api.github.com/users/kirkchen/events{/privacy}","received_events_url":"https://api.github.com/users/kirkchen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-06-15T07:37:36Z","updated_at":"2015-06-15T07:59:08Z","closed_at":null,"body":"由於在[./data/seed.js](https://github.com/Keanux/keanux-personal/blob/master/server/data/seed.js#L3)中使用了bluebird的promise來進行非同步，\r\n導致JsHint跳出錯誤提示 (#49)，警告我們複寫了Global的Promise，\r\n在暫時不升為ES6的考量下 （為了降低教學門檻），\r\n是否有較好的解決方法？\r\n\r\n參考 @dca 的建議，解決方案如下\r\na. 改名\r\nb. 替換 es6 內建的 global.Promise\r\nc. (區域or全域)忽略 redefine 問題\r\n\r\n@appleboy @keanyc 有其他的建議嗎？"},"comment":{"url":"https://api.github.com/repos/Keanux/keanux-personal/issues/comments/111971281","html_url":"https://github.com/Keanux/keanux-personal/issues/50#issuecomment-111971281","issue_url":"https://api.github.com/repos/Keanux/keanux-personal/issues/50","id":111971281,"user":{"login":"kirkchen","id":293918,"avatar_url":"https://avatars.githubusercontent.com/u/293918?v=3","gravatar_id":"","url":"https://api.github.com/users/kirkchen","html_url":"https://github.com/kirkchen","followers_url":"https://api.github.com/users/kirkchen/followers","following_url":"https://api.github.com/users/kirkchen/following{/other_user}","gists_url":"https://api.github.com/users/kirkchen/gists{/gist_id}","starred_url":"https://api.github.com/users/kirkchen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kirkchen/subscriptions","organizations_url":"https://api.github.com/users/kirkchen/orgs","repos_url":"https://api.github.com/users/kirkchen/repos","events_url":"https://api.github.com/users/kirkchen/events{/privacy}","received_events_url":"https://api.github.com/users/kirkchen/received_events","type":"User","site_admin":false},"created_at":"2015-06-15T07:59:08Z","updated_at":"2015-06-15T07:59:08Z","body":"如果大家都同意的話，\r\n我就先將jshint中關於Promise Redefine的檢查透過以下方式移除\r\n\r\n在.jshintrc中加入predef設定\r\n```\r\n{\r\n  \"predef\": [ \"-Promise\" ]\r\n}\r\n```\r\n"}}