Skip to content

Cédric's Stylelint config preset (Sass, Vue, HTML, Tailwind, UnoCSS, logical order)

License

Notifications You must be signed in to change notification settings

Cedric-ruiu/stylelint-config

Repository files navigation

@cedric-ruiu/stylelint-config npm

Requirements

Usage

Install

yarn add -D @cedric-ruiu/stylelint-config

Config .stylelintrc

{
  "extends": "@cedric-ruiu/stylelint-config"
}

Config VSCode auto fix

Install Stylelint extension and create .vscode/settings.json

{
  "prettier.enable": false,
  "editor.formatOnSave": false,
  "editor.codeActionsOnSave": {
    "source.fixAll.stylelint": "explicit",
    "source.organizeImports": "never"
  },
  "css.validate": false,
  "scss.validate": false,
  "stylelint.enable": true,
  "stylelint.packageManager": "yarn",
  "stylelint.snippet": ["css", "postcss", "scss", "html", "vue"],
  "stylelint.validate": ["css", "postcss", "scss", "html", "vue"],
}