Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dre1080/stylelint-config
A sharable stylelint config object.
https://github.com/dre1080/stylelint-config
Last synced: 9 days ago
JSON representation
A sharable stylelint config object.
- Host: GitHub
- URL: https://github.com/dre1080/stylelint-config
- Owner: dre1080
- Created: 2020-04-08T16:30:27.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-01-07T05:47:45.000Z (almost 2 years ago)
- Last Synced: 2024-12-08T09:47:42.230Z (28 days ago)
- Language: JavaScript
- Homepage:
- Size: 641 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# stylelint-config
[![npm (scoped)](https://img.shields.io/npm/v/@dre1080/stylelint-config)](https://www.npmjs.org/package/@dre1080/stylelint-config)
> A sharable stylelint config object. Inspired by [stylelint-config-primer](https://github.com/primer/stylelint-config-primer).
## Install
Install [stylelint](https://stylelint.io/), [prettier](https://prettier.io/) and `@dre1080/stylelint-config`:
**With Yarn**
```sh
$ yarn add --dev stylelint prettier @dre1080/stylelint-config
```**With npm**
```sh
$ npm install stylelint prettier @dre1080/stylelint-config --save-dev
```## Usage
Within your [stylelint config object](http://stylelint.io/user-guide/configuration/#extends) You can extend this configuration. This will serve as a base for your config, then you can make overrides in your own config object:
```json
{
"extends": "@dre1080/stylelint-config"
}
```Add a prettier config in `package.json`:
```json
"prettier": "@dre1080/prettier-config"
```