This PR is in two parts, first commit I have introduced eslint with our standard rules (except I have disabled the restricted syntax rule). The second commit enables the restricted syntax rule which prevents for-of which ultimately solves compatibility with older JavaScriptCore (#27). I knew this wasn't permitted with our rules so I enabled eslint to prevent us using for-of in future too.
This PR is in two parts, first commit I have introduced eslint with our standard rules (except I have disabled the restricted syntax rule). The second commit enables the restricted syntax rule which prevents for-of which ultimately solves compatibility with older JavaScriptCore (#27). I knew this wasn't permitted with our rules so I enabled eslint to prevent us using for-of in future too.