Stylelint test
Betterer ships several built-in tests to get you started. Check out the implementations for inspiration for your own tests!
@betterer/stylelint
Use this test to incrementally introduce new Stylelint rules to your codebase.
import { stylelint } from '@betterer/stylelint';
export default {
'no unknown units': () =>
stylelint({
rules: {
'unit-no-unknown': true
}
}).include('**/*.css')
};
@betterer/stylelint
is a BettererFileTest, so you can use include
, exclude
, only
, and skip
.