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

Add endIndex to parsing error report call #385

Merged
merged 1 commit into from
Jan 27, 2025
Merged

Add endIndex to parsing error report call #385

merged 1 commit into from
Jan 27, 2025

Conversation

BPScott
Copy link
Member

@BPScott BPScott commented Jan 27, 2025

Fixes #383
Closes #384

Stylelint v16.13 and up raises a deprecation warning when you report with index but no endIndex.

Prettier may in some cases return a err.loc.end, use that if available, otherwise the error is a single character. It feels claim anything after that character is an error if prettier can't parse it.

Stylelint v16.13 and up raises a deprecation warning when you report
with index but no endIndex
@BPScott BPScott merged commit 536ad1a into main Jan 27, 2025
3 checks passed
@BPScott BPScott deleted the fix-deprecation branch January 27, 2025 04:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant