Skip to content

Conversation

@egiurleo
Copy link
Contributor

@egiurleo egiurleo commented Jul 2, 2019

PR Checklist

Overview

This PR replaces the fs.promises API with util.promisify in order to support Node 8.x.

Edit: Not sure how to test this change.

@JoshuaKGoldberg JoshuaKGoldberg added the status: waiting for reviewer Waiting for a maintainer to review label Jul 2, 2019
Copy link
Member

@JoshuaKGoldberg JoshuaKGoldberg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome, code changes LGTM! Just a quick nitpick 😄

@JoshuaKGoldberg JoshuaKGoldberg added status: waiting for author The PR author should address requested changes and removed status: waiting for reviewer Waiting for a maintainer to review labels Jul 2, 2019
Copy link
Member

@JoshuaKGoldberg JoshuaKGoldberg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀 super!

@JoshuaKGoldberg
Copy link
Member

For testing this change: to recap an offline conversation, exercising that file writing works could be done with a single tslint-to-eslint-config run that writes a new config file.

Copy link
Member

@JoshuaKGoldberg JoshuaKGoldberg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh shoot sorry @egiurleo I just noticed: https://github.com/egiurleo/tslint-to-eslint-config/blob/0620e729b8d9490f406659afd4ca54403721226e/src/adapters/fsFileSystem.ts#L25

That usage of fs.promises will need to be replaced too. Could you please make that change?

Copy link
Member

@JoshuaKGoldberg JoshuaKGoldberg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wonderful, thanks so much for sending this in @egiurleo! 🥇

@JoshuaKGoldberg JoshuaKGoldberg merged commit 83b680d into typescript-eslint:master Jul 3, 2019
@egiurleo egiurleo deleted the issue-63-support-node-8 branch July 19, 2019 22:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

status: waiting for author The PR author should address requested changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support Node 8.X

2 participants