-
|
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.
Rootis CSS file. But if you have non-CSS file, where it could be multiple CSS blocks (like many<style>in HTML, or manystyledblocks in React’s CSS-in-JS) we can useDocumentto wrap multipleRoottogether.It is better to set
inputmanually to all new nodesYou can create a single
DocumentwithRootfor every inline style and separate file stylesheets. Of course, thoseRoot‘s will have a differentinput, since filename of separate file stylesheets wi…