Processors are community packages that enable stylelint to lint the CSS within non-stylesheet files. For example, you could lint the CSS within <style>
tags in HTML, code blocks in Markdown, or strings in JavaScript.
These processors can only be used with the CLI and the Node API, not with the PostCSS plugin. (The PostCSS plugin will ignore them.)
- stylelint-processor-arbitrary-tags: Lint within user-specified tags.
- stylelint-processor-html: Lint within HTML
<style>
tags. - stylelint-processor-markdown: Lint within Markdown's fenced code blocks.
- stylelint-processor-styled-components: Lint styled-components and related CSS-in-JS libraries using tagged template literals.
postcss-html
can enable PostCSS to parse the CSS within non-stylesheet files that compatible with HTML,
Markdown,
Vue component