@liquify/stylelint-config

1.0.0 • Public • Published

@liquify/stylelint-config

Shareable config for Stylelint to maintain a code style aesthetic in SASS/SCSS files across the Liquify project.

Install

pnpm

pnpm add stylelint @liquify/stylelint-config -D

Stylelint is included as a dependency in the module. The same logic for all plugins.

Usage

We extend configuration from within package.json files.

{
  "stylelint": {
    "extends": "@liquify/stylelint-config",
    "ignoreFiles": ["**/node_modules"]
  }
}

Text Editor (VSCode)

Install the stylelint.vscode-stylelint extension from the marketplace. Depending on how your editor is configured, one may require setting global configuration in a user settings.json file:

{
  "stylelint.validate": ["scss", "sass"],
  "stylelint.packageManager": "pnpm",
  "stylelint.enable": true,
  "scss.validate": false, // important to disable vscode validation
  "scss.scannerExclude": ["**/.git", "**/node_modules"],
  "editor.codeActionsOnSave": {
    "source.fixAll.stylelint": true
  }
}

License

MIT

Package Sidebar

Install

npm i @liquify/stylelint-config

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

3.03 kB

Total Files

4

Last publish

Collaborators

  • sissel