diff --git a/src/beautifiers/prettier.coffee b/src/beautifiers/prettier.coffee index 528f56e..6ee198a 100644 --- a/src/beautifiers/prettier.coffee +++ b/src/beautifiers/prettier.coffee @@ -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 diff --git a/src/languages/javascript.coffee b/src/languages/javascript.coffee index 5d795c3..6f2877e 100644 --- a/src/languages/javascript.coffee +++ b/src/languages/javascript.coffee @@ -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"