ben-eb / perfectionist

Beautify CSS files.
MIT License
229 stars 14 forks source link

Bug in multiple values, when indent is not default (4) #53

Open ghost opened 7 years ago

ghost commented 7 years ago

example: http://pastebin.com/Z4pDeaqA Non-first values think, the indent is 4 (default), where other lines with correct indent (2).

ghost commented 7 years ago

I found bug, https://github.com/ben-eb/perfectionist/blob/master/src/maxSelectorLength.js compare string 66 and string 53. In 66 you should pass the opts.indent to getIndent, and pass opts to maxValueLength.