@fremtind/stylelint-config-jkl
v8.0.4
Published
Styleint configuration for Jøkul
Downloads
158
Readme
@fremtind/stylelint-config-jkl
Jøkul config for stylelint.
Based on the following rulesets:
Installing
npm i stylelint @fremtind/stylelint-config-jkl
Usage
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
Rules are organized in separate files in the rules/
folder according to their seciton in List of rules.
Example and tests
The rules are tested against an example stylesheet in examples/styles.scss
.