Skip to content
This repository has been archived by the owner on Mar 17, 2023. It is now read-only.

Files

Latest commit

12ce539 · Jun 10, 2022

History

History

stylelint-config

@soyhuce/stylelint-config

StyleLint shareable config for CSS style.

Installation

pnpm add -D @soyhuce/stylelint-config

# with StyleLint
pnpm add -D stylelint @soyhuce/stylelint-config

Usage

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