https://github.com/greylocklabs/stylelint-config
Greylock Labs Stylelint rules
https://github.com/greylocklabs/stylelint-config
css html linter sass scss single-file-components stylelint stylelint-config vue
Last synced: about 2 months ago
JSON representation
Greylock Labs Stylelint rules
- Host: GitHub
- URL: https://github.com/greylocklabs/stylelint-config
- Owner: greylocklabs
- Created: 2019-02-22T06:24:06.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-03T20:16:31.000Z (over 2 years ago)
- Last Synced: 2025-04-01T14:12:21.543Z (about 2 months ago)
- Topics: css, html, linter, sass, scss, single-file-components, stylelint, stylelint-config, vue
- Language: JavaScript
- Size: 938 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 16
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: .github/CONTRIBUTING.md
Awesome Lists containing this project
README
# @greylocklabs/stylelint-config
> Greylock Labs Stylelint rules
---
[](https://badge.fury.io/js/%40greylocklabs%2Fstylelint-config)
## Installation
Install the package and all of its peer dependencies:
```bash
$ npx install-peerdeps --dev @greylocklabs/stylelint-config
```Afterwards, create a `.stylelintrc` file in your root project folder and add the following:
```json
{
"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:```json
{
"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 solutionsYou should instead install
[@greylocklabs/stylelint-config-styled-components](https://www.npmjs.com/package/@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](LICENSE) file for details.