From 152d6967bc4ce20cf8dc37b3ab8d31f51b2599b3 Mon Sep 17 00:00:00 2001 From: Steven Zeck Date: Mon, 19 Feb 2018 11:53:20 -0600 Subject: [PATCH] Make suggested updates --- src/beautifiers/prettier.coffee | 7 +++++-- src/languages/javascript.coffee | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) 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"