2.1.1 • Published 3 years ago
@soyhuce/stylelint-config v2.1.1
@soyhuce/stylelint-config
StyleLint shareable config for CSS style.
Installation
pnpm add -D @soyhuce/stylelint-config
# with StyleLint
pnpm add -D stylelint @soyhuce/stylelint-configUsage
In order to use this config, choose the one you want and add this configuration to your package.json:
{
"stylelint": {
"extends": [
+ "@soyhuce/stylelint-config"
]
}
}Or add a .stylelintrc.js file to your project root containing:
module.exports = {
extends: [
+ '@soyhuce/stylelint-config'
]
}VSCode integration
We recommend turning on VSCode settings to automatically run stylelint --fix on save.
"editor.codeActionsOnSave": {
+ "source.fixAll.stylelint": true
}This will automatically format your code once you save.
License
MIT