@syncify/stylelint-config

0.1.0 • Public • Published

@syncify/stylelint-config

This package includes the shareable Stylelint configuration that can optionally be used within Syncify projects. The config is ideal for developers leveraging SASS and comes with bare essentials pre-defined and ready for usage.

Install

pnpm

pnpm add stylelint @syncify/stylelint-config -D

Stylelint is an peerDependency so you will need to install it within your project.

Usage

We extend configuration from within package.json files.

{
  "stylelint": {
    "extends": "@syncify/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", "postcss"],
  "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 @syncify/stylelint-config

Weekly Downloads

1

Version

0.1.0

License

MIT

Unpacked Size

4.35 kB

Total Files

4

Last publish

Collaborators

  • sissel