matype / stylefmt

stylefmt is a tool that automatically formats stylesheets.
Other
2.1k stars 89 forks source link

Indentation in sass maps #155

Closed almeric closed 3 years ago

almeric commented 8 years ago

stylefmt reformats sass maps making them hard to read.

For example this map:

$map: (
    grey: (
        dark: darken(rgb(128, 128, 128), 10%),
        base: rgb(128, 128, 128),
        light: lighten(rgb(128, 128, 128), 10%)
    )
);

Is formatted to:

$map: (
    grey: (
        dark: darken(rgb(128, 128, 128), 10%), base: rgb(128, 128, 128), light: lighten(rgb(128, 128, 128), 10%)
    )
);

It seems stylelint ignores sass maps since https://github.com/stylelint/stylelint/pull/1191, maybe stylefmt should too?

matype commented 8 years ago

@almeric I see, I will fix it.

almeric commented 8 years ago

Thanks!

Seminioni commented 7 years ago

So, did you fix this trouble?

P.S: I solved my problem! I just put my file vars.scss with vars and maps within into stylelint ignoreFiles property and now everything is fine :)