hudochenkov / stylelint-order

A plugin pack of order related linting rules for Stylelint.
MIT License
916 stars 61 forks source link

Report warnings if the weren't fixed by autofix in `order` #85

Closed hudochenkov closed 4 years ago

hudochenkov commented 5 years ago

Similar to the properties-order order should report warning which weren't fixed by autofix. It could happen in CSS-in-JS, if rule has interpolations. Then postcss-sorting will skip it to not break the users code.

{ order: ['declarations', 'rules'] }
const Component = styled.div`
    a {
        color: blue;
    }
    ${interpolation}
    color: tomato;
`;