-
-
Notifications
You must be signed in to change notification settings - Fork 20
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
DeprecationWarning: Partial position information in the utils.report()
function is deprecated ("prettier/prettier").
#383
Comments
Can you please provide an example of the misshapen code that you used to trigger this codepath? I'm trying to recreate this locally. |
@BPScott see the discussion upstream: stylelint/stylelint#8126 We found that providing only To improve the experience for end users we are moving away from position arguments that are ambiguous and could lead to bugs. The deprecation warning is triggered by running with the latest version of stylelint and for example only providing Hopefully it isn't too disruptive to adapt to this new requirement. |
Oh yeah it's no problem, I'm happy to add endIndex. It's just my test fixture that I'm sure used to exercise this code path no longer seems to error in modern stylelint versions, so I'd like to find a case where this code path does get hit so I can test it. (I suspect that these days the invalid code is being caught somewhere in |
I trap on this when during running tests in |
@coderaiser or you can provide a reproducible bug report? :) |
Sure! As I remember, when I debug, I trapped on this input: {{ template }} Yes, that is not valid css, but when you put styles to |
Looks like deprecated method is used:
The text was updated successfully, but these errors were encountered: