JavaScript
Atom Grammars: JavaScript
VSCode Languages: javascript
File Patterns: **/Jakefile
, **/*._js
, **/*.bones
, **/*.es
, **/*.es6
, **/*.frag
, **/*.gs
, **/*.jake
, **/*.js
, **/*.jsb
, **/*.jscad
, **/*.jsfl
, **/*.jsm
, **/*.jss
, **/*.mjs
, **/*.njs
, **/*.pac
, **/*.sjs
, **/*.ssjs
, **/*.xsjs
, **/*.xsjslib
Supported Beautifiers
Beautifier | Options | Downloads | Stars | Issues |
---|---|---|---|---|
ESLint | 17 | |||
JS-Beautify | 17 | |||
Prettier | 11 | |||
Pretty Diff | 11 |
Options
# | Option | ESLint | JS-Beautify | Prettier | Pretty Diff |
---|---|---|---|---|---|
1 | Align Assignments | ❌ | ❌ | ❌ | ✅ |
2 | Arrow Parens | ✅ | ❌ | ✅ | ❌ |
3 | Brace Style | ✅ | ✅ | ❌ | ❌ |
4 | Break Chained Methods | ✅ | ✅ | ❌ | ✅ |
5 | Comma First | ✅ | ✅ | ❌ | ❌ |
6 | End With Comma | ✅ | ❌ | ✅ | ✅ |
7 | End With Newline | ✅ | ✅ | ❌ | ❌ |
8 | End With Semicolon | ✅ | ❌ | ✅ | ❌ |
9 | Indent Chained Methods | ✅ | ✅ | ❌ | ❌ |
10 | Indent Comments | ❌ | ❌ | ❌ | ✅ |
11 | Indent Size | ✅ | ✅ | ✅ | ✅ |
12 | Indent Style | ✅ | ✅ | ✅ | ✅ |
13 | JSLint Happy | ❌ | ✅ | ❌ | ❌ |
14 | JSX Brackets | ❌ | ❌ | ✅ | ❌ |
15 | Keep Array Indentation | ✅ | ✅ | ❌ | ❌ |
16 | Max Preserve Newlines | ❌ | ✅ | ❌ | ✅ |
17 | Multiline Ternary | ❌ | ❌ | ❌ | ✅ |
18 | Object Curly Spacing | ✅ | ❌ | ✅ | ❌ |
19 | Pragma Insert | ❌ | ❌ | ✅ | ❌ |
20 | Pragma Require | ❌ | ❌ | ✅ | ❌ |
21 | Preserve Newlines | ❌ | ✅ | ❌ | ❌ |
22 | Quotes | ✅ | ❌ | ✅ | ✅ |
23 | Remove Trailing Whitespace | ✅ | ❌ | ❌ | ❌ |
24 | Space After Anon Function | ✅ | ✅ | ❌ | ✅ |
25 | Space Before Conditional | ✅ | ✅ | ❌ | ❌ |
26 | Space In Empty Paren | ❌ | ✅ | ❌ | ❌ |
27 | Space In Paren | ✅ | ✅ | ❌ | ❌ |
28 | Unescape Strings | ❌ | ✅ | ❌ | ❌ |
29 | Wrap Line Length | ❌ | ✅ | ✅ | ✅ |