Skip to content

Support nested js property in .jsbeautifyrc file #93

@mokkabonna

Description

@mokkabonna

See beautifier/js-beautify#391 and victorporof/Sublime-HTMLPrettify#74

This needs to be resolved among all the projects imo. This just creates problems for the users.

Best approach IMO for JsFormat would be to support the nested js/html/css approach, but fallback to merging the options at the top level of the config file if no js property exists. This would give you backwards compability as well.

JsFormat does the climbing of parent folders correctly, but the config "wrong" (incompatible with real features of js-beautify, but, hey so does js-beautify itself).

And Sublime-HTMLPrettify does the climb wrong, but the config "right" (IMO, makes the different html/css/js options separate)

Users are left confused :)

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions