0.1.1 • Published 4 years ago

@bjeco/stylelint-config v0.1.1

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

stylelint-config

npm (scoped)

Portable configuration for Stylelint

Install

yarn add -D @bjeco/stylelint-config

This configuration is turn-key and includes all plugin dependencies as well as the config.

Setup

Add a "stylelint" parameter to the package.json file which specifies the shared config:

{
  "name": "my-library",
  "version": "9000.0.1",
  "stylelint": {
    "extends": "@bjeco/stylelint-config"
  }
}

VSCode

For best results, use in conjunction with the VSCode plugin to auto fix any issues related to this configuration

Plugin

stylelint

Settings

{
  "css.validate": false,
  "less.validate": false,
  "scss.validate": false,
  "editor.codeActionsOnSave": {
    "source.fixAll": true
  }
}