Type object
File match .jsbeautifyrc
Schema URL https://catalog.lintel.tools/schemas/schemastore/jsbeautifyrc/latest.json
Source https://www.schemastore.org/jsbeautifyrc.json

Validate with Lintel

npx @lintel/lintel check
Type: object

All of

1. CHJProperties object
2. HJProperties object
3. CProperties object
4. HProperties object
5. JProperties object

Definitions

CHJProperties object
indent_size integer

Indent size. [JS,CSS,HTML]

Default: 4
indent_char string

Indentation character. [JS,CSS,HTML]

Default: " "
maxLength=1
eol string

Character(s) to use as line terminators. [JS,CSS,HTML]

Default: " "
indent_with_tabs boolean

Indent with tabs, overrides 'indent_size' and 'indent_char' [JS,CSS,HTML]

Default: false
end_with_newline boolean

Ensure newline at end of file. [JS,CSS,HTML]

Default: false
preserve_newlines boolean

Preserve line-breaks. [JS,CSS,HTML]

Default: true
HJProperties object
max_preserve_newlines integer

Number of line-breaks to be preserved in one chunk. [JS,HTML]

Default: 10
brace_style string

[collapse|expand|end-expand|none][,preserve-inline] [JS,HTML]

Default: "collapse"
Values: "collapse" "expand" "end-expand" "none" "collapse,preserve-inline" "expand,preserve-inline" "end-expand,preserve-inline" "none,preserve-inline"
wrap_line_length integer

Wrap lines at next opportunity after N characters. [JS,HTML]

Default: 0
CProperties object
selector_separator_newline boolean

Add a newline between multiple selectors. [CSS]

Default: true
newline_between_rules boolean

Add a newline between CSS rules. [CSS]

Default: false
space_around_selector_separator boolean

(Deprecated: use space_around_combinator) [CSS]

Default: false
space_around_combinator boolean

Ensure space around selector separators (>+~). [CSS]

Default: false
HProperties object
void_elements string[]

HTLM void elements - aka self-closing tags. [HTML]

Default:
[
  "area",
  "base",
  "br",
  "col",
  "embed",
  "hr",
  "img",
  "input",
  "keygen",
  "link",
  "menuitem",
  "meta",
  "param",
  "source",
  "track",
  "wbr",
  "!doctype",
  "?xml",
  "?php",
  "basefont",
  "isindex"
]
wrap_attributes string

Wrap attributes to new lines. [HTML]

Default: "auto"
Values: "auto" "force" "force-aligned" "force-expand-multiline"
wrap_attributes_indent_size number

Indent wrapped attributes to after N characters. Defaults to 'indent_size'. [HTML]

indent_inner_html boolean

Indent and sections. [HTML]

Default: false
indent_scripts string

[keep|separate|normal] [HTML]

Default: "normal"
Values: "keep" "separate" "normal"
unformatted string[]

List of tags that should not be reformatted. [HTML]

Default:
[
  "a",
  "abbr",
  "area",
  "audio",
  "b",
  "bdi",
  "bdo",
  "br",
  "button",
  "canvas",
  "cite",
  "code",
  "data",
  "datalist",
  "del",
  "dfn",
  "em",
  "embed",
  "i",
  "iframe",
  "img",
  "input",
  "ins",
  "kbd",
  "keygen",
  "label",
  "map",
  "mark",
  "math",
  "meter",
  "noscript",
  "object",
  "output",
  "progress",
  "q",
  "ruby",
  "s",
  "samp",
  "select",
  "small",
  "span",
  "strong",
  "sub",
  "sup",
  "svg",
  "template",
  "textarea",
  "time",
  "u",
  "var",
  "video",
  "wbr",
  "text",
  "acronym",
  "address",
  "big",
  "dt",
  "ins",
  "strike",
  "tt"
]
content_unformatted string[]

List of tags whose content should not be reformatted. [HTML]

Default:
[
  "pre"
]
extra_liners string[]

List of tags that should have an extra newline before them. [HTML]

Default:
[
  "head",
  "body",
  "/html"
]
indent_body_inner_html boolean

Indent elements within html element. [HTML]

Default: true
indent_head_inner_html boolean

Indent elements within html element. [HTML]

Default: true
indent_handlebars boolean

format and indent {{#foo}} and {{/foo}}. [HTML]

Default: false
JProperties object
indent_level integer

Initial indentation level. [JS]

Default: 0
space_in_paren boolean

Add padding spaces within parentheses, ie. f( a, b ). [JS]

Default: false
space_in_empty_paren boolean

Leave space in empty parentheses, ie. f( ). [JS]

Default: false
jslint_happy boolean

Enable jslint-stricter mode. (Forces 'space_after_anon_function') [JS]

Default: false
space_after_anon_function boolean

Add a space before an anonymous function's parens, ie. function (). [JS]

Default: false
break_chained_methods boolean

Break chained method calls across subsequent lines. [JS]

Default: false
keep_array_indentation boolean

Preserve array indentation. [JS]

Default: false
keep_function_indentation boolean

Preserve function indentation. [JS]

Default: false
space_before_conditional boolean

Ensure a space before conditional statement. [JS]

Default: true
unescape_strings boolean

Decode printable characters encoded in xNN notation. [JS]

Default: false
comma_first boolean

Put commas at the beginning of new line instead of end. [JS]

Default: false
operator_position string

Move operators to before or after a new line, or keep as is. [JS]

Default: "before-newline"
Values: "before-newline" "after-newline" "preserve-newline"
e4x boolean

Pass E4X xml literals through untouched. [JS]

Default: false
unindent_chained_methods boolean

Unindent chained methods. [JS]

Default: false