Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yuanqing/stylelint-config-yuanqing
:business_suit_levitating: An opinionated stylelint configuration
https://github.com/yuanqing/stylelint-config-yuanqing
Last synced: 10 days ago
JSON representation
:business_suit_levitating: An opinionated stylelint configuration
- Host: GitHub
- URL: https://github.com/yuanqing/stylelint-config-yuanqing
- Owner: yuanqing
- License: mit
- Created: 2020-09-26T06:16:58.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2023-12-25T14:43:25.000Z (11 months ago)
- Last Synced: 2024-04-28T14:45:31.062Z (6 months ago)
- Language: JavaScript
- Homepage:
- Size: 189 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# stylelint-config-yuanqing [![npm Version](https://img.shields.io/npm/v/stylelint-config-yuanqing?cacheSeconds=1800)](https://www.npmjs.com/package/stylelint-config-yuanqing)
> An opinionated [Stylelint](https://stylelint.io/) configuration
## Features
- Auto-formatting with [Prettier](https://prettier.io/)
- Auto-sorting of properties following a [rational order](https://github.com/constverum/stylelint-config-rational-order/blob/master/README.md#stylelint-config-rational-order)## Usage
Install:
```
$ npm install --save-dev prettier@3 stylelint@16
$ npm install --save-dev --save-exact stylelint-config-yuanqing
```Then, update `package.json` as follows:
```json
{
"scripts": {
"fix-css": "stylelint --fix 'src/**/*.css'",
"lint-css": "stylelint 'src/**/*.css'"
},
"stylelint": {
"extends": "stylelint-config-yuanqing"
}
}
```## License
[MIT](LICENSE.md)