-
-
Notifications
You must be signed in to change notification settings - Fork 938
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
Add minimum node version to engine field in package.json #4790
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rgranger Thanks! I've requested a change.
You'll also need to run npm run format
to resolve the lint warning.
As an aside, once we roll out stylelint/npm-package-json-lint-config across the stylelint repositories they'll all have engine
fields as the config requires it.
README.md
Outdated
@@ -19,6 +19,8 @@ It's mighty as it: | |||
- is **unopinionated** so that you can customize it to your exact needs | |||
- has a **growing community** and is used by [Facebook](https://code.facebook.com/posts/879890885467584/improving-css-quality-at-facebook-and-beyond/), [GitHub](https://github.com/primer/stylelint-config-primer) and [WordPress](https://github.com/ntwb/stylelint-config-wordpress/) | |||
|
|||
Minimum NodeJs version supported : v10.13.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can remove this line as using the engine
field in the package.json
will suffice. It's the standardised way of communicating a package's compatibility and will produce a warning on the CLI when npm i
is used, e.g.:
npm WARN notsup Unsupported engine for stylelint@13.4.0: wanted: {"node":">=10.13.0"} (current: {"node":"8.17.0","npm":"6.13.4"})
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, line has been removed from the readme
@rgranger Thanks for making the change. You'll need to run It'll likely reorder the engine property in the |
done |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @rgranger. This looks good to me 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Looks good to me.
Changelog:
|
#4787
e.g. "No, it's self-explanatory."