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

Change react version setting #5

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

star-szr
Copy link

For context, the package I'm trying to use this for doesn't use React, but I am getting a lot of noise in the form of warnings before the lint output. Passing --quiet doesn't seem to have any effect either.

Before:

Warning: React version specified in eslint-plugin-react-settings must be a valid semver version, or "detect"; got “latest”
Warning: React version specified in eslint-plugin-react-settings must be a valid semver version, or "detect"; got “latest”
Warning: React version specified in eslint-plugin-react-settings must be a valid semver version, or "detect"; got “latest”
Warning: React version specified in eslint-plugin-react-settings must be a valid semver version, or "detect"; got “latest”
Warning: React version specified in eslint-plugin-react-settings must be a valid semver version, or "detect"; got “latest”
Warning: React version specified in eslint-plugin-react-settings must be a valid semver version, or "detect"; got “latest”
Warning: React version specified in eslint-plugin-react-settings must be a valid semver version, or "detect"; got “latest”
Warning: React version specified in eslint-plugin-react-settings must be a valid semver version, or "detect"; got “latest”
Warning: React version specified in eslint-plugin-react-settings must be a valid semver version, or "detect"; got “latest”
Warning: React version specified in eslint-plugin-react-settings must be a valid semver version, or "detect"; got “latest”
Warning: React version specified in eslint-plugin-react-settings must be a valid semver version, or "detect"; got “latest”
Warning: React version specified in eslint-plugin-react-settings must be a valid semver version, or "detect"; got “latest”
Warning: React version specified in eslint-plugin-react-settings must be a valid semver version, or "detect"; got “latest”
Warning: React version specified in eslint-plugin-react-settings must be a valid semver version, or "detect"; got “latest”
Warning: React version specified in eslint-plugin-react-settings must be a valid semver version, or "detect"; got “latest”
Warning: React version specified in eslint-plugin-react-settings must be a valid semver version, or "detect"; got “latest”
Warning: React version specified in eslint-plugin-react-settings must be a valid semver version, or "detect"; got “latest”
Warning: React version specified in eslint-plugin-react-settings must be a valid semver version, or "detect"; got “latest”
Warning: React version specified in eslint-plugin-react-settings must be a valid semver version, or "detect"; got “latest”
Warning: React version specified in eslint-plugin-react-settings must be a valid semver version, or "detect"; got “latest”
Warning: React version specified in eslint-plugin-react-settings must be a valid semver version, or "detect"; got “latest”
Warning: React version specified in eslint-plugin-react-settings must be a valid semver version, or "detect"; got “latest”
Warning: React version specified in eslint-plugin-react-settings must be a valid semver version, or "detect"; got “latest”
Warning: React version specified in eslint-plugin-react-settings must be a valid semver version, or "detect"; got “latest”
Warning: React version specified in eslint-plugin-react-settings must be a valid semver version, or "detect"; got “latest”
Warning: React version specified in eslint-plugin-react-settings must be a valid semver version, or "detect"; got “latest”
Warning: React version specified in eslint-plugin-react-settings must be a valid semver version, or "detect"; got “latest”
Warning: React version specified in eslint-plugin-react-settings must be a valid semver version, or "detect"; got “latest”
Warning: React version specified in eslint-plugin-react-settings must be a valid semver version, or "detect"; got “latest”
Warning: React version specified in eslint-plugin-react-settings must be a valid semver version, or "detect"; got “latest”
Warning: React version specified in eslint-plugin-react-settings must be a valid semver version, or "detect"; got “latest”

After:

Warning: React version was set to "detect" in eslint-plugin-react settings, but the "react" package is not installed. Assuming latest React version for linting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants