prettier-plugin-style-order
Version:
Prettier plugin which sorts related style property declarations
49 lines (45 loc) • 904 B
JavaScript
const borderProps = require('./border');
const a = [
'list-style',
'list-style-position',
'list-style-type',
'list-style-image',
'table-layout',
'empty-cells',
'caption-side',
'background',
'background-color',
'background-image',
'background-repeat',
'background-position',
'background-position-x',
'background-position-y',
'background-size',
'background-clip',
'background-origin',
'background-attachment',
'background-blend-mode',
];
const b = [
'outline',
'outline-width',
'outline-style',
'outline-color',
'outline-offset',
'box-shadow',
'box-decoration-break',
'transform',
'transform-origin',
'transform-style',
'backface-visibility',
'perspective',
'perspective-origin',
'visibility',
'cursor',
'opacity',
'filter',
'isolation',
'backdrop-filter',
'mix-blend-mode',
];
module.exports = [].concat(a, borderProps, b);