1.2.2 • Published 4 years ago

@greylocklabs/stylelint-config v1.2.2

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

@greylocklabs/stylelint-config

Greylock Labs Stylelint rules


npm version

Installation

Install the package and all of its peer dependencies:

$ npx install-peerdeps --dev @greylocklabs/stylelint-config

Afterwards, create a .stylelintrc file in your root project folder and add the following:

{
  "extends": "@greylocklabs/stylelint-config"
}

Configuration

To override anything, simply add a rules property to your .stylelintrc file and add new or existing rules to it with your preferred settings:

{
  "extends": "@greylocklabs/stylelint-config",
  "rules": {
    "number-leading-zero": null
  }
}

Need to lint Styled Components?

Unfortunately, as of now Stylelint does not support using one config file to target different file types. If your project uses any of the following:

  1. JSX/TSX files using Styled Components
  2. Other CSS-in-JS solutions

You should instead install @greylocklabs/stylelint-config-styled-components.

Eventually, the goal is to merge the two projects together.

Testing

Run yarn test to run unit tests.

License

MIT License. See LICENSE file for details.

1.2.2

4 years ago

1.2.1

5 years ago

1.2.0

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.0

5 years ago