Make suggested updates

This commit is contained in:
Steven Zeck 2018-02-19 11:53:20 -06:00
parent c661bff7af
commit 152d6967bc
2 changed files with 6 additions and 3 deletions

View File

@ -9,9 +9,12 @@ module.exports = class Prettier extends Beautifier
options: {
_:
tabWidth: "indent_size"
useTabs: "indent_with_tabs"
useTabs: ["indent_with_tabs", "indent_char", (indent_with_tabs, indent_char) ->
return (indent_with_tabs is true) or (indent_char is "\t")
]
JavaScript:
bracketSpacing: "bracket_spacing"
bracketSpacing: "object_curly_spacing"
TypeScript: false
CSS: false
LESS: false
SCSS: false

View File

@ -108,7 +108,7 @@ module.exports = {
default: "System Default"
enum: ["CRLF","LF","System Default"]
description: "Override EOL from line-ending-selector"
bracket_spacing:
object_curly_spacing:
type: 'boolean'
default: false
description: "Insert spaces between brackets in object literals"