ben-eb / perfectionist

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

Option for tab vs space #65

Closed fabio-b closed 7 years ago

fabio-b commented 7 years ago

Could the option to decide what kind of indent be added as a feature? Because who picks spaces over tabs?! :)

{
        format: 'expanded',
        indentSize: 4,
        maxAtRuleLength: 80,
        maxSelectorLength: 80,
        maxValueLength: 80,
        trimLeadingZero: true,
        trimTrailingZeros: true,
        cascade: true,
        colorCase: 'lower',
        colorShorthand: true,
        zeroLengthNoUnit: true,

        /* NEW */

        indentChar: " " //space
        /* OR */
        indentChar: "\t" //tab
}
ben-eb commented 7 years ago

Sure, would you be able to write a pull request for this? I can assist if necessary. 😄

fabio-b commented 7 years ago

Sure, I'll give it a shot! I'll let you know when it's done.

ben-eb commented 7 years ago

Fixed in https://github.com/ben-eb/perfectionist/pull/67.