This is a prettier plugin that helps you to order your css properties in the order I like.
pnpm add -D @nirtamir2/prettier-plugin-css-order
add the plugin to .prettierrc.js
module.exports = {
plugins: [
require.resolve("@nirtamir2/prettier-plugin-css-order"),
],
npm install -D @nirtamir2/prettier-plugin-css-order
I used prettier-plugin-style-order's and just change the properties order to the order I like.
- known-css-properties
- stylelint-config-rational-order
- stylelint-config-recess-order