@ri-digital/stylelint-config
v7.1.0
Published
Style rules for css/sass.
Downloads
1,771
Maintainers
Keywords
Readme
@ri-digital/stylelint-config
This package provides a wrapper for stylelint styling rules.
Install
yarn add -D @ri-digital/stylelint-configInstall with npm:
npm install -D @ri-digital/stylelint-configUsage
Create stylelint.config.mjs or stylelint.config.js, if "type":"module" is enabled in package.json`, and add:
export default {
extends: ['@ri-digital/stylelint-config'],
};Command line scripts
In your package.json file:
{
"scripts": {
"lint:style": "stylelint \"**/*.{css,scss}\" --cache",
"lint:style-fix": "stylelint \"**/*.{css,scss}\" --fix"
}
}VSCode settings
Install stylint extension and add this lines to settings.json file:
{
"stylelint.enable": true,
"stylelint.validate": ["css", "scss"],
"editor.codeActionsOnSave": {
"source.fixAll": true
}
}Changes and commits messages
Follow the rules of conventional commits. E.g: "feat(TICKER_NUMBER): added new feature"
