Installation
Install the package alongside stylelint
:
sh
npm add -D @morev/stylelint-testing-library stylelint
sh
yarn add -D @morev/stylelint-testing-library stylelint
sh
pnpm add -D @morev/stylelint-testing-library stylelint
The following steps depend on which testing platform you're using - choose yours:
Learn by example
If you prefer to look at code instead of documentation - check out the examples
directory in the repository, or explore @morev/stylelint-plugin, a real-world project that uses this library to enforce BEM and (S)CSS best practices.