Language Options
Click on an option title below for more information including how to configure and examples.
| # | Title | Config Key | Description |
|---|---|---|---|
| 1 | Align Assignments | align_assignments | If lists of assignments or properties should be vertically aligned for faster and easier reading. |
| 2 | Arrow Parens | arrow_parens | Require parenthesis in arrow function arguments |
| 3 | Brace Style | brace_style | Brace style |
| 4 | Break Chained Methods | break_chained_methods | Break chained method calls across subsequent lines |
| 5 | Comma First | comma_first | Put commas at the beginning of new line instead of end |
| 6 | End With Comma | end_with_comma | If a terminating comma should be inserted into arrays, object literals, and destructured objects. |
| 7 | End With Newline | end_with_newline | End output with newline |
| 8 | End With Semicolon | end_with_semicolon | Insert a semicolon at the end of statements |
| 9 | Force Indentation | force_indentation | if indentation should be forcefully applied to markup even if it disruptively adds unintended whitespace to the documents rendered output |
| 10 | Identifier Case | identifier_case | Case type for identifiers |
| 11 | Indent Chained Methods | indent_chained_methods | Indent chained method calls |
| 12 | Indent Comments | indent_comments | Determines whether comments should be indented. |
| 13 | Indent Inner Html | indent_inner_html | Indent and sections. |
| 14 | Indent Scripts | indent_scripts | Indent scripts |
| 15 | Indent Size | indent_size | Indentation size/length |
| 16 | Indent Style | indent_style | Indentation style |
| 17 | JSLint Happy | jslint_happy | Enable jslint-stricter mode |
| 18 | JSX Brackets | jsx_brackets | Put the > of a multi-line JSX element at the end of the last line |
| 19 | Keep Array Indentation | keep_array_indentation | Preserve array indentation |
| 20 | Keyword Case | keyword_case | Case type for keywords |
| 21 | Max Preserve Newlines | max_preserve_newlines | Number of line-breaks to be preserved in one chunk |
| 22 | Multiline Ternary | multiline_ternary | Enforces new lines between the operands of a ternary expression |
| 23 | Newline Before Tags | newline_before_tags | List of tags which should have an extra newline before them. |
| 24 | Newline Between Rules | newline_between_rules | Add a newline between CSS rules |
| 25 | No Leading Zero | no_leading_zero | If in CSS values leading 0s immediately preceeding a decimal should be removed or prevented. |
| 26 | Object Curly Spacing | object_curly_spacing | Inserts a space before/after brackets for object literals, destructuring assignments, and import/export specifiers |
| 27 | Pragma Insert | pragma_insert | Insert a marker at the top of a file specifying the file has been beautified |
| 28 | Pragma Require | pragma_require | Restrict beautifying files to only those with a pragma at the top |
| 29 | Preserve Newlines | preserve_newlines | Preserve line-breaks |
| 30 | Quotes | quotes | Convert the quote characters delimiting strings from either double or single quotes to the other. |
| 31 | Remove Trailing Whitespace | remove_trailing_whitespace | Remove trailing whitespace |
| 32 | Selector Separator Newline | selector_separator_newline | Add a newline between multiple selectors |
| 33 | Space After Anon Function | space_after_anon_function | Add a space before an anonymous function's parentheses. ie. function () |
| 34 | Space Before Conditional | space_before_conditional | Add a space before conditional, if(true) vs if (true) |
| 35 | Space In Empty Paren | space_in_empty_paren | Add padding spaces within empty parentheses, ie. f( ) |
| 36 | Space In Paren | space_in_paren | Add padding spaces within parentheses, ie. f( a, b ) |
| 37 | Unescape Strings | unescape_strings | Decode printable characters encoded in xNN notation |
| 38 | Unformatted | unformatted | List of tags (defaults to inline) that should not be reformatted |
| 39 | Wrap Attributes | wrap_attributes | Wrap attributes to new lines |
| 40 | Wrap Attributes Indent Size | wrap_attributes_indent_size | Indent wrapped attributes to after N characters |
| 41 | Wrap Line Length | wrap_line_length | Wrap lines at next opportunity after N characters |
| 42 | Wrap Prose | wrap_prose | Wrap markdown text to new lines |