-
Hi, I am developing a custom syntax for PostCSS to enable Stylelint to run within Angular components. The existing postcss-angular project has a few edge cases that I encountered, which necessitated this development. While I have made enough progress to run Stylelint and fix issues and have gotten rid of my edge cases, I believe I'm close to a "correct" implementation. Therefore, I have a few questions that I couldn't find answers to in the documentation:
Any insights or guidance on these questions would be greatly appreciated! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Hi! Welcome to the community.
It is better to set
You can create a single At least, it should work in theory, but I am not really familiar with how exactly Stylelint works with edge cases (we can ask them to change something). Feel free to ask any other questions. |
Beta Was this translation helpful? Give feedback.
Hi! Welcome to the community.
Root
is CSS file. But if you have non-CSS file, where it could be multiple CSS blocks (like many<style>
in HTML, or manystyled
blocks in React’s CSS-in-JS) we can useDocument
to wrap multipleRoot
together.It is better to set
input
manually to all new nodesYou can create a single
Document
withRoot
for every inline style and separate file stylesheets. Of course, thoseRoot
‘s will have a differentinput
, since filename of separate file stylesheets wi…