Allow .finally() on Promises
This MR modifies the promise/catch-or-return rule to allow .finally() blocks to be attached to Promises.
The Promise.finally() method is included in the latest ECMAScript draft: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/finally#Specifications.
This MR also adds a .prettierrc file and beautifies index.js using these rules. The .prettierrc is a simplified version of GitLab CE's .prettierrc: https://gitlab.com/gitlab-org/gitlab-ce/blob/master/.prettierrc.
Edited by Nathan Friend