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 TypeError for syntaxes that use Document in indentation #5771

Merged
merged 1 commit into from Dec 20, 2021

Conversation

43081j
Copy link
Contributor

@43081j 43081j commented Dec 10, 2021

Fixes #5767

I changed beforeStart to codeBefore and added a truthy check

Copy link
Member

@ybiquitous ybiquitous left a comment

Choose a reason for hiding this comment

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

@43081j Thank you for creating this PR!
I've left some trivial suggestions, but this is mostly good to me. 👍🏼

lib/rules/indentation/__tests__/document-with-roots.js Outdated Show resolved Hide resolved
lib/rules/indentation/index.js Outdated Show resolved Hide resolved
@jeddy3 jeddy3 changed the title fix (indentation): replace beforeStart with codeBefore Fix TypeError for syntaxes that use Document in indentation Dec 18, 2021
@43081j
Copy link
Contributor Author

43081j commented Dec 20, 2021

sorry this got a bit lost @ybiquitous , i've updated it now with what you said

Copy link
Member

@ybiquitous ybiquitous left a comment

Choose a reason for hiding this comment

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

@43081j Thank you! LGTM 👍🏼

Copy link
Member

@jeddy3 jeddy3 left a comment

Choose a reason for hiding this comment

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

LGTM, thanks.

@jeddy3 jeddy3 merged commit 8b066db into stylelint:main Dec 20, 2021
@jeddy3
Copy link
Member

jeddy3 commented Dec 20, 2021

  • Fixed: indentation TypeError for syntaxes that use Document node type (#5771).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Fix TypeError for syntaxes that use Document in indentation
3 participants