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 TypeError for baseIndentLevel: 1 option and vue file in indentation #5657
Conversation
@wolfgangwalther Thanks for the pull request. The changes to
I don't believe |
It's probably neater (and easier to switch syntaxes) if we use strings for the {
"customSyntax": "postcss-scss"
} We can do that in another pull request though, so that this can focus on fixing issues with postcss-html and Stylelint 14. |
I split that commit into two and can now easily drop the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
(just a rebase on latest main) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@wolfgangwalther Thanks. LGTM 👍🏼
Changelog entry:
|
This is a follow up to issue #5289, because PR #5297 did not replace
syntax: 'html'
andsyntax: 'css-in-js'
in rules tests. Those test-cases were disabled instead, and some of those were broken at the same time by accidentally removing some whitespace, where it was required for the tests.The first and second commits replace
syntax: ...
everywhere and remove theskip: true
in those cases. The third commit brings back the accidentally removed whitespace. After that, a few tests still fail:raws.beforeStart
andraws.afterEnd
. Not sure where those came from (postcss-syntax
maybe?), but it seems they should be replace withraws.codeBefore
andraws.codeAfter
. (fourth commit)isRoot(parent)
- at least that fixed the failing test... (fifth commit). There's still some issue with typing, but I don't really know typescript well, yet, so I'd need some guidance there.I guess those changes should have been part of #5304, but were not noticed because of the skipped tests.
I came here, because when migrating to stylelint 14 in a vue project using
postcss-html
, I had the following error thrown:This only happens when setting
baseIndentLevel
to something other thanauto
.Closes #5677