Jøkul config for stylelint.
Based on the following rulesets:
npm i stylelint @fremtind/stylelint-config-jkl
Create a file stylelint.config.js
in the same directory as your package.json
, and extend this config:
module.exports = {
extends: "@fremtind/stylelint-config-jkl",
};
Add a script to your package.json
:
"lint:styles": "stylelint '**/*.{css,scss,sass}' --cache"
Add .stylelintcache
to your .gitignore
.
Rules are organized in separate files in the rules/
folder according to their seciton in List of rules.
The rules are tested against an example stylesheet in examples/styles.scss
.