Skip to content
This repository was archived by the owner on Feb 26, 2026. It is now read-only.

add contain-nested option for external mixins#2

Merged
ETLaurent merged 6 commits intomainfrom
add-option
Sep 16, 2025
Merged

add contain-nested option for external mixins#2
ETLaurent merged 6 commits intomainfrom
add-option

Conversation

@ETLaurent
Copy link
Copy Markdown
Contributor

@ETLaurent ETLaurent commented Aug 26, 2025

Summary

Adds a new contain-nested option for external mixins known to contain nested rules.
This answers the limitation of the plugin not being able to see mixin definitions from other files.

See apostrophecms/apostrophe#5042

Comment thread test/index.js
[ 7, 3 ],
[ 8, 3 ],
[ 29, 3 ],
[ 30, 3 ],
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

was missing

Etienne Laurent added 3 commits September 10, 2025 14:50
@ETLaurent ETLaurent marked this pull request as ready for review September 10, 2025 12:56
@ETLaurent ETLaurent changed the title add contain-nested option add contain-nested option for external mixins Sep 10, 2025
@ETLaurent ETLaurent requested a review from BoDonkey September 10, 2025 14:15
@ETLaurent
Copy link
Copy Markdown
Contributor Author

1 or 2 approvals will suffice

Comment thread test/index.js
[ 64, 3 ],
[ 70, 3 ]
[ 70, 3 ],
[ 78, 3 ]
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

new error in bad.scss

Comment thread test/index.js
`Expected error message to include line ${position.join(':')} but it did not`
);
});
${errorPositionsMessages.join('\n')}`
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

improve test error message

Copy link
Copy Markdown
Contributor

@BoDonkey BoDonkey left a comment

Choose a reason for hiding this comment

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

LGTM

@ETLaurent ETLaurent merged commit e4fd47a into main Sep 16, 2025
3 checks passed
@ETLaurent ETLaurent deleted the add-option branch September 16, 2025 07:23
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants