-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.jsbeautifyrc
28 lines (27 loc) · 1.33 KB
/
.jsbeautifyrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{
// The plugin looks for a .jsbeautifyrc file in the same directory as the
// source file you're prettifying (or any directory above if it doesn't exist,
// or in your home folder if everything else fails) and uses those options
// along the default ones.
// Details: https://github.com/victorporof/Sublime-HTMLPrettify#using-your-own-jsbeautifyrc-options
// Documentation: https://github.com/einars/js-beautify/
"html": {
"allowed_file_extensions": ["htm", "html", "xhtml", "shtml", "xml", "svg", "hbs"],
"indent_handlebars": true, // e.g. {{#foo}}, {{/foo}}
"indent_inner_html": true, // Indent <head> and <body> sections
"indent_size": 2, // Indentation size
"max_preserve_newlines": 1, // Maximum number of line breaks to be preserved in one chunk (0 disables)
"end_with_newline": true // End output with newline
},
"css": {
"allowed_file_extensions": ["css", "scss", "sass", "less", "variables", "overrides"],
"end_with_newline": true, // End output with newline
"indent_size": 2 // Indentation size
},
"js": {
"allowed_file_extensions": ["js", "json", "jshintrc", "jsbeautifyrc"],
"end_with_newline": true, // End output with newline
"indent_size": 2, // Indentation size
"max_preserve_newlines": 2 // Maximum number of line breaks to be preserved in one chunk (0 disables)
}
}