Install with npm install -D stylelint @sikaeducation/stylelint-config
.
npm i -D stylelint @sikaeducation/stylelint-config
// .stylelintrc.js
module.exports = {
extends: ["@sikaeducation/stylelint-config"],
};
Integrate this with your editor's stylelint plugin for fix-on-save. If the app is {"type": "module"}
, use .stylelintrc.cjs
.
Set NPM_TOKEN
on GitHub Actions to publish. Generate it on Sika's npm page then add it to the secrets page.
Publish updates by incrementing the version with npm version patch|minor|major
and pushing.