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: Add --respect-ignores to the stylua command #616

Merged
merged 2 commits into from
Jan 3, 2025

Conversation

polirritmico
Copy link
Contributor

Fixes #615

@github-actions github-actions bot requested a review from stevearc December 31, 2024 21:43
@stevearc
Copy link
Owner

stevearc commented Jan 3, 2025

Thanks for the PR!

@hgkjshegfskef
Copy link

After this change, I get an error in the LazyVim distribution: Formatter 'stylua' error: error: Found argument '--respect-ignores' which wasn't expected, or isn't valid in this context. Not sure if this is upstream- or downstream-specific. I opened a ticket for this in downstream: LazyVim/LazyVim#5375

@hgkjshegfskef
Copy link

Nevermind, I discovered that my version of StyLua was 1.5 years outdated and updating it. The issue does no longer occur. That is, I simply didn't have StyLua >= 2.0.0, where this option was introduced.

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.

bug: stylua doesn't respect .styluaignore file by default after v2.0.0
3 participants