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

Ensure correct eslint version is being used. #397

Merged
merged 2 commits into from
Oct 26, 2022
Merged

Conversation

rwjblue
Copy link
Collaborator

@rwjblue rwjblue commented Oct 26, 2022

As of 4.0.0 we require eslint@^8.4.0 (and properly included that as a non-optional peer dependency), but unfortunately (depending on your package manager) the peer dependency isn't enforced.

This brings in validate-peer-dependencies and runs it when the formatter is required/loaded. This will emit a helpful error if your eslint version isn't compliant with our peer dependency requirements.


I noticed that eslint was listed as an explicit dependency (which is generally an error condition, when you use peerDependencies), so I moved it to dev dependencies.

As of 4.0.0 we require `eslint@^8.4.0` (and properly included that as a
non-optional peer dependency), but unfortunately (depending on your
package manager) the peer dependency isn't enforced.

This brings in
[validate-peer-dependencies](https://github.com/rwjblue/validate-peer-dependencies)
and runs it when the formatter is required/loaded. This will emit a
helpful error if your `eslint` version isn't compliant with our peer
dependency requirements.
@rwjblue rwjblue added the documentation Improvements or additions to documentation label Oct 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants