ben-eb / perfectionist

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

Configurable indent level #10

Closed ben-eb closed 8 years ago

ben-eb commented 8 years ago

Ref: https://github.com/ben-eb/perfectionist/issues/7

This is an easy fix as the module calculates space from a multiplier.

https://github.com/ben-eb/perfectionist/blob/7bf13f05d637867aaa29470936cd21d3110f2243/src/getIndent.js#L5

ben-eb commented 8 years ago

Released as 1.3.0.

Kikobeats commented 8 years ago

what about do it in the CLI?

ben-eb commented 8 years ago

@Kikobeats There's no alias, but the option is passed directly through:

perfectionist --indentSize 8 input.css > output.css
Kikobeats commented 8 years ago

oh, perfect. Maybe could be useful update CLI help message :)

ben-eb commented 8 years ago

Yeah; PR welcome. :smile: