https://github.com/natemoo-re/prettier-plugin-style-order
Prettier plugin to automatically sort style declarations
https://github.com/natemoo-re/prettier-plugin-style-order
css formatting order prettier style
Last synced: about 1 year ago
JSON representation
Prettier plugin to automatically sort style declarations
- Host: GitHub
- URL: https://github.com/natemoo-re/prettier-plugin-style-order
- Owner: natemoo-re
- Created: 2020-03-09T14:07:50.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2021-06-16T22:02:14.000Z (about 5 years ago)
- Last Synced: 2025-02-23T16:49:25.703Z (over 1 year ago)
- Topics: css, formatting, order, prettier, style
- Language: JavaScript
- Homepage:
- Size: 16.6 KB
- Stars: 20
- Watchers: 3
- Forks: 5
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Style Order for Prettier
__Style Order__ is a [Prettier](https://prettier.io/) plugin which sorts property declarations and groups related properties.
## Installation
```bash
npm i -D prettier-plugin-style-order
```
That's it! Prettier should automatically find/use the plugin.
If it doesn't seem to be working, refer to Prettier's [plugin docs](https://prettier.io/docs/en/plugins.html) for more in-depth directions.
## Credits
- [`postcss-sorting`](https://github.com/hudochenkov/postcss-sorting)
- [`stylelint-config-rational-order`](https://github.com/constverum/stylelint-config-rational-order)
- [`prettier-plugin-package`](https://github.com/shellscape/prettier-plugin-package)