1.0.1 • Published 1 year ago

@lympid/stylelint-config-lympid v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

stylelint-config-lympid

Lympid stylelint config.

This configuration was created for react environment using styled-components, however it can be applied in other contexts.

Installation

npm install "stylelint^13.10.0" @lympid/stylelint-config-lympid --save-dev

Usage

Create an .stylelintrc file with the following:

{
  "extends": ["@lympid/stylelint-config-lympid"]
}

Add the following script to your package.json:

{
  "scripts": {
    "lint-styles": "stylelint './src/**/*.js'",
  }
}

and run the linter with:

npm run lint-styles

Extending the config

Simply add a "rules" key to your config, then add your overrides and additions there.

{
  "extends": "@lympid/stylelint-config-lympid",
  "rules": {
    "your-rules-here"
  }
}