Skip to content
This repository has been archived by the owner on Aug 18, 2021. It is now read-only.

Using Node 4 Features #397

Closed
hzoo opened this issue Sep 27, 2016 · 10 comments
Closed

Using Node 4 Features #397

hzoo opened this issue Sep 27, 2016 · 10 comments

Comments

@hzoo
Copy link
Member

hzoo commented Sep 27, 2016

Since we dropped node < 4,

an easy win would be to change our tests to use template strings instead of

["asdfads",
"asdf"
].join('\n')

This doesn't have to be done in a single PR, and would be good for new contributors

@vgvenkat
Copy link

Hello there! Would this be conversion of all strings which use string concat using "+" in the 3 js test files as well or just the ones with join to use template strings?

@hzoo
Copy link
Member Author

hzoo commented Oct 11, 2016

@vgvenkat Sorry there's already a pr for that particular change #410 (should of put a notice)

@vgvenkat
Copy link

oh. ok cool 👍🏻

@kaicataldo
Copy link
Member

We did the same thing in the ESLint repo recently (there's one PR open that adds the final thing we wanted). This list might be helpful: eslint/eslint#6407

@hzoo
Copy link
Member Author

hzoo commented Oct 17, 2016

If you want you can try https://github.com/mohebifar/lebab or https://github.com/cpojer/js-codemod (for anyone that wants to add more features)

@kaicataldo
Copy link
Member

ESLint itself also has some fixers that could be used - prefer-template was just added recently and I used it on the main ESLint repo with no issues!

@karanjthakkar
Copy link

@hzoo Since #410 is merged, is there any other change that this issue is looking to address? I'd love to help out with other changes, if any, apart from the conversion to template strings.

@kaicataldo
Copy link
Member

kaicataldo commented Dec 29, 2016

Other Node 4 features would be nice to have - arrow functions for callbacks and shorthand object properties come to mind immediately.

@kaicataldo
Copy link
Member

There actually is a PR open with some of this work done: #425

@hzoo
Copy link
Member Author

hzoo commented Jan 9, 2018

Going to close as some of this is done and don't need to track

@hzoo hzoo closed this as completed Jan 9, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants