UNPKG

prettier-plugin-style-order

Version:

Prettier plugin which sorts related style property declarations

10 lines (8 loc) 265 B
const postcss = require('postcss') const sorting = require('postcss-sorting') const createConfig = require('./factory') module.exports = (value, opts = {}) => { return postcss([ sorting(createConfig()) ]).process(value, { ...opts, from: undefined }).css }