Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Read required Node.js version from project package.json #29

Closed
sindresorhus opened this issue Apr 19, 2016 · 3 comments
Closed

Read required Node.js version from project package.json #29

sindresorhus opened this issue Apr 19, 2016 · 3 comments

Comments

@sindresorhus
Copy link

For the no-unsupported-features rule. I have a shareable config and I don't want to manually specify the required Node.js version for each project. That information is already available in the engines field in package.json.

You could use read-pkg-up.

@mysticatea
Copy link
Owner

Thank you for this issue.

It's a good idea!
I will make the rule reading that information by default.

@mysticatea
Copy link
Owner

Hmm, semver seems to not provide API to get the minimum version of semver ranges. @sindresorhus Do you have any idea?

@mysticatea
Copy link
Owner

mysticatea commented Apr 27, 2016

Oh, I got it.

image

mysticatea added a commit that referenced this issue Apr 27, 2016
…json` (fixes #29)

This depends on undocumented APIs of `semver` module. So I pinned the
version of `semver`.
mysticatea added a commit that referenced this issue Apr 27, 2016
…json` (fixes #29) (#34)

This depends on undocumented APIs of `semver` module. So I pinned the
version of `semver`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants