|
| 1 | +{ |
| 2 | + "beautify.config": { |
| 3 | + "js": { |
| 4 | + "allowed_file_extensions": ["js", "jsonc", "jshintrc", "jsbeautifyrc"], |
| 5 | + "brace_style": "end-expand", // [collapse|expand|end-expand|none] Put braces on the same line as control statements (default), or put braces on own line (Allman / ANSI style), or just put end braces on own line, or attempt to keep them where they are |
| 6 | + "break_chained_methods": false, // Break chained method calls across subsequent lines |
| 7 | + "e4x": false, // Pass E4X xml literals through untouched |
| 8 | + "end_with_newline": true, // End output with newline |
| 9 | + "indent_char": " ", // Indentation character |
| 10 | + "indent_level": 0, // Initial indentation level |
| 11 | + "indent_size": 2, // Indentation size |
| 12 | + "indent_with_tabs": false, // Indent with tabs, overrides `indent_size` and `indent_char` |
| 13 | + "jslint_happy": false, // If true, then jslint-stricter mode is enforced |
| 14 | + "keep_array_indentation": false, // Preserve array indentation |
| 15 | + "keep_function_indentation": false, // Preserve function indentation |
| 16 | + "max_preserve_newlines": 0, // Maximum number of line breaks to be preserved in one chunk (0 disables) |
| 17 | + "preserve_newlines": true, // Whether existing line breaks should be preserved |
| 18 | + "space_after_anon_function": false, // Should the space before an anonymous function's parens be added, "function()" vs "function ()" |
| 19 | + "space_before_conditional": true, // Should the space before conditional statement be added, "if(true)" vs "if (true)" |
| 20 | + "space_in_empty_paren": false, // Add padding spaces within empty paren, "f()" vs "f( )" |
| 21 | + "space_in_paren": false, // Add padding spaces within paren, ie. f( a, b ) |
| 22 | + "unescape_strings": false, // Should printable characters in strings encoded in \xNN notation be unescaped, "example" vs "\x65\x78\x61\x6d\x70\x6c\x65" |
| 23 | + "wrap_line_length": 0 // Lines should wrap at next opportunity after this number of characters (0 disables) |
| 24 | + }, |
| 25 | + }, |
| 26 | + "[javascript]": { |
| 27 | + "editor.defaultFormatter": "vscode.typescript-language-features" |
| 28 | + }, |
| 29 | + "prettier.jsxSingleQuote": true, |
| 30 | + "prettier.singleQuote": true, |
| 31 | + "javascript.preferences.quoteStyle": "single", |
| 32 | + "files.insertFinalNewline": true, |
| 33 | +} |
0 commit comments