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

Fix compatibility with eslint v9 #799

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

rkuykendall
Copy link

@rkuykendall rkuykendall commented Jun 17, 2024

  • Removes the requirement that extensions be passed
    • This may need to be tweaked so as to only be for eslint
  • Does not pass --ext for eslint v9
    • This may need to be genericized for future releases

},
);
const { stdout: version } = run(`${commandPrefix} eslint -v`, { dir });
const isV9 = version.startsWith("v9.");

Choose a reason for hiding this comment

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

This appears to also be required for eslint version 8.x.y as well.

It would be better to parse out the major version ^v(\d+)\.\d+.\d+, and check it it's >= 8.

Copy link
Contributor

github-actions bot commented Oct 9, 2024

Thank you for your contribution to this project!

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

@github-actions github-actions bot added the stale label Oct 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants