Skip to content

refactor: replace string-similarity w/ fastest-levenshtein #105

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

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

Conversation

SukkaW
Copy link
Contributor

@SukkaW SukkaW commented Jun 28, 2025

The string-similarity package is deprecated. Having this as a dependency will produce a warning during package installation.

The PR replaces it with a more widely adopted and more performant package fastest-levenshtein.

const best = closest(value, VALID_TYPES);

if (best.rating > 0.3) {
return fixer.replaceText(sibling, `'${best.target}'`);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't know what is happening here. If I don't change this, the test fails (both on my computer and on CI).

I choose to simply change the quote style instead of modifying the test cases.

@SukkaW SukkaW changed the title refactor: drop deprecated deps refactor: replace string-similarity w/ fastest-levenshtein Jun 28, 2025
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.

1 participant