samsontmr / oss-bot-js

Bot for managing first level PR reviews on OSS GitHub repos
2 stars 2 forks source link

Allow ES6 code #15

Closed Skaty closed 7 years ago

Skaty commented 7 years ago

Use something like Babel.

That way, we can have code that is much neater and that will look less quirky.

samsontmr commented 7 years ago

What do you mean? Examples? XD

Skaty commented 7 years ago

http://es6-features.org/#Constants

li-kai commented 7 years ago

Yep, also not instantiating variables with var/let/const is very bad code! It's setting variables in the global scope. ES6 will explicitly prevent silly things like this from happening because your code will not run 😛

li-kai commented 7 years ago

@Skaty @samsontmr Actually if node 6 and above is used, you can start writing es6 already. No need to transpile.