1.2.2 • Published 6 years ago
@greylocklabs/stylelint-config v1.2.2
@greylocklabs/stylelint-config
Greylock Labs Stylelint rules
Installation
Install the package and all of its peer dependencies:
$ npx install-peerdeps --dev @greylocklabs/stylelint-configAfterwards, 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:
- JSX/TSX files using Styled Components
- 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.